Struct chromiumoxide_cdp::cdp::js_protocol::runtime::CallFunctionOnParams[][src]

pub struct CallFunctionOnParams {
    pub function_declaration: String,
    pub object_id: Option<RemoteObjectId>,
    pub arguments: Option<Vec<CallArgument>>,
    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>,
    pub execution_context_id: Option<ExecutionContextId>,
    pub object_group: Option<String>,
}
Expand description

Calls function with given declaration on the given object. Object group of the result is inherited from the target object. callFunctionOn

Fields

function_declaration: String

Declaration of the function to call.

object_id: Option<RemoteObjectId>

Identifier of the object to call function on. Either objectId or executionContextId should be specified.

arguments: Option<Vec<CallArgument>>

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>

Whether preview should be generated for the result.

user_gesture: Option<bool>

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.

execution_context_id: Option<ExecutionContextId>

Specifies execution context which global object will be used to call function on. Either executionContextId or objectId should be specified.

object_group: Option<String>

Symbolic group name that can be used to release multiple objects. If objectGroup is not specified and objectId is, objectGroup will be inherited from object.

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

The type of the response this request triggers on the chromium server

deserialize the response from json

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Performs the conversion.

Performs the conversion.

The whole string identifier for this method like: DOM.removeNode

The name of the domain this method belongs to: DOM

The standalone identifier of the method inside the domain: removeNode

Tuple of (domain_name, method_name) : (DOM, removeNode)

The identifier for this event’s method field

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

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.