pub struct Presence {
pub user: PresenceUser,
pub roles: Option<Vec<Snowflake>>,
pub game: Option<Activity>,
pub guild_id: Option<Snowflake>,
pub status: Option<Status>,
pub activities: Option<Vec<Activity>>,
pub client_status: Option<ClientStatus>,
}Expand description
Represents a user’s presence in a Discord guild.
Fields§
§user: PresenceUserThe user that this presence belongs to.
roles: Option<Vec<Snowflake>>The roles that this user has.
game: Option<Activity>The user’s current activity, if any.
guild_id: Option<Snowflake>The ID of the guild.
status: Option<Status>The status of this user.
activities: Option<Vec<Activity>>The user’s current activities.
client_status: Option<ClientStatus>The user’s client status.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Presence
impl<'de> Deserialize<'de> for Presence
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
Auto Trait Implementations§
impl Freeze for Presence
impl RefUnwindSafe for Presence
impl Send for Presence
impl Sync for Presence
impl Unpin for Presence
impl UnwindSafe for Presence
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