Struct chromiumoxide_types::CdpJsonEventMessage
source · pub struct CdpJsonEventMessage {
pub method: MethodId,
pub session_id: Option<String>,
pub params: Value,
}
Expand description
A received Event
from the websocket where the params
is deserialized as
json
Fields§
§method: MethodId
Name of the method
session_id: Option<String>
The session this event is meant for.
params: Value
Json payload of the event
Trait Implementations§
source§impl Clone for CdpJsonEventMessage
impl Clone for CdpJsonEventMessage
source§fn clone(&self) -> CdpJsonEventMessage
fn clone(&self) -> CdpJsonEventMessage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CdpJsonEventMessage
impl Debug for CdpJsonEventMessage
source§impl<'de> Deserialize<'de> for CdpJsonEventMessage
impl<'de> Deserialize<'de> for CdpJsonEventMessage
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl EventMessage for CdpJsonEventMessage
impl EventMessage for CdpJsonEventMessage
source§fn session_id(&self) -> Option<&str>
fn session_id(&self) -> Option<&str>
The identifier of the session this event was meant for.
source§impl Method for CdpJsonEventMessage
impl Method for CdpJsonEventMessage
source§fn identifier(&self) -> MethodId
fn identifier(&self) -> MethodId
The whole string identifier for this method like:
DOM.removeNode
source§fn domain_name(&self) -> MethodId
fn domain_name(&self) -> MethodId
The name of the domain this method belongs to:
DOM
source§fn method_name(&self) -> MethodId
fn method_name(&self) -> MethodId
The standalone identifier of the method inside the domain:
removeNode
source§impl PartialEq for CdpJsonEventMessage
impl PartialEq for CdpJsonEventMessage
source§fn eq(&self, other: &CdpJsonEventMessage) -> bool
fn eq(&self, other: &CdpJsonEventMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CdpJsonEventMessage
impl StructuralPartialEq for CdpJsonEventMessage
Auto Trait Implementations§
impl Freeze for CdpJsonEventMessage
impl RefUnwindSafe for CdpJsonEventMessage
impl Send for CdpJsonEventMessage
impl Sync for CdpJsonEventMessage
impl Unpin for CdpJsonEventMessage
impl UnwindSafe for CdpJsonEventMessage
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more