pub struct CompileScriptCommand { /* private fields */ }Available on crate feature
Runtime only.Expand description
Compiles expression.
Implementations§
Source§impl CompileScriptCommand
impl CompileScriptCommand
pub fn builder() -> CompileScriptCommandBuilder
Sourcepub fn expression(&self) -> &str
pub fn expression(&self) -> &str
Expression to compile.
Sourcepub fn source_url(&self) -> &str
pub fn source_url(&self) -> &str
Source url to be set for the script.
Sourcepub fn persist_script(&self) -> bool
pub fn persist_script(&self) -> bool
Specifies whether the compiled script should be persisted.
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.
Trait Implementations§
Source§impl Clone for CompileScriptCommand
impl Clone for CompileScriptCommand
Source§fn clone(&self) -> CompileScriptCommand
fn clone(&self) -> CompileScriptCommand
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 CompileScriptCommand
impl Command for CompileScriptCommand
Source§impl Debug for CompileScriptCommand
impl Debug for CompileScriptCommand
Source§impl<'de> Deserialize<'de> for CompileScriptCommand
impl<'de> Deserialize<'de> for CompileScriptCommand
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 CompileScriptCommand
impl RefUnwindSafe for CompileScriptCommand
impl Send for CompileScriptCommand
impl Sync for CompileScriptCommand
impl Unpin for CompileScriptCommand
impl UnwindSafe for CompileScriptCommand
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