pub trait EventContent: Sized + Serialize {
    type EventType;

    // Required method
    fn event_type(&self) -> Self::EventType;
}
Expand description

The base trait that all event content types implement.

Use macros::EventContent to derive this traits. It is not meant to be implemented manually.

Required Associated Types§

source

type EventType

The Rust enum for the event kind’s known types.

Required Methods§

source

fn event_type(&self) -> Self::EventType

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

Object Safety§

This trait is not object safe.

Implementors§

source§

impl EventContent for AnyEphemeralRoomEventContent

source§

impl EventContent for AnyGlobalAccountDataEventContent

source§

impl EventContent for AnyMessageLikeEventContent

source§

impl EventContent for AnyRoomAccountDataEventContent

source§

impl EventContent for AnyStateEventContent

source§

impl EventContent for AnyToDeviceEventContent

source§

impl EventContent for UnstablePollStartEventContent

source§

impl EventContent for AudioEventContent

source§

impl EventContent for RedactedAudioEventContent

source§

impl EventContent for CallAnswerEventContent

source§

impl EventContent for RedactedCallAnswerEventContent

source§

impl EventContent for CallCandidatesEventContent

source§

impl EventContent for RedactedCallCandidatesEventContent

source§

impl EventContent for CallHangupEventContent

source§

impl EventContent for RedactedCallHangupEventContent

source§

impl EventContent for CallInviteEventContent

source§

impl EventContent for RedactedCallInviteEventContent

source§

impl EventContent for CallMemberEventContent

source§

impl EventContent for PossiblyRedactedCallMemberEventContent

source§

impl EventContent for RedactedCallMemberEventContent

source§

impl EventContent for CallNegotiateEventContent

source§

impl EventContent for RedactedCallNegotiateEventContent

source§

impl EventContent for CallNotifyEventContent

source§

impl EventContent for RedactedCallNotifyEventContent

source§

impl EventContent for CallRejectEventContent

source§

impl EventContent for RedactedCallRejectEventContent

source§

impl EventContent for CallSelectAnswerEventContent

source§

impl EventContent for RedactedCallSelectAnswerEventContent

source§

impl EventContent for DirectEventContent

source§

impl EventContent for ToDeviceDummyEventContent

source§

impl EventContent for EmoteEventContent

source§

impl EventContent for RedactedEmoteEventContent

source§

impl EventContent for EncryptedEventContent

source§

impl EventContent for RedactedEncryptedEventContent

source§

impl EventContent for FileEventContent

source§

impl EventContent for RedactedFileEventContent

source§

impl EventContent for ToDeviceForwardedRoomKeyEventContent

source§

impl EventContent for FullyReadEventContent

source§

impl EventContent for IdentityServerEventContent

source§

impl EventContent for IgnoredUserListEventContent

source§

impl EventContent for ImageEventContent

source§

impl EventContent for RedactedImageEventContent

source§

impl EventContent for KeyVerificationAcceptEventContent

source§

impl EventContent for RedactedKeyVerificationAcceptEventContent

source§

impl EventContent for ToDeviceKeyVerificationAcceptEventContent

source§

impl EventContent for KeyVerificationCancelEventContent

source§

impl EventContent for RedactedKeyVerificationCancelEventContent

source§

impl EventContent for ToDeviceKeyVerificationCancelEventContent

source§

impl EventContent for KeyVerificationDoneEventContent

source§

impl EventContent for RedactedKeyVerificationDoneEventContent

source§

impl EventContent for ToDeviceKeyVerificationDoneEventContent

source§

impl EventContent for KeyVerificationKeyEventContent

source§

impl EventContent for RedactedKeyVerificationKeyEventContent

source§

impl EventContent for ToDeviceKeyVerificationKeyEventContent

source§

impl EventContent for KeyVerificationMacEventContent

source§

impl EventContent for RedactedKeyVerificationMacEventContent

source§

impl EventContent for ToDeviceKeyVerificationMacEventContent

source§

impl EventContent for KeyVerificationReadyEventContent

source§

impl EventContent for RedactedKeyVerificationReadyEventContent

source§

impl EventContent for ToDeviceKeyVerificationReadyEventContent

source§

impl EventContent for ToDeviceKeyVerificationRequestEventContent

source§

impl EventContent for KeyVerificationStartEventContent

source§

impl EventContent for RedactedKeyVerificationStartEventContent

source§

impl EventContent for ToDeviceKeyVerificationStartEventContent

source§

impl EventContent for LocationEventContent

source§

impl EventContent for RedactedLocationEventContent

source§

impl EventContent for MarkedUnreadEventContent

source§

impl EventContent for MessageEventContent

source§

impl EventContent for RedactedMessageEventContent

source§

impl EventContent for PolicyRuleRoomEventContent

source§

impl EventContent for PossiblyRedactedPolicyRuleRoomEventContent

source§

impl EventContent for RedactedPolicyRuleRoomEventContent

source§

impl EventContent for PolicyRuleServerEventContent

source§

impl EventContent for PossiblyRedactedPolicyRuleServerEventContent

source§

impl EventContent for RedactedPolicyRuleServerEventContent

source§

impl EventContent for PolicyRuleUserEventContent

source§

impl EventContent for PossiblyRedactedPolicyRuleUserEventContent

source§

