Trait ruma_events::StaticEventContent[][src]

pub trait StaticEventContent: EventContent {
    const KIND: EventKind;
    const TYPE: &'static str;
}
Expand description

Trait for abstracting over event content structs.

… but not enums which don’t always have an event type and kind (e.g. message vs state) that’s fixed / known at compile time.

Associated Constants

The event’s “kind”.

See the type’s documentation.

The event type.

Implementors