Struct discord::model::Presence [] [src]

pub struct Presence {
    pub user_id: UserId,
    pub status: OnlineStatus,
    pub last_modified: Option<u64>,
    pub game: Option<Game>,
    pub user: Option<User>,
    pub nick: Option<String>,
}

A members's online status

Fields

user_id
status
last_modified
game
user
nick

Methods

impl Presence
[src]

fn decode(value: Value) -> Result<Presence>

Trait Implementations

Derived 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

impl Debug for Presence
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.