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
Implementors
impl StaticEventContent for DoneEventContent
This is supported on crate feature
unstable-pre-spec
only.impl StaticEventContent for DoneToDeviceEventContent
This is supported on crate feature
unstable-pre-spec
only.impl StaticEventContent for RedactedDoneEventContent
This is supported on crate feature
unstable-pre-spec
only.impl StaticEventContent for ReadyEventContent
This is supported on crate feature
unstable-pre-spec
only.impl StaticEventContent for ReadyToDeviceEventContent
This is supported on crate feature
unstable-pre-spec
only.impl StaticEventContent for RedactedReadyEventContent
This is supported on crate feature
unstable-pre-spec
only.impl StaticEventContent for ReactionEventContent
This is supported on crate feature
unstable-pre-spec
only.impl StaticEventContent for RedactedReactionEventContent
This is supported on crate feature
unstable-pre-spec
only.impl StaticEventContent for ChildEventContent
This is supported on crate feature
unstable-pre-spec
only.impl StaticEventContent for RedactedChildEventContent
This is supported on crate feature
unstable-pre-spec
only.impl StaticEventContent for ParentEventContent
This is supported on crate feature
unstable-pre-spec
only.impl StaticEventContent for RedactedParentEventContent
This is supported on crate feature
unstable-pre-spec
only.