pub struct GatewayIdentifyPayload {
pub token: String,
pub properties: GatewayIdentifyConnectionProps,
pub compress: Option<bool>,
pub large_threshold: Option<i16>,
pub shard: Option<Vec<(i32, i32)>>,
pub presence: Option<PresenceUpdate>,
pub intents: i32,
}Fields§
§token: String§properties: GatewayIdentifyConnectionProps§compress: Option<bool>§large_threshold: Option<i16>§shard: Option<Vec<(i32, i32)>>§presence: Option<PresenceUpdate>§intents: i32Trait Implementations§
Source§impl Debug for GatewayIdentifyPayload
impl Debug for GatewayIdentifyPayload
Source§impl Default for GatewayIdentifyPayload
impl Default for GatewayIdentifyPayload
Source§fn default() -> GatewayIdentifyPayload
fn default() -> GatewayIdentifyPayload
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GatewayIdentifyPayload
impl<'de> Deserialize<'de> for GatewayIdentifyPayload
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 GatewayIdentifyPayload
impl Serialize for GatewayIdentifyPayload
impl WebSocketEvent for GatewayIdentifyPayload
Auto Trait Implementations§
impl Freeze for GatewayIdentifyPayload
impl RefUnwindSafe for GatewayIdentifyPayload
impl Send for GatewayIdentifyPayload
impl Sync for GatewayIdentifyPayload
impl Unpin for GatewayIdentifyPayload
impl UnwindSafe for GatewayIdentifyPayload
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