pub struct PresenceData {
pub activity: Option<ActivityData>,
pub status: OnlineStatus,
}
Expand description
Presence data of the current user.
Fields§
§activity: Option<ActivityData>
The current activity, if present
status: OnlineStatus
The current online status
Trait Implementations§
Source§impl Clone for PresenceData
impl Clone for PresenceData
Source§fn clone(&self) -> PresenceData
fn clone(&self) -> PresenceData
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 PresenceData
impl Debug for PresenceData
Source§impl Default for PresenceData
impl Default for PresenceData
Source§fn default() -> PresenceData
fn default() -> PresenceData
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PresenceData
impl RefUnwindSafe for PresenceData
impl Send for PresenceData
impl Sync for PresenceData
impl Unpin for PresenceData
impl UnwindSafe for PresenceData
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