Struct cdp::runtime::CallFunctionOnCommand
[−]
[src]
pub struct CallFunctionOnCommand<'a> { pub object_id: RemoteObjectId<'a>, pub function_declaration: Cow<'a, str>, pub arguments: Option<Vec<CallArgument<'a>>>, pub silent: Option<bool>, pub return_by_value: Option<bool>, pub generate_preview: Option<bool>, pub user_gesture: Option<bool>, pub await_promise: Option<bool>, }
Calls function with given declaration on the given object. Object group of the result is inherited from the target object.
Command Runtime.callFunctionOn
Domain Module: cdp::runtime
Command Struct: cdp::runtime::CallFunctionOnCommand
Response Struct: cdp::runtime::CallFunctionOnResponse
Fields
object_id: RemoteObjectId<'a>
Identifier of the object to call function on.
function_declaration: Cow<'a, str>
Declaration of the function to call.
arguments: Option<Vec<CallArgument<'a>>>
Call arguments. All call arguments must belong to the same JavaScript world as the target object.
silent: Option<bool>
In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException
state.
return_by_value: Option<bool>
Whether the result is expected to be a JSON object which should be sent by value.
generate_preview: Option<bool>
[Experimental] Whether preview should be generated for the result.
user_gesture: Option<bool>
[Experimental] Whether execution should be treated as initiated by user in the UI.
await_promise: Option<bool>
Whether execution should await
for resulting value and return once awaited promise is resolved.
Trait Implementations
impl<'a> Clone for CallFunctionOnCommand<'a>
[src]
fn clone(&self) -> CallFunctionOnCommand<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> Debug for CallFunctionOnCommand<'a>
[src]
impl<'a> PartialEq for CallFunctionOnCommand<'a>
[src]
fn eq(&self, __arg_0: &CallFunctionOnCommand<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CallFunctionOnCommand<'a>) -> bool
[src]
This method tests for !=
.
impl<'a> CdpCommand for CallFunctionOnCommand<'a>
[src]
const COMMAND_NAME: &'static str
COMMAND_NAME: &'static str = "Runtime.callFunctionOn"
impl<'a> SerializeCdpCommand for CallFunctionOnCommand<'a>
[src]
fn command_name(&self) -> &str
[src]
fn serialize_command_params<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
S: Serializer,
impl<'de, 'a> DeserializeCdpCommand<'de> for CallFunctionOnCommand<'a>
[src]
fn deserialize_command<D>(
name: &str,
params: D
) -> Result<Result<Self, D::Error>, D> where
D: Deserializer<'de>,
[src]
name: &str,
params: D
) -> Result<Result<Self, D::Error>, D> where
D: Deserializer<'de>,