pub struct CachedPresence {
pub guild_id: Id<GuildMarker>,
pub status: Status,
pub user: Id<UserMarker>,
}Expand description
A cached presence
It’s the same as twilight_model::gateway::presence::Presence except:
-
userfield is changed to a user ID, since users are cached separately -
client_statusfield is removed, as caching it is likely unnecessary, if you need this field, please create an issue -
activitiesfield is removed, since they’re cached separately
Fields§
§guild_id: Id<GuildMarker>§status: Status§user: Id<UserMarker>Trait Implementations§
Source§impl Clone for CachedPresence
impl Clone for CachedPresence
Source§fn clone(&self) -> CachedPresence
fn clone(&self) -> CachedPresence
Returns a duplicate 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
impl Copy for CachedPresence
Auto Trait Implementations§
impl Freeze for CachedPresence
impl RefUnwindSafe for CachedPresence
impl Send for CachedPresence
impl Sync for CachedPresence
impl Unpin for CachedPresence
impl UnwindSafe for CachedPresence
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