[][src]Struct ruma_events::presence::PresenceEventContent

pub struct PresenceEventContent {
    pub avatar_url: Option<String>,
    pub currently_active: Option<bool>,
    pub displayname: Option<String>,
    pub last_active_ago: Option<UInt>,
    pub presence: PresenceState,
    pub status_msg: Option<String>,
}

The payload for PresenceEvent.

Fields

avatar_url: Option<String>

The current avatar URL for this user.

currently_active: Option<bool>

Whether or not the user is currently active.

displayname: Option<String>

The current display name for this user.

last_active_ago: Option<UInt>

The last time since this user performed some action, in milliseconds.

presence: PresenceState

The presence state for this user.

status_msg: Option<String>

An optional description to accompany the presence.

Trait Implementations

impl Clone for PresenceEventContent[src]

impl Debug for PresenceEventContent[src]

impl FromRaw for PresenceEventContent[src]

type Raw = PresenceEventContent

The raw type.

impl Serialize for PresenceEventContent[src]

Auto Trait Implementations

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> From<T> for T[src]

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

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<V, T> VZip<V> for T where
    V: MultiLane<T>,