pub struct PresenceUpdate(pub Presence);Expand description
The data of the Presence Update
dispatch event (requires the GUILD_PRESENCES intent).
discord.js counterpart: the PresenceUpdate event.
Dereferences to the contained Presence.
Tuple Fields§
§0: PresenceTrait Implementations§
Source§impl Clone for PresenceUpdate
impl Clone for PresenceUpdate
Source§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 From<PresenceUpdate> for Presence
impl From<PresenceUpdate> for Presence
Source§fn from(event: PresenceUpdate) -> Self
fn from(event: PresenceUpdate) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PresenceUpdate
impl PartialEq for PresenceUpdate
Source§impl Serialize for PresenceUpdate
impl Serialize 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 UnsafeUnpin 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