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

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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Presence
[src]

[src]

Formats the value using the given formatter.

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

[src]

Deserialize this value from the given Serde deserializer. Read more