matrix_sdk_base::ruma::events

Trait EventContent

Source
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.

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§

Source§

impl EventContent for CallMemberEventContent

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 RoomCreateWithCreatorEventContent

Source§

impl EventContent for BeaconEventContent

Source§

impl EventContent for RedactedBeaconEventContent

Source§

impl EventContent for BeaconInfoEventContent

Source§

impl EventContent for PossiblyRedactedBeaconInfoEventContent

Source§

impl EventContent for RedactedBeaconInfoEventContent

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 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 CallSdpStreamMetadataChangedEventContent

Source§

impl EventContent for RedactedCallSdpStreamMetadataChangedEventContent

Source§

impl EventContent for CallSelectAnswerEventContent

Source§

impl EventContent for RedactedCallSelectAnswerEventContent

Source§

impl EventContent for DirectEventContent

Source§

impl EventContent for ToDeviceDummyEventContent

Source§

impl EventContent for ToDeviceForwardedRoomKeyEventContent

Source§

impl EventContent for FullyReadEventContent

Source§

impl EventContent for IdentityServerEventContent

Source§

impl EventContent for IgnoredUserListEventContent

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 UnstableMarkedUnreadEventContent

Source§

impl EventContent for MemberHintsEventContent

Source§

impl EventContent for PossiblyRedactedMemberHintsEventContent

Source§

impl EventContent for RedactedMemberHintsEventContent

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

Source§

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 PossiblyRedactedRoomThirdPartyInviteEventContent

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