[][src]Struct spectacles_model::gateway::IdentifyPacket

pub struct IdentifyPacket {
    pub token: String,
    pub properties: IdentifyProperties,
    pub version: u8,
    pub compress: bool,
    pub large_threshold: i32,
    pub shard: [usize; 2],
    pub presence: Option<ClientPresence>,
}

Used for identifying a shard with the gateway.

Fields

token: String

The token this shard will use.

properties: IdentifyProperties

The properties of the client.

version: u8

The version of the gateway to use.

compress: bool

Whether or not to compress packets.

large_threshold: i32

The total number of members where the gateway will stop sending offline members in the guild member list.

shard: [usize; 2]

Holds the sharding information for this shard.

presence: Option<ClientPresence>

The initial presence of this shard.

Trait Implementations

impl SendablePacket for IdentifyPacket[src]

impl Clone for IdentifyPacket[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for IdentifyPacket[src]

impl Serialize for IdentifyPacket[src]

impl<'de> Deserialize<'de> for IdentifyPacket[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]