Struct serenity::model::gateway::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

The game that a User is current playing.

The date of the last presence update.

The nickname of the member, if applicable.

The user's online status.

The Id of the User. Can be used to calculate the user's creation date.

The associated user instance.

Trait Implementations

impl Clone for Presence
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Presence
[src]

Formats the value using the given formatter. Read more

impl<'de> Deserialize<'de> for Presence
[src]

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for Presence
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

impl Send for Presence

impl Sync for Presence