Struct cdp::runtime::CompileScriptCommand [] [src]

pub struct CompileScriptCommand<'a> {
    pub expression: Cow<'a, str>,
    pub source_url: Cow<'a, str>,
    pub persist_script: bool,
    pub execution_context_id: Option<ExecutionContextId>,
}

Compiles expression.

Command Runtime.compileScript

Domain Module: cdp::runtime
Command Struct: cdp::runtime::CompileScriptCommand
Response Struct: cdp::runtime::CompileScriptResponse

Fields

Expression to compile.

Source url to be set for the script.

Specifies whether the compiled script should be persisted.

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

impl<'a> Clone for CompileScriptCommand<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for CompileScriptCommand<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> PartialEq for CompileScriptCommand<'a>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<'a> CdpCommand for CompileScriptCommand<'a>
[src]

COMMAND_NAME: &'static str = "Runtime.compileScript"

impl<'a> SerializeCdpCommand for CompileScriptCommand<'a>
[src]

[src]

[src]

impl<'de, 'a> DeserializeCdpCommand<'de> for CompileScriptCommand<'a>
[src]

[src]

impl<'b, 'a> HasCdpResponse<'b> for CompileScriptCommand<'a>
[src]