pub struct CompileScriptCommandBuilder { /* private fields */ }Available on crate feature
Runtime only.Implementations§
Source§impl CompileScriptCommandBuilder
impl CompileScriptCommandBuilder
Sourcepub fn expression(&mut self, v: String) -> &mut Self
pub fn expression(&mut self, v: String) -> &mut Self
Expression to compile.
Sourcepub fn source_url(&mut self, v: String) -> &mut Self
pub fn source_url(&mut self, v: String) -> &mut Self
Source url to be set for the script.
Sourcepub fn persist_script(&mut self, v: bool) -> &mut Self
pub fn persist_script(&mut self, v: bool) -> &mut Self
Specifies whether the compiled script should be persisted.
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.
pub fn build(&mut self) -> Result<CompileScriptCommand, &'static str>
Trait Implementations§
Source§impl Clone for CompileScriptCommandBuilder
impl Clone for CompileScriptCommandBuilder
Source§fn clone(&self) -> CompileScriptCommandBuilder
fn clone(&self) -> CompileScriptCommandBuilder
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 CompileScriptCommandBuilder
impl Debug for CompileScriptCommandBuilder
Auto Trait Implementations§
impl Freeze for CompileScriptCommandBuilder
impl RefUnwindSafe for CompileScriptCommandBuilder
impl Send for CompileScriptCommandBuilder
impl Sync for CompileScriptCommandBuilder
impl Unpin for CompileScriptCommandBuilder
impl UnwindSafe for CompileScriptCommandBuilder
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