pub struct PresenceUpdate(pub Presence);
Expand description
User’s presence was updated.
This may be received when a user’s activity, status, or user information - such as avatar or username - is updated.
Requires the Intents::GUILD_PRESENCES
intent to receive this event.
Refer to Discord Docs/Presence Update for additional information.
Tuple Fields§
§0: Presence
Trait Implementations§
Source§impl Clone for PresenceUpdate
impl Clone for PresenceUpdate
Source§fn clone(&self) -> PresenceUpdate
fn clone(&self) -> PresenceUpdate
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 PresenceUpdate
impl Debug for PresenceUpdate
Source§impl Deref for PresenceUpdate
impl Deref for PresenceUpdate
Source§impl DerefMut for PresenceUpdate
impl DerefMut for PresenceUpdate
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 Hash for PresenceUpdate
impl Hash for PresenceUpdate
Source§impl PartialEq for PresenceUpdate
impl PartialEq for PresenceUpdate
Source§impl Serialize for PresenceUpdate
impl Serialize for PresenceUpdate
impl Eq for PresenceUpdate
impl StructuralPartialEq 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