Struct cdp::runtime::EvaluateCommand
[−]
[src]
pub struct EvaluateCommand<'a> {
pub expression: Cow<'a, str>,
pub object_group: Option<Cow<'a, str>>,
pub include_command_line_api: Option<bool>,
pub silent: Option<bool>,
pub context_id: Option<ExecutionContextId>,
pub return_by_value: Option<bool>,
pub generate_preview: Option<bool>,
pub user_gesture: Option<bool>,
pub await_promise: Option<bool>,
}Evaluates expression on global object.
Command Runtime.evaluate
Domain Module: cdp::runtime
Command Struct: cdp::runtime::EvaluateCommand
Response Struct: cdp::runtime::EvaluateResponse
Fields
expression: Cow<'a, str>
Expression to evaluate.
object_group: Option<Cow<'a, str>>
Symbolic group name that can be used to release multiple objects.
include_command_line_api: Option<bool>
Determines whether Command Line API should be available during the evaluation.
silent: Option<bool>
In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state.
context_id: Option<ExecutionContextId>
Specifies in which execution context to perform evaluation. If the parameter is omitted the evaluation will be performed in the context of the inspected page.
return_by_value: Option<bool>
Whether the result is expected to be a JSON object that should be sent by value.
generate_preview: Option<bool>
[Experimental] Whether preview should be generated for the result.
user_gesture: Option<bool>
[Experimental] Whether execution should be treated as initiated by user in the UI.
await_promise: Option<bool>
Whether execution should await for resulting value and return once awaited promise is resolved.
Trait Implementations
impl<'a> Clone for EvaluateCommand<'a>[src]
fn clone(&self) -> EvaluateCommand<'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 EvaluateCommand<'a>[src]
impl<'a> PartialEq for EvaluateCommand<'a>[src]
fn eq(&self, __arg_0: &EvaluateCommand<'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: &EvaluateCommand<'a>) -> bool[src]
This method tests for !=.
impl<'a> CdpCommand for EvaluateCommand<'a>[src]
const COMMAND_NAME: &'static str
COMMAND_NAME: &'static str = "Runtime.evaluate"
impl<'a> SerializeCdpCommand for EvaluateCommand<'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 EvaluateCommand<'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>,