Struct ruma_events::presence::PresenceEvent
[−]
[src]
pub struct PresenceEvent { pub content: PresenceEventContent, pub event_type: EventType, pub event_id: EventId, }
Informs the client of a user's presence state change.
Fields
content: PresenceEventContent
The event's content.
event_type: EventType
The type of the event.
event_id: EventId
The unique identifier for the event.
Trait Implementations
impl Clone for PresenceEvent
[src]
fn clone(&self) -> PresenceEvent
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 PresenceEvent
[src]
impl Event for PresenceEvent
[src]
type Content = PresenceEventContent
The event-type-specific payload this event carries.
fn content(&self) -> &<PresenceEvent as Event>::Content
The event's content.
fn event_type(&self) -> &EventType
The type of the event.
fn extra_content(&self) -> Option<Value>
Extra top-level key-value pairs specific to this event type, but that are not under the content
field. Read more