Struct twilight_cache_inmemory::model::CachedPresence
source · pub struct CachedPresence { /* private fields */ }Expand description
Represents a cached Presence.
Implementations§
source§impl CachedPresence
impl CachedPresence
sourcepub fn activities(&self) -> &[Activity]
pub fn activities(&self) -> &[Activity]
Current activities.
sourcepub const fn client_status(&self) -> &ClientStatus
pub const fn client_status(&self) -> &ClientStatus
Platform-dependent status.
sourcepub const fn guild_id(&self) -> Id<GuildMarker>
pub const fn guild_id(&self) -> Id<GuildMarker>
ID of the guild.
sourcepub const fn user_id(&self) -> Id<UserMarker>
pub const fn user_id(&self) -> Id<UserMarker>
ID of the user.
Trait Implementations§
source§impl Clone for CachedPresence
impl Clone for CachedPresence
source§fn clone(&self) -> CachedPresence
fn clone(&self) -> CachedPresence
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 CachedPresence
impl Debug for CachedPresence
source§impl From<Presence> for CachedPresence
impl From<Presence> for CachedPresence
source§impl PartialEq<CachedPresence> for CachedPresence
impl PartialEq<CachedPresence> for CachedPresence
source§fn eq(&self, other: &CachedPresence) -> bool
fn eq(&self, other: &CachedPresence) -> bool
This method tests for
self and other values to be equal, and is used
by ==.