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

pub struct CallFunctionOnParams {
    pub function_declaration: String,
    pub object_id: Option<RemoteObjectId>,
    pub arguments: Option<Vec<CallArgument, Global>>,
    pub silent: Option<bool>,
    pub return_by_value: Option<bool>,
    pub generate_preview: Option<bool>,
    pub user_gesture: Option<bool>,
    pub await_promise: Option<bool>,
    pub execution_context_id: Option<ExecutionContextId>,
    pub object_group: Option<String>,
}

Calls function with given declaration on the given object. Object group of the result is inherited from the target object. callFunctionOn

Fields

function_declaration: String

Declaration of the function to call.

object_id: Option<RemoteObjectId>

Identifier of the object to call function on. Either objectId or executionContextId should be specified.

arguments: Option<Vec<CallArgument, Global>>

Call arguments. All call arguments must belong to the same JavaScript world as the target object.

silent: Option<bool>

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

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.

user_gesture: Option<bool>

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.

execution_context_id: Option<ExecutionContextId>

Specifies execution context which global object will be used to call function on. Either executionContextId or objectId should be specified.

object_group: Option<String>

Symbolic group name that can be used to release multiple objects. If objectGroup is not specified and objectId is, objectGroup will be inherited from object.

Implementations

impl CallFunctionOnParams[src]

pub fn new(function_declaration: impl Into<String>) -> CallFunctionOnParams[src]

impl CallFunctionOnParams[src]

impl CallFunctionOnParams[src]

pub const IDENTIFIER: &'static str[src]

Trait Implementations

impl Clone for CallFunctionOnParams[src]

impl Command for CallFunctionOnParams[src]

type Response = CallFunctionOnReturns

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

impl Debug for CallFunctionOnParams[src]

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

impl From<CallFunctionOnParams> for Evaluation[src]

impl<T> From<T> for CallFunctionOnParams where
    T: Into<String>, 
[src]

impl Into<CallFunctionOnParams> for EvaluateParams[src]

impl Method for CallFunctionOnParams[src]

impl MethodType for CallFunctionOnParams[src]

impl PartialEq<CallFunctionOnParams> for CallFunctionOnParams[src]

impl Serialize for CallFunctionOnParams[src]

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