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 to evaluate.

Symbolic group name that can be used to release multiple objects.

Determines whether Command Line API should be available during the evaluation.

In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state.

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.

Whether the result is expected to be a JSON object that should be sent by value.

[Experimental] Whether preview should be generated for the result.

[Experimental] Whether execution should be treated as initiated by user in the UI.

Whether execution should await for resulting value and return once awaited promise is resolved.

Trait Implementations

impl<'a> Clone for EvaluateCommand<'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 EvaluateCommand<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> PartialEq for EvaluateCommand<'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 EvaluateCommand<'a>
[src]

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

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

[src]

[src]

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

[src]

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