pub struct CompileScriptParams<'a> { /* private fields */ }Expand description
Compiles expression.
Implementations§
Source§impl<'a> CompileScriptParams<'a>
impl<'a> CompileScriptParams<'a>
Sourcepub fn builder(
expression: impl Into<Cow<'a, str>>,
source_url: impl Into<Cow<'a, str>>,
persist_script: bool,
) -> CompileScriptParamsBuilder<'a>
pub fn builder( expression: impl Into<Cow<'a, str>>, source_url: impl Into<Cow<'a, str>>, persist_script: bool, ) -> CompileScriptParamsBuilder<'a>
Creates a builder for this type with the required parameters:
expression: Expression to compile.source_url: Source url to be set for the script.persist_script: Specifies whether the compiled script should be persisted.
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<'a> CdpCommand<'a> for CompileScriptParams<'a>
impl<'a> CdpCommand<'a> for CompileScriptParams<'a>
Source§impl<'a> Clone for CompileScriptParams<'a>
impl<'a> Clone for CompileScriptParams<'a>
Source§fn clone(&self) -> CompileScriptParams<'a>
fn clone(&self) -> CompileScriptParams<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for CompileScriptParams<'a>
impl<'a> Debug for CompileScriptParams<'a>
Source§impl<'a> Default for CompileScriptParams<'a>
impl<'a> Default for CompileScriptParams<'a>
Source§fn default() -> CompileScriptParams<'a>
fn default() -> CompileScriptParams<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for CompileScriptParams<'a>
impl<'de, 'a> Deserialize<'de> for CompileScriptParams<'a>
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<'a> Freeze for CompileScriptParams<'a>
impl<'a> RefUnwindSafe for CompileScriptParams<'a>
impl<'a> Send for CompileScriptParams<'a>
impl<'a> Sync for CompileScriptParams<'a>
impl<'a> Unpin for CompileScriptParams<'a>
impl<'a> UnsafeUnpin for CompileScriptParams<'a>
impl<'a> UnwindSafe for CompileScriptParams<'a>
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