pub struct CallFunctionOnParams {Show 13 fields
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 unique_context_id: Option<String>,
pub serialization_options: Option<SerializationOptions>,
}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: StringDeclaration 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.
Can be overriden by serializationOptions.
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.
unique_context_id: Option<String>An alternative way to specify the execution context to call function on.
Compared to contextId that may be reused across processes, this is guaranteed to be
system-unique, so it can be used to prevent accidental function call
in context different than intended (e.g. as a result of navigation across process
boundaries).
This is mutually exclusive with executionContextId.
serialization_options: Option<SerializationOptions>Specifies the result serialization. If provided, overrides
generatePreview and returnByValue.
Implementations§
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
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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<EvaluateParams> for CallFunctionOnParams
impl From<EvaluateParams> for CallFunctionOnParams
Source§fn from(params: EvaluateParams) -> CallFunctionOnParams
fn from(params: EvaluateParams) -> CallFunctionOnParams
Source§impl Method for CallFunctionOnParams
impl Method for CallFunctionOnParams
Source§fn identifier(&self) -> MethodId
fn identifier(&self) -> MethodId
DOM.removeNodeSource§fn domain_name(&self) -> Cow<'static, str>
fn domain_name(&self) -> Cow<'static, str>
DOMSource§fn method_name(&self) -> Cow<'static, str>
fn method_name(&self) -> Cow<'static, str>
removeNode