Struct discord::model::ReadyEvent
[−]
[src]
pub struct ReadyEvent { pub version: u64, pub user: CurrentUser, pub session_id: String, pub user_settings: Option<UserSettings>, pub read_state: Option<Vec<ReadState>>, pub private_channels: Vec<Channel>, pub presences: Vec<Presence>, pub relationships: Vec<Relationship>, pub servers: Vec<PossibleServer<LiveServer>>, pub user_server_settings: Option<Vec<UserServerSettings>>, pub tutorial: Option<Tutorial>, pub trace: Vec<Option<String>>, pub notes: Option<BTreeMap<UserId, String>>, pub shard: Option<[u8; 2]>, }
The "Ready" event, containing initial state
Fields
version: u64
user: CurrentUser
session_id: String
user_settings: Option<UserSettings>
read_state: Option<Vec<ReadState>>
private_channels: Vec<Channel>
presences: Vec<Presence>
relationships: Vec<Relationship>
servers: Vec<PossibleServer<LiveServer>>
user_server_settings: Option<Vec<UserServerSettings>>
tutorial: Option<Tutorial>
trace: Vec<Option<String>>
The trace of servers involved in this connection.
notes: Option<BTreeMap<UserId, String>>
The shard info for this session; the shard id used and the total number of shards.
Trait Implementations
impl Debug for ReadyEvent
[src]
impl Clone for ReadyEvent
[src]
fn clone(&self) -> ReadyEvent
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more