[][src]Struct serenity::model::gateway::Presence

pub struct Presence {
    pub activity: Option<Activity>,
    pub client_status: Option<ClientStatus>,
    pub last_modified: Option<u64>,
    pub nick: Option<String>,
    pub status: OnlineStatus,
    pub user_id: UserId,
    pub user: Option<Arc<RwLock<User>>>,
    // some fields omitted
}

Information detailing the current online status of a User.

Fields

activity: Option<Activity>

The activity that a User is performing.

client_status: Option<ClientStatus>

The devices a user are currently active on, if available.

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]

impl Debug for Presence[src]

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

impl Serialize for Presence[src]

Auto Trait Implementations

impl !RefUnwindSafe for Presence

impl Send for Presence

impl Sync for Presence

impl Unpin for Presence

impl !UnwindSafe for Presence

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Clone + Any
[src]

impl<T> DebugAny for T where
    T: Any + Debug
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> UnsafeAny for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,