pub struct ReadyPacket {
pub v: i32,
pub user: User,
pub private_channels: [String; 0],
pub guilds: Vec<UnavailableGuild>,
pub session_id: String,
pub _trace: Vec<String>,
pub shard: [u64; 2],
}Expand description
The packet received when a client completes a handshake with the Discord gateway. This packet is considered the largest and most complex packet sent.
Fields§
§v: i32The current gateway version,
user: UserInformation about the current user.
private_channels: [String; 0]An empty array of private channels.
guilds: Vec<UnavailableGuild>The guilds that the user is currently in. This will be an array of UnavailableGuild objects.
session_id: StringThe session ID that is used to resume a gateway connection.
_trace: Vec<String>The guilds that a user is in, used for debugging.
shard: [u64; 2]Information about the current shard, if applicable.
Trait Implementations§
Source§impl Clone for ReadyPacket
impl Clone for ReadyPacket
Source§fn clone(&self) -> ReadyPacket
fn clone(&self) -> ReadyPacket
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 ReadyPacket
impl Debug for ReadyPacket
Source§impl<'de> Deserialize<'de> for ReadyPacket
impl<'de> Deserialize<'de> for ReadyPacket
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 ReadyPacket
impl RefUnwindSafe for ReadyPacket
impl Send for ReadyPacket
impl Sync for ReadyPacket
impl Unpin for ReadyPacket
impl UnwindSafe for ReadyPacket
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