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: MethodIdName of the method
session_id: Option<String>The session this event is meant for.
params: ValueJson 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 duplicate 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.removeNodeSource§fn domain_name(&self) -> MethodId
fn domain_name(&self) -> MethodId
The name of the domain this method belongs to:
DOMSource§fn method_name(&self) -> MethodId
fn method_name(&self) -> MethodId
The standalone identifier of the method inside the domain:
removeNodeSource§impl PartialEq for CdpJsonEventMessage
impl PartialEq for CdpJsonEventMessage
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 UnsafeUnpin 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