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
type Response = CallFunctionOnReturns
type Response = CallFunctionOnReturns
The type of the response this request triggers on the chromium server
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CallFunctionOnParams
impl Send for CallFunctionOnParams
impl Sync for CallFunctionOnParams
impl Unpin for CallFunctionOnParams
impl UnwindSafe for CallFunctionOnParams
Blanket Implementations
Mutably borrows from an owned value. Read more