pub struct CallFunctionOnCommandBuilder { /* private fields */ }Runtime only.Implementations§
Source§impl CallFunctionOnCommandBuilder
impl CallFunctionOnCommandBuilder
Sourcepub fn function_declaration(&mut self, v: String) -> &mut Self
pub fn function_declaration(&mut self, v: String) -> &mut Self
Declaration of the function to call.
Sourcepub fn object_id(&mut self, v: RemoteObjectId) -> &mut Self
pub fn object_id(&mut self, v: RemoteObjectId) -> &mut Self
Identifier of the object to call function on. Either objectId or executionContextId should be specified.
Sourcepub fn arguments(&mut self, v: Vec<CallArgument>) -> &mut Self
pub fn arguments(&mut self, v: Vec<CallArgument>) -> &mut Self
Call arguments. All call arguments must belong to the same JavaScript world as the target object.
Sourcepub fn silent(&mut self, v: bool) -> &mut Self
pub fn silent(&mut self, v: bool) -> &mut Self
In silent mode exceptions thrown during evaluation are not reported and do not pause
execution. Overrides setPauseOnException state.
Sourcepub fn return_by_value(&mut self, v: bool) -> &mut Self
pub fn return_by_value(&mut self, v: bool) -> &mut Self
Whether the result is expected to be a JSON object which should be sent by value.
Sourcepub fn generate_preview(&mut self, v: bool) -> &mut Self
Available on crate feature experimental only.
pub fn generate_preview(&mut self, v: bool) -> &mut Self
experimental only.Whether preview should be generated for the result.
Sourcepub fn user_gesture(&mut self, v: bool) -> &mut Self
pub fn user_gesture(&mut self, v: bool) -> &mut Self
Whether execution should be treated as initiated by user in the UI.
Sourcepub fn await_promise(&mut self, v: bool) -> &mut Self
pub fn await_promise(&mut self, v: bool) -> &mut Self
Whether execution should await for resulting value and return once awaited promise is
resolved.
Sourcepub fn execution_context_id(&mut self, v: ExecutionContextId) -> &mut Self
pub fn execution_context_id(&mut self, v: ExecutionContextId) -> &mut Self
Specifies execution context which global object will be used to call function on. Either executionContextId or objectId should be specified.
Sourcepub fn object_group(&mut self, v: String) -> &mut Self
pub fn object_group(&mut self, v: String) -> &mut Self
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.
pub fn build(&mut self) -> Result<CallFunctionOnCommand, &'static str>
Trait Implementations§
Source§impl Clone for CallFunctionOnCommandBuilder
impl Clone for CallFunctionOnCommandBuilder
Source§fn clone(&self) -> CallFunctionOnCommandBuilder
fn clone(&self) -> CallFunctionOnCommandBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more