Struct serenity::model::Presence
[−]
[src]
pub struct Presence {
pub game: Option<Game>,
pub last_modified: Option<u64>,
pub nick: Option<String>,
pub status: OnlineStatus,
pub user_id: UserId,
pub user: Option<Arc<RwLock<User>>>,
}Information detailing the current online status of a User.
Fields
game: Option<Game>
The game that a User is current playing.
last_modified: Option<u64>
The date of the last presence update.
nick: Option<String>
The nickname of the member, if applicable.
status: OnlineStatus
The user's online status.
user_id: UserId
The Id of the [User]. Can be used to calculate the user's creation
date.
user: Option<Arc<RwLock<User>>>
The associated user instance.
Trait Implementations
impl Clone for Presence[src]
fn clone(&self) -> Presence[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for Presence[src]
impl<'de> Deserialize<'de> for Presence[src]
fn deserialize<D: Deserializer<'de>>(
deserializer: D
) -> StdResult<Presence, D::Error>[src]
deserializer: D
) -> StdResult<Presence, D::Error>
Deserialize this value from the given Serde deserializer. Read more