Struct ruma_events::CustomEvent
[−]
[src]
pub struct CustomEvent { pub content: Value, pub event_type: EventType, }
A custom basic event not covered by the Matrix specification.
Fields
content: Value
The event's content.
event_type: EventType
The type of the event.
Trait Implementations
impl Clone for CustomEvent
[src]
fn clone(&self) -> CustomEvent
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 CustomEvent
[src]
impl Event for CustomEvent
[src]
type Content = Value
The event-type-specific payload this event carries.
fn content(&self) -> &<CustomEvent 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