pub struct RunScriptCommand { /* private fields */ }Available on crate feature
Runtime only.Expand description
Runs script with given id in a given context.
Implementations§
Source§impl RunScriptCommand
impl RunScriptCommand
pub fn builder() -> RunScriptCommandBuilder
Sourcepub fn execution_context_id(&self) -> Option<&ExecutionContextId>
pub fn execution_context_id(&self) -> Option<&ExecutionContextId>
Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page.
Sourcepub fn object_group(&self) -> Option<&String>
pub fn object_group(&self) -> Option<&String>
Symbolic group name that can be used to release multiple objects.
Sourcepub fn silent(&self) -> Option<&bool>
pub fn silent(&self) -> Option<&bool>
In silent mode exceptions thrown during evaluation are not reported and do not pause
execution. Overrides setPauseOnException state.
Sourcepub fn include_command_line_api(&self) -> Option<&bool>
pub fn include_command_line_api(&self) -> Option<&bool>
Determines whether Command Line API should be available during the evaluation.
Sourcepub fn return_by_value(&self) -> Option<&bool>
pub fn return_by_value(&self) -> Option<&bool>
Whether the result is expected to be a JSON object which should be sent by value.
Sourcepub fn generate_preview(&self) -> Option<&bool>
pub fn generate_preview(&self) -> Option<&bool>
Whether preview should be generated for the result.
Sourcepub fn await_promise(&self) -> Option<&bool>
pub fn await_promise(&self) -> Option<&bool>
Whether execution should await for resulting value and return once awaited promise is
resolved.
Trait Implementations§
Source§impl Clone for RunScriptCommand
impl Clone for RunScriptCommand
Source§fn clone(&self) -> RunScriptCommand
fn clone(&self) -> RunScriptCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Command for RunScriptCommand
impl Command for RunScriptCommand
Source§impl Debug for RunScriptCommand
impl Debug for RunScriptCommand
Source§impl<'de> Deserialize<'de> for RunScriptCommand
impl<'de> Deserialize<'de> for RunScriptCommand
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RunScriptCommand
impl RefUnwindSafe for RunScriptCommand
impl Send for RunScriptCommand
impl Sync for RunScriptCommand
impl Unpin for RunScriptCommand
impl UnwindSafe for RunScriptCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more