Struct chromiumoxide::cdp::js_protocol::runtime::CompileScriptParams[][src]

pub struct CompileScriptParams {
    pub expression: String,
    pub source_url: String,
    pub persist_script: bool,
    pub execution_context_id: Option<ExecutionContextId>,
}

Compiles expression. compileScript

Fields

expression: String

Expression to compile.

source_url: String

Source url to be set for the script.

persist_script: bool

Specifies whether the compiled script should be persisted.

execution_context_id: 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.

Implementations

impl CompileScriptParams[src]

pub fn new(
    expression: impl Into<String>,
    source_url: impl Into<String>,
    persist_script: impl Into<bool>
) -> CompileScriptParams
[src]

impl CompileScriptParams[src]

impl CompileScriptParams[src]

pub const IDENTIFIER: &'static str[src]

Trait Implementations

impl Clone for CompileScriptParams[src]

impl Command for CompileScriptParams[src]

type Response = CompileScriptReturns

The type of the response this request triggers on the chromium server

impl Debug for CompileScriptParams[src]

impl<'de> Deserialize<'de> for CompileScriptParams[src]

impl Method for CompileScriptParams[src]

impl MethodType for CompileScriptParams[src]

impl PartialEq<CompileScriptParams> for CompileScriptParams[src]

impl Serialize for CompileScriptParams[src]

impl StructuralPartialEq for CompileScriptParams[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,