Trait ruma_common::events::EventContent
source · [−]pub trait EventContent: Sized + Serialize {
type EventType;
fn event_type(&self) -> Self::EventType;
}
Available on crate feature
events
only.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
Required Methods
sourcefn event_type(&self) -> Self::EventType
fn event_type(&self) -> Self::EventType
Get the event’s type, like m.room.message
.
Implementors
sourceimpl EventContent for AnyStateEventContent
impl EventContent for AnyStateEventContent
type EventType = StateEventType
sourceimpl EventContent for AnyToDeviceEventContent
impl EventContent for AnyToDeviceEventContent
type EventType = ToDeviceEventType
sourceimpl EventContent for AudioEventContent
Available on crate feature unstable-msc3246
only.
impl EventContent for AudioEventContent
Available on crate feature
unstable-msc3246
only.type EventType = MessageLikeEventType
sourceimpl EventContent for RedactedAudioEventContent
Available on crate feature unstable-msc3246
only.
impl EventContent for RedactedAudioEventContent
Available on crate feature
unstable-msc3246
only.type EventType = MessageLikeEventType
sourceimpl EventContent for CallAnswerEventContent
impl EventContent for CallAnswerEventContent
type EventType = MessageLikeEventType
sourceimpl EventContent for CallHangupEventContent
impl EventContent for CallHangupEventContent
type EventType = MessageLikeEventType
sourceimpl EventContent for CallInviteEventContent
impl EventContent for CallInviteEventContent
type EventType = MessageLikeEventType
sourceimpl EventContent for CallNegotiateEventContent
Available on crate feature unstable-msc2746
only.
impl EventContent for CallNegotiateEventContent
Available on crate feature
unstable-msc2746
only.type EventType = MessageLikeEventType
sourceimpl EventContent for RedactedCallNegotiateEventContent
Available on crate feature unstable-msc2746
only.
impl EventContent for RedactedCallNegotiateEventContent
Available on crate feature
unstable-msc2746
only.type EventType = MessageLikeEventType
sourceimpl EventContent for CallRejectEventContent
Available on crate feature unstable-msc2746
only.
impl EventContent for CallRejectEventContent
Available on crate feature
unstable-msc2746
only.type EventType = MessageLikeEventType
sourceimpl EventContent for RedactedCallRejectEventContent
Available on crate feature unstable-msc2746
only.
impl EventContent for RedactedCallRejectEventContent
Available on crate feature
unstable-msc2746
only.type EventType = MessageLikeEventType
sourceimpl EventContent for CallSelectAnswerEventContent
Available on crate feature unstable-msc2746
only.
impl EventContent for CallSelectAnswerEventContent
Available on crate feature
unstable-msc2746
only.type EventType = MessageLikeEventType
sourceimpl EventContent for RedactedCallSelectAnswerEventContent
Available on crate feature unstable-msc2746
only.
impl EventContent for RedactedCallSelectAnswerEventContent
Available on crate feature
unstable-msc2746
only.type EventType = MessageLikeEventType
sourceimpl EventContent for DirectEventContent
impl EventContent for DirectEventContent
sourceimpl EventContent for ToDeviceDummyEventContent
impl EventContent for ToDeviceDummyEventContent
type EventType = ToDeviceEventType
sourceimpl EventContent for EmoteEventContent
Available on crate feature unstable-msc1767
only.
impl EventContent for EmoteEventContent
Available on crate feature
unstable-msc1767
only.type EventType = MessageLikeEventType
sourceimpl EventContent for RedactedEmoteEventContent
Available on crate feature unstable-msc1767
only.
impl EventContent for RedactedEmoteEventContent
Available on crate feature
unstable-msc1767
only.type EventType = MessageLikeEventType
sourceimpl EventContent for FileEventContent
Available on crate feature unstable-msc3551
only.
impl EventContent for FileEventContent
Available on crate feature
unstable-msc3551
only.type EventType = MessageLikeEventType
sourceimpl EventContent for RedactedFileEventContent
Available on crate feature unstable-msc3551
only.
impl EventContent for RedactedFileEventContent
Available on crate feature
unstable-msc3551
only.type EventType = MessageLikeEventType
sourceimpl EventContent for FullyReadEventContent
impl EventContent for FullyReadEventContent
sourceimpl EventContent for ImageEventContent
Available on crate feature unstable-msc3552
only.
impl EventContent for ImageEventContent
Available on crate feature
unstable-msc3552
only.type EventType = MessageLikeEventType
sourceimpl EventContent for RedactedImageEventContent
Available on crate feature unstable-msc3552
only.
impl EventContent for RedactedImageEventContent
Available on crate feature
unstable-msc3552
only.type EventType = MessageLikeEventType
sourceimpl EventContent for RedactedKeyVerificationAcceptEventContent
impl EventContent for RedactedKeyVerificationAcceptEventContent
type EventType = MessageLikeEventType
sourceimpl EventContent for ToDeviceKeyVerificationAcceptEventContent
impl EventContent for ToDeviceKeyVerificationAcceptEventContent
type EventType = ToDeviceEventType
sourceimpl EventContent for RedactedKeyVerificationCancelEventContent
impl EventContent for RedactedKeyVerificationCancelEventContent
type EventType = MessageLikeEventType
sourceimpl EventContent for ToDeviceKeyVerificationCancelEventContent
impl EventContent for ToDeviceKeyVerificationCancelEventContent
type EventType = ToDeviceEventType
sourceimpl EventContent for RedactedKeyVerificationDoneEventContent
impl EventContent for RedactedKeyVerificationDoneEventContent
type EventType = MessageLikeEventType
sourceimpl EventContent for ToDeviceKeyVerificationDoneEventContent
impl EventContent for ToDeviceKeyVerificationDoneEventContent
type EventType = ToDeviceEventType
sourceimpl EventContent for RedactedKeyVerificationKeyEventContent
impl EventContent for RedactedKeyVerificationKeyEventContent
type EventType = MessageLikeEventType
sourceimpl EventContent for ToDeviceKeyVerificationKeyEventContent
impl EventContent for ToDeviceKeyVerificationKeyEventContent
type EventType = ToDeviceEventType
sourceimpl EventContent for RedactedKeyVerificationMacEventContent
impl EventContent for RedactedKeyVerificationMacEventContent
type EventType = MessageLikeEventType
sourceimpl EventContent for ToDeviceKeyVerificationMacEventContent
impl EventContent for ToDeviceKeyVerificationMacEventContent
type EventType = ToDeviceEventType
sourceimpl EventContent for RedactedKeyVerificationReadyEventContent
impl EventContent for RedactedKeyVerificationReadyEventContent
type EventType = MessageLikeEventType
sourceimpl EventContent for ToDeviceKeyVerificationReadyEventContent
impl EventContent for ToDeviceKeyVerificationReadyEventContent
type EventType = ToDeviceEventType
sourceimpl EventContent for ToDeviceKeyVerificationRequestEventContent
impl EventContent for ToDeviceKeyVerificationRequestEventContent
type EventType = ToDeviceEventType
sourceimpl EventContent for RedactedKeyVerificationStartEventContent
impl EventContent for RedactedKeyVerificationStartEventContent
type EventType = MessageLikeEventType
sourceimpl EventContent for ToDeviceKeyVerificationStartEventContent
impl EventContent for ToDeviceKeyVerificationStartEventContent
type EventType = ToDeviceEventType
sourceimpl EventContent for LocationEventContent
Available on crate feature unstable-msc3488
only.
impl EventContent for LocationEventContent
Available on crate feature
unstable-msc3488
only.type EventType = MessageLikeEventType
sourceimpl EventContent for RedactedLocationEventContent
Available on crate feature unstable-msc3488
only.
impl EventContent for RedactedLocationEventContent
Available on crate feature
unstable-msc3488
only.type EventType = MessageLikeEventType
sourceimpl EventContent for MessageEventContent
Available on crate feature unstable-msc1767
only.
impl EventContent for MessageEventContent
Available on crate feature
unstable-msc1767
only.type EventType = MessageLikeEventType
sourceimpl EventContent for RedactedMessageEventContent
Available on crate feature unstable-msc1767
only.
impl EventContent for RedactedMessageEventContent
Available on crate feature
unstable-msc1767
only.type EventType = MessageLikeEventType
sourceimpl EventContent for NoticeEventContent
Available on crate feature unstable-msc1767
only.
impl EventContent for NoticeEventContent
Available on crate feature
unstable-msc1767
only.type EventType = MessageLikeEventType
sourceimpl EventContent for RedactedNoticeEventContent
Available on crate feature unstable-msc1767
only.
impl EventContent for RedactedNoticeEventContent
Available on crate feature
unstable-msc1767
only.type EventType = MessageLikeEventType
sourceimpl EventContent for PolicyRuleRoomEventContent
impl EventContent for PolicyRuleRoomEventContent
type EventType = StateEventType
sourceimpl EventContent for PolicyRuleServerEventContent
impl EventContent for PolicyRuleServerEventContent
type EventType = StateEventType
sourceimpl EventContent for PolicyRuleUserEventContent
impl EventContent for PolicyRuleUserEventContent
type EventType = StateEventType
sourceimpl EventContent for PollEndEventContent
Available on crate feature unstable-msc3381
only.
impl EventContent for PollEndEventContent
Available on crate feature
unstable-msc3381
only.type EventType = MessageLikeEventType
sourceimpl EventContent for RedactedPollEndEventContent
Available on crate feature unstable-msc3381
only.
impl EventContent for RedactedPollEndEventContent
Available on crate feature
unstable-msc3381
only.type EventType = MessageLikeEventType
sourceimpl EventContent for PollResponseEventContent
Available on crate feature unstable-msc3381
only.
impl EventContent for PollResponseEventContent
Available on crate feature
unstable-msc3381
only.type EventType = MessageLikeEventType
sourceimpl EventContent for RedactedPollResponseEventContent
Available on crate feature unstable-msc3381
only.
impl EventContent for RedactedPollResponseEventContent
Available on crate feature
unstable-msc3381
only.type EventType = MessageLikeEventType
sourceimpl EventContent for PollStartEventContent
Available on crate feature unstable-msc3381
only.
impl EventContent for PollStartEventContent
Available on crate feature
unstable-msc3381
only.type EventType = MessageLikeEventType
sourceimpl EventContent for RedactedPollStartEventContent
Available on crate feature unstable-msc3381
only.
impl EventContent for RedactedPollStartEventContent
Available on crate feature
unstable-msc3381
only.type EventType = MessageLikeEventType
sourceimpl EventContent for PresenceEventContent
impl EventContent for PresenceEventContent
type EventType = PresenceEventType
sourceimpl EventContent for ReactionEventContent
Available on crate feature unstable-msc2677
only.
impl EventContent for ReactionEventContent
Available on crate feature
unstable-msc2677
only.type EventType = MessageLikeEventType
sourceimpl EventContent for RedactedReactionEventContent
Available on crate feature unstable-msc2677
only.
impl EventContent for RedactedReactionEventContent
Available on crate feature
unstable-msc2677
only.type EventType = MessageLikeEventType
sourceimpl EventContent for ReceiptEventContent
impl EventContent for ReceiptEventContent
type EventType = EphemeralRoomEventType
sourceimpl EventContent for RedactedRoomAliasesEventContent
impl EventContent for RedactedRoomAliasesEventContent
type EventType = StateEventType
sourceimpl EventContent for RoomAliasesEventContent
impl EventContent for RoomAliasesEventContent
type EventType = StateEventType
sourceimpl EventContent for RedactedRoomAvatarEventContent
impl EventContent for RedactedRoomAvatarEventContent
type EventType = StateEventType
sourceimpl EventContent for RoomAvatarEventContent
impl EventContent for RoomAvatarEventContent
type EventType = StateEventType
sourceimpl EventContent for RoomCanonicalAliasEventContent
impl EventContent for RoomCanonicalAliasEventContent
type EventType = StateEventType
sourceimpl EventContent for RedactedRoomCreateEventContent
impl EventContent for RedactedRoomCreateEventContent
type EventType = StateEventType
sourceimpl EventContent for RoomCreateEventContent
impl EventContent for RoomCreateEventContent
type EventType = StateEventType
sourceimpl EventContent for RoomEncryptedEventContent
impl EventContent for RoomEncryptedEventContent
type EventType = MessageLikeEventType
sourceimpl EventContent for RoomEncryptionEventContent
impl EventContent for RoomEncryptionEventContent
type EventType = StateEventType
sourceimpl EventContent for RoomGuestAccessEventContent
impl EventContent for RoomGuestAccessEventContent
type EventType = StateEventType
sourceimpl EventContent for RedactedRoomHistoryVisibilityEventContent
impl EventContent for RedactedRoomHistoryVisibilityEventContent
type EventType = StateEventType
sourceimpl EventContent for RoomJoinRulesEventContent
impl EventContent for RoomJoinRulesEventContent
type EventType = StateEventType
sourceimpl EventContent for RedactedRoomMemberEventContent
impl EventContent for RedactedRoomMemberEventContent
type EventType = StateEventType
sourceimpl EventContent for RoomMemberEventContent
impl EventContent for RoomMemberEventContent
type EventType = StateEventType
sourceimpl EventContent for RoomMessageEventContent
impl EventContent for RoomMessageEventContent
type EventType = MessageLikeEventType
sourceimpl EventContent for RedactedRoomNameEventContent
impl EventContent for RedactedRoomNameEventContent
type EventType = StateEventType
sourceimpl EventContent for RoomNameEventContent
impl EventContent for RoomNameEventContent
type EventType = StateEventType
sourceimpl EventContent for RoomPinnedEventsEventContent
impl EventContent for RoomPinnedEventsEventContent
type EventType = StateEventType
sourceimpl EventContent for RoomPowerLevelsEventContent
impl EventContent for RoomPowerLevelsEventContent
type EventType = StateEventType
sourceimpl EventContent for RoomRedactionEventContent
impl EventContent for RoomRedactionEventContent
type EventType = MessageLikeEventType
sourceimpl EventContent for RoomServerAclEventContent
impl EventContent for RoomServerAclEventContent
type EventType = StateEventType
sourceimpl EventContent for RoomTombstoneEventContent
impl EventContent for RoomTombstoneEventContent
type EventType = StateEventType
sourceimpl EventContent for RedactedRoomTopicEventContent
impl EventContent for RedactedRoomTopicEventContent
type EventType = StateEventType
sourceimpl EventContent for RoomTopicEventContent
impl EventContent for RoomTopicEventContent
type EventType = StateEventType
sourceimpl EventContent for ToDeviceRoomKeyEventContent
impl EventContent for ToDeviceRoomKeyEventContent
type EventType = ToDeviceEventType
sourceimpl EventContent for RedactedSpaceChildEventContent
impl EventContent for RedactedSpaceChildEventContent
type EventType = StateEventType
sourceimpl EventContent for SpaceChildEventContent
impl EventContent for SpaceChildEventContent
type EventType = StateEventType
sourceimpl EventContent for RedactedSpaceParentEventContent
impl EventContent for RedactedSpaceParentEventContent
type EventType = StateEventType
sourceimpl EventContent for SpaceParentEventContent
impl EventContent for SpaceParentEventContent
type EventType = StateEventType
sourceimpl EventContent for StickerEventContent
impl EventContent for StickerEventContent
type EventType = MessageLikeEventType
sourceimpl EventContent for TagEventContent
impl EventContent for TagEventContent
sourceimpl EventContent for TypingEventContent
impl EventContent for TypingEventContent
type EventType = EphemeralRoomEventType
sourceimpl EventContent for RedactedVideoEventContent
Available on crate feature unstable-msc3553
only.
impl EventContent for RedactedVideoEventContent
Available on crate feature
unstable-msc3553
only.type EventType = MessageLikeEventType
sourceimpl EventContent for VideoEventContent
Available on crate feature unstable-msc3553
only.
impl EventContent for VideoEventContent
Available on crate feature
unstable-msc3553
only.type EventType = MessageLikeEventType
sourceimpl EventContent for RedactedVoiceEventContent
Available on crate feature unstable-msc3245
only.
impl EventContent for RedactedVoiceEventContent
Available on crate feature
unstable-msc3245
only.type EventType = MessageLikeEventType
sourceimpl EventContent for VoiceEventContent
Available on crate feature unstable-msc3245
only.
impl EventContent for VoiceEventContent
Available on crate feature
unstable-msc3245
only.