pub struct CompileScriptBuilder { /* private fields */ }Expand description
Builder for CompileScript.
Implementations§
Source§impl CompileScriptBuilder
impl CompileScriptBuilder
Sourcepub fn expression<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn expression<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Expression to compile.
Sourcepub fn source_url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn source_url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Source url to be set for the script.
Sourcepub fn persist_script<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn persist_script<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Specifies whether the compiled script should be persisted.
Sourcepub fn execution_context_id<VALUE: Into<ExecutionContextId>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn execution_context_id<VALUE: Into<ExecutionContextId>>( &mut self, value: VALUE, ) -> &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 build(&self) -> Result<CompileScript, CompileScriptBuilderError>
pub fn build(&self) -> Result<CompileScript, CompileScriptBuilderError>
Trait Implementations§
Source§impl Clone for CompileScriptBuilder
impl Clone for CompileScriptBuilder
Source§fn clone(&self) -> CompileScriptBuilder
fn clone(&self) -> CompileScriptBuilder
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 moreAuto Trait Implementations§
impl Freeze for CompileScriptBuilder
impl RefUnwindSafe for CompileScriptBuilder
impl Send for CompileScriptBuilder
impl Sync for CompileScriptBuilder
impl Unpin for CompileScriptBuilder
impl UnsafeUnpin for CompileScriptBuilder
impl UnwindSafe for CompileScriptBuilder
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