pub struct RunScriptParams {
pub scriptId: ScriptId,
pub executionContextId: Option<ExecutionContextId>,
pub objectGroup: Option<String>,
pub silent: Option<bool>,
pub includeCommandLineAPI: Option<bool>,
pub returnByValue: Option<bool>,
pub generatePreview: Option<bool>,
pub awaitPromise: Option<bool>,
}Expand description
Runs script with given id in a given context.
Fields§
§scriptId: ScriptIdId of the script to run.
executionContextId: 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.
objectGroup: Option<String>Symbolic group name that can be used to release multiple objects.
silent: Option<bool>In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides ‘setPauseOnException’ state.
includeCommandLineAPI: Option<bool>Determines whether Command Line API should be available during the evaluation.
returnByValue: Option<bool>Whether the result is expected to be a JSON object which should be sent by value.
generatePreview: Option<bool>Whether preview should be generated for the result.
awaitPromise: Option<bool>Whether execution should ‘await’ for resulting value and return once awaited promise is resolved.
Trait Implementations§
Source§impl Clone for RunScriptParams
impl Clone for RunScriptParams
Source§fn clone(&self) -> RunScriptParams
fn clone(&self) -> RunScriptParams
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 Debug for RunScriptParams
impl Debug for RunScriptParams
Source§impl Default for RunScriptParams
impl Default for RunScriptParams
Source§fn default() -> RunScriptParams
fn default() -> RunScriptParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RunScriptParams
impl<'de> Deserialize<'de> for RunScriptParams
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 RunScriptParams
impl RefUnwindSafe for RunScriptParams
impl Send for RunScriptParams
impl Sync for RunScriptParams
impl Unpin for RunScriptParams
impl UnsafeUnpin for RunScriptParams
impl UnwindSafe for RunScriptParams
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