pub struct GatewayPayload {
pub op: u8,
pub d: Option<Value>,
pub s: Option<u64>,
pub t: Option<String>,
}Fields§
§op: u8§d: Option<Value>§s: Option<u64>§t: Option<String>Trait Implementations§
Source§impl Debug for GatewayPayload
impl Debug for GatewayPayload
Source§impl Default for GatewayPayload
impl Default for GatewayPayload
Source§fn default() -> GatewayPayload
fn default() -> GatewayPayload
Returns the “default value” for a type. Read more
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
Source§impl Serialize for GatewayPayload
impl Serialize for GatewayPayload
impl WebSocketEvent for GatewayPayload
Auto Trait Implementations§
impl Freeze for GatewayPayload
impl RefUnwindSafe for GatewayPayload
impl Send for GatewayPayload
impl Sync for GatewayPayload
impl Unpin 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