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<User>, }
A set of settings each member of a guild has.
Fields
game: Option<Game>
A game's name that is displayed near user's name.
last_modified: Option<u64>
Date of last presence change.
nick: Option<String>
Optional nickname. Can't be longer than 32 characters.
status: OnlineStatus
Member's online status.
user_id: UserId
Member's Id. Can be used to calculate account creation date.
user: Option<User>
Attached User struct.
Trait Implementations
impl Clone for Presence
[src]
fn clone(&self) -> Presence
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more