impl EventContent for RedactedPolicyRuleUserEventContent

source§

impl EventContent for PollEndEventContent

source§

impl EventContent for RedactedPollEndEventContent

source§

impl EventContent for PollResponseEventContent

source§

impl EventContent for RedactedPollResponseEventContent

source§

impl EventContent for PollStartEventContent

source§

impl EventContent for RedactedPollStartEventContent

source§

impl EventContent for RedactedUnstablePollEndEventContent

source§

impl EventContent for UnstablePollEndEventContent

source§

impl EventContent for RedactedUnstablePollResponseEventContent

source§

impl EventContent for UnstablePollResponseEventContent

source§

impl EventContent for NewUnstablePollStartEventContent

source§

impl EventContent for RedactedUnstablePollStartEventContent

source§

impl EventContent for ReplacementUnstablePollStartEventContent

source§

impl EventContent for PresenceEventContent

§

type EventType = PresenceEventType

source§

impl EventContent for PushRulesEventContent

source§

impl EventContent for ReactionEventContent

source§

impl EventContent for RedactedReactionEventContent

source§

impl EventContent for ReceiptEventContent

source§

impl EventContent for PossiblyRedactedRoomAliasesEventContent

source§

impl EventContent for RedactedRoomAliasesEventContent

source§

impl EventContent for RoomAliasesEventContent

source§

impl EventContent for RedactedRoomAvatarEventContent

source§

impl EventContent for RoomAvatarEventContent

source§

impl EventContent for RedactedRoomCanonicalAliasEventContent

source§

impl EventContent for RoomCanonicalAliasEventContent

source§

impl EventContent for RoomCreateEventContent

source§

impl EventContent for RedactedRoomEncryptedEventContent

source§

impl EventContent for RoomEncryptedEventContent

source§

impl EventContent for ToDeviceRoomEncryptedEventContent

source§

impl EventContent for PossiblyRedactedRoomEncryptionEventContent

source§

impl EventContent for RedactedRoomEncryptionEventContent

source§

impl EventContent for RoomEncryptionEventContent

source§

impl EventContent for PossiblyRedactedRoomGuestAccessEventContent

source§

impl EventContent for RedactedRoomGuestAccessEventContent

source§

impl EventContent for RoomGuestAccessEventContent

source§

impl EventContent for RedactedRoomHistoryVisibilityEventContent

source§

impl EventContent for RoomHistoryVisibilityEventContent

source§

impl EventContent for RedactedRoomJoinRulesEventContent

source§

impl EventContent for RoomJoinRulesEventContent

source§

impl EventContent for RedactedRoomMemberEventContent

source§

impl EventContent for RoomMemberEventContent

source§

impl EventContent for RedactedRoomMessageEventContent

source§

impl EventContent for RoomMessageEventContent

source§

impl EventContent for PossiblyRedactedRoomNameEventContent

source§

impl EventContent for RedactedRoomNameEventContent

source§

impl EventContent for RoomNameEventContent

source§

impl EventContent for PossiblyRedactedRoomPinnedEventsEventContent

source§

impl EventContent for RedactedRoomPinnedEventsEventContent

source§

impl EventContent for RoomPinnedEventsEventContent

source§

impl EventContent for RedactedRoomPowerLevelsEventContent

source§

impl EventContent for RoomPowerLevelsEventContent

source§

impl EventContent for RedactedRoomRedactionEventContent

source§

impl EventContent for RoomRedactionEventContent

source§

impl EventContent for RedactedRoomServerAclEventContent

source§

impl EventContent for RoomServerAclEventContent

source§

impl EventContent for RedactedRoomThirdPartyInviteEventContent

source§

impl EventContent for RoomThirdPartyInviteEventContent

source§

impl EventContent for PossiblyRedactedRoomTombstoneEventContent

source§

impl EventContent for RedactedRoomTombstoneEventContent

source§

impl EventContent for RoomTombstoneEventContent

source§

impl EventContent for PossiblyRedactedRoomTopicEventContent

source§

impl EventContent for RedactedRoomTopicEventContent

source§

impl EventContent for RoomTopicEventContent

source§

impl EventContent for ToDeviceRoomKeyEventContent

source§

impl EventContent for ToDeviceRoomKeyRequestEventContent

source§

impl EventContent for ToDeviceSecretRequestEventContent

source§

impl EventContent for ToDeviceSecretSendEventContent

source§

impl EventContent for SecretStorageDefaultKeyEventContent

source§

impl EventContent for SecretStorageKeyEventContent

source§

impl EventContent for PossiblyRedactedSpaceChildEventContent

source§

impl EventContent for RedactedSpaceChildEventContent

source§

impl EventContent for SpaceChildEventContent

source§

impl EventContent for PossiblyRedactedSpaceParentEventContent

source§

impl EventContent for RedactedSpaceParentEventContent

source§

impl EventContent for SpaceParentEventContent

source§

impl EventContent for RedactedStickerEventContent

source§

impl EventContent for StickerEventContent

source§

impl EventContent for TagEventContent

source§

impl EventContent for TypingEventContent

source§

impl EventContent for RedactedVideoEventContent

source§

impl EventContent for VideoEventContent

source§

impl EventContent for RedactedVoiceEventContent

source§

impl EventContent for VoiceEventContent