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

Identifier of the object to call function on.

Declaration of the function to call.

Call arguments. All call arguments must belong to the same JavaScript world as the target object.

In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state.

Whether the result is expected to be a JSON object which should be sent by value.

[Experimental] Whether preview should be generated for the result.

[Experimental] Whether execution should be treated as initiated by user in the UI.

Whether execution should await for resulting value and return once awaited promise is resolved.

Trait Implementations

impl<'a> Clone for CallFunctionOnCommand<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for CallFunctionOnCommand<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> PartialEq for CallFunctionOnCommand<'a>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<'a> CdpCommand for CallFunctionOnCommand<'a>
[src]

COMMAND_NAME: &'static str = "Runtime.callFunctionOn"

impl<'a> SerializeCdpCommand for CallFunctionOnCommand<'a>
[src]

[src]

[src]

impl<'de, 'a> DeserializeCdpCommand<'de> for CallFunctionOnCommand<'a>
[src]

[src]

impl<'b, 'a> HasCdpResponse<'b> for CallFunctionOnCommand<'a>
[src]