pub struct RunScriptCommandBuilder { /* private fields */ }Available on crate feature
Runtime only.Implementations§
Source§impl RunScriptCommandBuilder
impl RunScriptCommandBuilder
Sourcepub fn execution_context_id(&mut self, v: ExecutionContextId) -> &mut Self
pub fn execution_context_id(&mut self, v: ExecutionContextId) -> &mut Self
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(&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.
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 include_command_line_api(&mut self, v: bool) -> &mut Self
pub fn include_command_line_api(&mut self, v: bool) -> &mut Self
Determines whether Command Line API should be available during the evaluation.
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
pub fn generate_preview(&mut self, v: bool) -> &mut Self
Whether preview should be generated for the result.
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.
pub fn build(&mut self) -> Result<RunScriptCommand, &'static str>
Trait Implementations§
Source§impl Clone for RunScriptCommandBuilder
impl Clone for RunScriptCommandBuilder
Source§fn clone(&self) -> RunScriptCommandBuilder
fn clone(&self) -> RunScriptCommandBuilder
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 RunScriptCommandBuilder
impl Debug for RunScriptCommandBuilder
Auto Trait Implementations§
impl Freeze for RunScriptCommandBuilder
impl RefUnwindSafe for RunScriptCommandBuilder
impl Send for RunScriptCommandBuilder
impl Sync for RunScriptCommandBuilder
impl Unpin for RunScriptCommandBuilder
impl UnwindSafe for RunScriptCommandBuilder
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