pub struct GatewayPayload {
pub op: u32,
pub d: Option<Value>,
pub s: Option<u64>,
pub t: Option<String>,
}Expand description
Top-level gateway payload, exchanged over the WebSocket connection.
Fields§
§op: u32Opcode (see op).
d: Option<Value>Data payload.
s: Option<u64>Sequence number (for dispatch / resume).
t: Option<String>Event type (for op=0 Dispatch).
Implementations§
Trait Implementations§
Source§impl Clone for GatewayPayload
impl Clone for GatewayPayload
Source§fn clone(&self) -> GatewayPayload
fn clone(&self) -> GatewayPayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GatewayPayload
impl Debug for GatewayPayload
Source§impl<'de> Deserialize<'de> for GatewayPayload
impl<'de> Deserialize<'de> for GatewayPayload
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
Auto Trait Implementations§
impl Freeze for GatewayPayload
impl RefUnwindSafe for GatewayPayload
impl Send for GatewayPayload
impl Sync for GatewayPayload
impl Unpin for GatewayPayload
impl UnsafeUnpin for GatewayPayload
impl UnwindSafe for GatewayPayload
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