Struct twilight_model::gateway::payload::outgoing::identify::IdentifyInfo
source · pub struct IdentifyInfo {
pub compress: bool,
pub intents: Intents,
pub large_threshold: u64,
pub presence: Option<UpdatePresencePayload>,
pub properties: IdentifyProperties,
pub shard: Option<ShardId>,
pub token: String,
}
Fields§
§compress: bool
§intents: Intents
§large_threshold: u64
§presence: Option<UpdatePresencePayload>
§properties: IdentifyProperties
§shard: Option<ShardId>
§token: String
Trait Implementations§
source§impl Clone for IdentifyInfo
impl Clone for IdentifyInfo
source§fn clone(&self) -> IdentifyInfo
fn clone(&self) -> IdentifyInfo
Returns a copy 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 IdentifyInfo
impl Debug for IdentifyInfo
source§impl<'de> Deserialize<'de> for IdentifyInfo
impl<'de> Deserialize<'de> for IdentifyInfo
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 Hash for IdentifyInfo
impl Hash for IdentifyInfo
source§impl PartialEq<IdentifyInfo> for IdentifyInfo
impl PartialEq<IdentifyInfo> for IdentifyInfo
source§fn eq(&self, other: &IdentifyInfo) -> bool
fn eq(&self, other: &IdentifyInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for IdentifyInfo
impl Serialize for IdentifyInfo
impl Eq for IdentifyInfo
impl StructuralEq for IdentifyInfo
impl StructuralPartialEq for IdentifyInfo
Auto Trait Implementations§
impl RefUnwindSafe for IdentifyInfo
impl Send for IdentifyInfo
impl Sync for IdentifyInfo
impl Unpin for IdentifyInfo
impl UnwindSafe for IdentifyInfo
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