Trait StateEventContent

pub trait StateEventContent: Sized + Serialize {
    type StateKey: AsRef<str> + Clone + Debug + DeserializeOwned + Serialize;

    // Required method
    fn event_type(&self) -> StateEventType;
}
Expand description

Content of a non-redacted state event.

Required Associated Types§

type StateKey: AsRef<str> + Clone + Debug + DeserializeOwned + Serialize

The type of the event’s state_key field.

Required Methods§

fn event_type(&self) -> StateEventType

Get the event’s type, like m.room.name.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

§

impl StateEventContent for CallMemberEventContent

§

impl StateEventContent for AnyStateEventContent

Source§

impl StateEventContent for RoomCreateWithCreatorEventContent

§

impl StateEventContent for BeaconInfoEventContent

§

impl StateEventContent for MemberHintsEventContent

§

impl StateEventContent for PolicyRuleRoomEventContent

§

impl StateEventContent for PolicyRuleServerEventContent

§

impl StateEventContent for PolicyRuleUserEventContent

§

impl StateEventContent for RoomAliasesEventContent

§

impl StateEventContent for RoomAvatarEventContent

§

impl StateEventContent for RoomCanonicalAliasEventContent

§

impl StateEventContent for RoomCreateEventContent

§

impl StateEventContent for RoomEncryptionEventContent

§

impl StateEventContent for RoomGuestAccessEventContent

§

impl StateEventContent for RoomHistoryVisibilityEventContent

§

impl StateEventContent for RoomJoinRulesEventContent

§

impl StateEventContent for RoomMemberEventContent

§

impl StateEventContent for RoomNameEventContent

§

impl StateEventContent for RoomPinnedEventsEventContent

§

impl StateEventContent for RoomPowerLevelsEventContent

§

impl StateEventContent for RoomServerAclEventContent

§

impl StateEventContent for RoomThirdPartyInviteEventContent

§

impl StateEventContent for RoomTombstoneEventContent

§

impl StateEventContent for RoomTopicEventContent

§

impl StateEventContent for SpaceChildEventContent

§

impl StateEventContent for SpaceParentEventContent