Trait ruma_common::events::StaticEventContent
source · [−]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.