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 From<CustomEvent> for Event
[src]
fn from(event: CustomEvent) -> Self
[src]
Performs the conversion.
impl From<CustomEvent> for Event
[src]
fn from(event: CustomEvent) -> Self
[src]
Performs the conversion.
impl Clone for CustomEvent
[src]
fn clone(&self) -> CustomEvent
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for CustomEvent
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Event for CustomEvent
[src]
type Content = Value
The event-type-specific payload this event carries.
fn content(&self) -> &<CustomEvent as Event>::Content
[src]
The event's content.
fn event_type(&self) -> &EventType
[src]
The type of the event.