Struct chromiumoxide::cdp::js_protocol::runtime::CompileScriptParamsBuilder
source · pub struct CompileScriptParamsBuilder { /* private fields */ }
Implementations§
source§impl CompileScriptParamsBuilder
impl CompileScriptParamsBuilder
pub fn expression( self, expression: impl Into<String>, ) -> CompileScriptParamsBuilder
pub fn source_url( self, source_url: impl Into<String>, ) -> CompileScriptParamsBuilder
pub fn persist_script( self, persist_script: impl Into<bool>, ) -> CompileScriptParamsBuilder
pub fn execution_context_id( self, execution_context_id: impl Into<ExecutionContextId>, ) -> CompileScriptParamsBuilder
pub fn build(self) -> Result<CompileScriptParams, String>
Trait Implementations§
source§impl Clone for CompileScriptParamsBuilder
impl Clone for CompileScriptParamsBuilder
source§fn clone(&self) -> CompileScriptParamsBuilder
fn clone(&self) -> CompileScriptParamsBuilder
Returns a copy 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 Default for CompileScriptParamsBuilder
impl Default for CompileScriptParamsBuilder
source§fn default() -> CompileScriptParamsBuilder
fn default() -> CompileScriptParamsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CompileScriptParamsBuilder
impl RefUnwindSafe for CompileScriptParamsBuilder
impl Send for CompileScriptParamsBuilder
impl Sync for CompileScriptParamsBuilder
impl Unpin for CompileScriptParamsBuilder
impl UnwindSafe for CompileScriptParamsBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)