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

pub struct PresenceEventContent {
    pub avatar_url: Option<String>,
    pub currently_active: bool,
    pub displayname: Option<String>,
    pub last_active_ago: Option<u64>,
    pub presence: PresenceState,
    pub user_id: UserId,
}

The payload of a PresenceEvent.

Fields

The current avatar URL for this user.

Whether or not the user is currently active.

The current display name for this user.

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

The presence state for this user.

The unique identifier for the user associated with this event.

Trait Implementations

impl Clone for PresenceEventContent
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for PresenceEventContent
[src]

Formats the value using the given formatter.