Struct serenity::gateway::PresenceData
source · pub struct PresenceData {
pub activity: Option<ActivityData>,
pub status: OnlineStatus,
}
Available on crate feature
gateway
only.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 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