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
avatar_url: Option<String>
The current avatar URL for this user.
currently_active: bool
Whether or not the user is currently active.
displayname: Option<String>
The current display name for this user.
last_active_ago: Option<u64>
The last time since this used performed some action, in milliseconds.
presence: PresenceState
The presence state for this user.
user_id: UserId
The unique identifier for the user associated with this event.
Trait Implementations
impl Clone for PresenceEventContent
[src]
fn clone(&self) -> PresenceEventContent
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