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

pub struct RunScriptParams {
    pub script_id: ScriptId,
    pub execution_context_id: Option<ExecutionContextId>,
    pub object_group: Option<String>,
    pub silent: Option<bool>,
    pub include_command_line_api: Option<bool>,
    pub return_by_value: Option<bool>,
    pub generate_preview: Option<bool>,
    pub await_promise: Option<bool>,
}

Runs script with given id in a given context. runScript

Fields

script_id: ScriptId

Id of the script to run.

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.

object_group: Option<String>

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

silent: Option<bool>

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

include_command_line_api: Option<bool>

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

return_by_value: Option<bool>

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

generate_preview: Option<bool>

Whether preview should be generated for the result.

await_promise: Option<bool>

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

Implementations

impl RunScriptParams[src]

pub fn new(script_id: impl Into<ScriptId>) -> RunScriptParams[src]

impl RunScriptParams[src]

impl RunScriptParams[src]

pub const IDENTIFIER: &'static str[src]

Trait Implementations

impl Clone for RunScriptParams[src]

impl Command for RunScriptParams[src]

type Response = RunScriptReturns

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

impl Debug for RunScriptParams[src]

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

impl Method for RunScriptParams[src]

impl MethodType for RunScriptParams[src]

impl PartialEq<RunScriptParams> for RunScriptParams[src]

impl Serialize for RunScriptParams[src]

impl StructuralPartialEq for RunScriptParams[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>,