pub struct PresenceUpdate {
pub user: User,
pub guild_id: String,
pub status: String,
pub activities: Vec<Activity>,
pub client_status: ClientStatusObject,
}Expand description
See https://discord.com/developers/docs/topics/gateway-events#presence-update-presence-update-event-fields
Fields§
§user: User§guild_id: String§status: String§activities: Vec<Activity>§client_status: ClientStatusObjectTrait Implementations§
Source§impl Clone for PresenceUpdate
impl Clone for PresenceUpdate
Source§fn clone(&self) -> PresenceUpdate
fn clone(&self) -> PresenceUpdate
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 PresenceUpdate
impl Debug for PresenceUpdate
Source§impl Default for PresenceUpdate
impl Default for PresenceUpdate
Source§fn default() -> PresenceUpdate
fn default() -> PresenceUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PresenceUpdate
impl<'de> Deserialize<'de> for PresenceUpdate
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 PresenceUpdate
impl Serialize for PresenceUpdate
impl WebSocketEvent for PresenceUpdate
Auto Trait Implementations§
impl Freeze for PresenceUpdate
impl RefUnwindSafe for PresenceUpdate
impl Send for PresenceUpdate
impl Sync for PresenceUpdate
impl Unpin for PresenceUpdate
impl UnwindSafe for PresenceUpdate
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