Struct chromiumoxide::cdp::js_protocol::runtime::CallFunctionOnParams
source · 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>,
pub throw_on_side_effect: Option<bool>,
pub generate_web_driver_value: Option<bool>,
}
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.
throw_on_side_effect: Option<bool>
Whether to throw an exception if side effect cannot be ruled out during evaluation.
generate_web_driver_value: Option<bool>
Whether the result should contain webDriverValue
, serialized according to
https://w3c.github.io/webdriver-bidi. This is mutually exclusive with returnByValue
, but
resulting objectId
is still provided.
Implementations§
source§impl CallFunctionOnParams
impl CallFunctionOnParams
pub fn new(function_declaration: impl Into<String>) -> CallFunctionOnParams
source§impl CallFunctionOnParams
impl CallFunctionOnParams
pub fn builder() -> CallFunctionOnParamsBuilder
source§impl CallFunctionOnParams
impl CallFunctionOnParams
pub const IDENTIFIER: &'static str = "Runtime.callFunctionOn"
Trait Implementations§
source§impl Clone for CallFunctionOnParams
impl Clone for CallFunctionOnParams
source§fn clone(&self) -> CallFunctionOnParams
fn clone(&self) -> CallFunctionOnParams
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Command for CallFunctionOnParams
impl Command for CallFunctionOnParams
§type Response = CallFunctionOnReturns
type Response = CallFunctionOnReturns
source§impl Debug for CallFunctionOnParams
impl Debug for CallFunctionOnParams
source§impl<'de> Deserialize<'de> for CallFunctionOnParams
impl<'de> Deserialize<'de> for CallFunctionOnParams
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<CallFunctionOnParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<CallFunctionOnParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
source§impl From<CallFunctionOnParams> for Evaluation
impl From<CallFunctionOnParams> for Evaluation
source§fn from(params: CallFunctionOnParams) -> Self
fn from(params: CallFunctionOnParams) -> Self
source§impl From<EvaluateParams> for CallFunctionOnParams
impl From<EvaluateParams> for CallFunctionOnParams
source§fn from(params: EvaluateParams) -> CallFunctionOnParams
fn from(params: EvaluateParams) -> CallFunctionOnParams
source§impl<T> From<T> for CallFunctionOnParams
impl<T> From<T> for CallFunctionOnParams
source§fn from(url: T) -> CallFunctionOnParams
fn from(url: T) -> CallFunctionOnParams
source§impl Method for CallFunctionOnParams
impl Method for CallFunctionOnParams
source§fn identifier(&self) -> Cow<'static, str>
fn identifier(&self) -> Cow<'static, str>
DOM.removeNode
source§fn domain_name(&self) -> Cow<'static, str>
fn domain_name(&self) -> Cow<'static, str>
DOM
source§fn method_name(&self) -> Cow<'static, str>
fn method_name(&self) -> Cow<'static, str>
removeNode
source§impl MethodType for CallFunctionOnParams
impl MethodType for CallFunctionOnParams
source§impl PartialEq for CallFunctionOnParams
impl PartialEq for CallFunctionOnParams
source§fn eq(&self, other: &CallFunctionOnParams) -> bool
fn eq(&self, other: &CallFunctionOnParams) -> bool
self
and other
values to be equal, and is used
by ==
.