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: Cow<'a, str>
Expression to compile.
source_url: Cow<'a, str>
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.
Trait Implementations
impl<'a> Clone for CompileScriptCommand<'a>
[src]
fn clone(&self) -> CompileScriptCommand<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> Debug for CompileScriptCommand<'a>
[src]
impl<'a> PartialEq for CompileScriptCommand<'a>
[src]
fn eq(&self, __arg_0: &CompileScriptCommand<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CompileScriptCommand<'a>) -> bool
[src]
This method tests for !=
.
impl<'a> CdpCommand for CompileScriptCommand<'a>
[src]
const COMMAND_NAME: &'static str
COMMAND_NAME: &'static str = "Runtime.compileScript"
impl<'a> SerializeCdpCommand for CompileScriptCommand<'a>
[src]
fn command_name(&self) -> &str
[src]
fn serialize_command_params<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
S: Serializer,
impl<'de, 'a> DeserializeCdpCommand<'de> for CompileScriptCommand<'a>
[src]
fn deserialize_command<D>(
name: &str,
params: D
) -> Result<Result<Self, D::Error>, D> where
D: Deserializer<'de>,
[src]
name: &str,
params: D
) -> Result<Result<Self, D::Error>, D> where
D: Deserializer<'de>,