Enum ruma::events::AnyMessageLikeEventContent
source · [−]pub enum AnyMessageLikeEventContent {
Show 31 variants
Audio(AudioEventContent),
CallAnswer(CallAnswerEventContent),
CallInvite(CallInviteEventContent),
CallHangup(CallHangupEventContent),
CallCandidates(CallCandidatesEventContent),
CallNegotiate(CallNegotiateEventContent),
CallReject(CallRejectEventContent),
CallSelectAnswer(CallSelectAnswerEventContent),
Emote(EmoteEventContent),
File(FileEventContent),
Image(ImageEventContent),
KeyVerificationReady(KeyVerificationReadyEventContent),
KeyVerificationStart(KeyVerificationStartEventContent),
KeyVerificationCancel(KeyVerificationCancelEventContent),
KeyVerificationAccept(KeyVerificationAcceptEventContent),
KeyVerificationKey(KeyVerificationKeyEventContent),
KeyVerificationMac(KeyVerificationMacEventContent),
KeyVerificationDone(KeyVerificationDoneEventContent),
Location(LocationEventContent),
Message(MessageEventContent),
Notice(NoticeEventContent),
PollStart(PollStartEventContent),
PollResponse(PollResponseEventContent),
PollEnd(PollEndEventContent),
Reaction(ReactionEventContent),
RoomEncrypted(RoomEncryptedEventContent),
RoomMessage(RoomMessageEventContent),
RoomRedaction(RoomRedactionEventContent),
Sticker(StickerEventContent),
Video(VideoEventContent),
Voice(VoiceEventContent),
// some variants omitted
}
events
only.Expand description
Any message-like event.
Variants
Audio(AudioEventContent)
unstable-msc3246
only.m.audio
CallAnswer(CallAnswerEventContent)
m.call.answer
CallInvite(CallInviteEventContent)
m.call.invite
CallHangup(CallHangupEventContent)
m.call.hangup
CallCandidates(CallCandidatesEventContent)
m.call.candidates
CallNegotiate(CallNegotiateEventContent)
unstable-msc2746
only.m.call.negotiate
CallReject(CallRejectEventContent)
unstable-msc2746
only.m.call.reject
CallSelectAnswer(CallSelectAnswerEventContent)
unstable-msc2746
only.m.call.select_answer
Emote(EmoteEventContent)
unstable-msc1767
only.m.emote
File(FileEventContent)
unstable-msc3551
only.m.file
Image(ImageEventContent)
unstable-msc3552
only.m.image
KeyVerificationReady(KeyVerificationReadyEventContent)
m.key.verification.ready
KeyVerificationStart(KeyVerificationStartEventContent)
m.key.verification.start
KeyVerificationCancel(KeyVerificationCancelEventContent)
m.key.verification.cancel
KeyVerificationAccept(KeyVerificationAcceptEventContent)
m.key.verification.accept
KeyVerificationKey(KeyVerificationKeyEventContent)
m.key.verification.key
KeyVerificationMac(KeyVerificationMacEventContent)
m.key.verification.mac
KeyVerificationDone(KeyVerificationDoneEventContent)
m.key.verification.done
Location(LocationEventContent)
unstable-msc3488
only.m.location
Message(MessageEventContent)
unstable-msc1767
only.m.message
Notice(NoticeEventContent)
unstable-msc1767
only.m.notice
PollStart(PollStartEventContent)
unstable-msc3381
only.m.poll.start
This variant uses the unstable type org.matrix.msc3381.poll.start
.
This variant can also be deserialized from the m.poll.start
type.
PollResponse(PollResponseEventContent)
unstable-msc3381
only.m.poll.response
This variant uses the unstable type org.matrix.msc3381.poll.response
.
This variant can also be deserialized from the m.poll.response
type.
PollEnd(PollEndEventContent)
unstable-msc3381
only.m.poll.end
This variant uses the unstable type org.matrix.msc3381.poll.end
.
This variant can also be deserialized from the m.poll.end
type.
Reaction(ReactionEventContent)
unstable-msc2677
only.m.reaction
RoomEncrypted(RoomEncryptedEventContent)
m.room.encrypted
RoomMessage(RoomMessageEventContent)
m.room.message
RoomRedaction(RoomRedactionEventContent)
m.room.redaction
Sticker(StickerEventContent)
m.sticker
Video(VideoEventContent)
unstable-msc3553
only.m.video
Voice(VoiceEventContent)
unstable-msc3245
only.m.voice
Implementations
Trait Implementations
sourceimpl Clone for AnyMessageLikeEventContent
impl Clone for AnyMessageLikeEventContent
sourcefn clone(&self) -> AnyMessageLikeEventContent
fn clone(&self) -> AnyMessageLikeEventContent
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for AnyMessageLikeEventContent
impl Debug for AnyMessageLikeEventContent
sourceimpl EventContent for AnyMessageLikeEventContent
impl EventContent for AnyMessageLikeEventContent
type EventType = MessageLikeEventType
type EventType = MessageLikeEventType
sourcefn event_type(&self) -> <AnyMessageLikeEventContent as EventContent>::EventType
fn event_type(&self) -> <AnyMessageLikeEventContent as EventContent>::EventType
m.room.message
.sourceimpl From<AudioEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3246
only.
impl From<AudioEventContent> for AnyMessageLikeEventContent
unstable-msc3246
only.sourcefn from(c: AudioEventContent) -> AnyMessageLikeEventContent
fn from(c: AudioEventContent) -> AnyMessageLikeEventContent
sourceimpl From<CallAnswerEventContent> for AnyMessageLikeEventContent
impl From<CallAnswerEventContent> for AnyMessageLikeEventContent
sourcefn from(c: CallAnswerEventContent) -> AnyMessageLikeEventContent
fn from(c: CallAnswerEventContent) -> AnyMessageLikeEventContent
sourceimpl From<CallCandidatesEventContent> for AnyMessageLikeEventContent
impl From<CallCandidatesEventContent> for AnyMessageLikeEventContent
sourcefn from(c: CallCandidatesEventContent) -> AnyMessageLikeEventContent
fn from(c: CallCandidatesEventContent) -> AnyMessageLikeEventContent
sourceimpl From<CallHangupEventContent> for AnyMessageLikeEventContent
impl From<CallHangupEventContent> for AnyMessageLikeEventContent
sourcefn from(c: CallHangupEventContent) -> AnyMessageLikeEventContent
fn from(c: CallHangupEventContent) -> AnyMessageLikeEventContent
sourceimpl From<CallInviteEventContent> for AnyMessageLikeEventContent
impl From<CallInviteEventContent> for AnyMessageLikeEventContent
sourcefn from(c: CallInviteEventContent) -> AnyMessageLikeEventContent
fn from(c: CallInviteEventContent) -> AnyMessageLikeEventContent
sourceimpl From<CallNegotiateEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc2746
only.
impl From<CallNegotiateEventContent> for AnyMessageLikeEventContent
unstable-msc2746
only.sourcefn from(c: CallNegotiateEventContent) -> AnyMessageLikeEventContent
fn from(c: CallNegotiateEventContent) -> AnyMessageLikeEventContent
sourceimpl From<CallRejectEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc2746
only.
impl From<CallRejectEventContent> for AnyMessageLikeEventContent
unstable-msc2746
only.sourcefn from(c: CallRejectEventContent) -> AnyMessageLikeEventContent
fn from(c: CallRejectEventContent) -> AnyMessageLikeEventContent
sourceimpl From<CallSelectAnswerEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc2746
only.
impl From<CallSelectAnswerEventContent> for AnyMessageLikeEventContent
unstable-msc2746
only.sourcefn from(c: CallSelectAnswerEventContent) -> AnyMessageLikeEventContent
fn from(c: CallSelectAnswerEventContent) -> AnyMessageLikeEventContent
sourceimpl From<EmoteEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc1767
only.
impl From<EmoteEventContent> for AnyMessageLikeEventContent
unstable-msc1767
only.sourcefn from(c: EmoteEventContent) -> AnyMessageLikeEventContent
fn from(c: EmoteEventContent) -> AnyMessageLikeEventContent
sourceimpl From<FileEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3551
only.
impl From<FileEventContent> for AnyMessageLikeEventContent
unstable-msc3551
only.sourcefn from(c: FileEventContent) -> AnyMessageLikeEventContent
fn from(c: FileEventContent) -> AnyMessageLikeEventContent
sourceimpl From<ImageEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3552
only.
impl From<ImageEventContent> for AnyMessageLikeEventContent
unstable-msc3552
only.sourcefn from(c: ImageEventContent) -> AnyMessageLikeEventContent
fn from(c: ImageEventContent) -> AnyMessageLikeEventContent
sourceimpl From<KeyVerificationAcceptEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationAcceptEventContent> for AnyMessageLikeEventContent
sourcefn from(c: KeyVerificationAcceptEventContent) -> AnyMessageLikeEventContent
fn from(c: KeyVerificationAcceptEventContent) -> AnyMessageLikeEventContent
sourceimpl From<KeyVerificationCancelEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationCancelEventContent> for AnyMessageLikeEventContent
sourcefn from(c: KeyVerificationCancelEventContent) -> AnyMessageLikeEventContent
fn from(c: KeyVerificationCancelEventContent) -> AnyMessageLikeEventContent
sourceimpl From<KeyVerificationDoneEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationDoneEventContent> for AnyMessageLikeEventContent
sourcefn from(c: KeyVerificationDoneEventContent) -> AnyMessageLikeEventContent
fn from(c: KeyVerificationDoneEventContent) -> AnyMessageLikeEventContent
sourceimpl From<KeyVerificationKeyEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationKeyEventContent> for AnyMessageLikeEventContent
sourcefn from(c: KeyVerificationKeyEventContent) -> AnyMessageLikeEventContent
fn from(c: KeyVerificationKeyEventContent) -> AnyMessageLikeEventContent
sourceimpl From<KeyVerificationMacEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationMacEventContent> for AnyMessageLikeEventContent
sourcefn from(c: KeyVerificationMacEventContent) -> AnyMessageLikeEventContent
fn from(c: KeyVerificationMacEventContent) -> AnyMessageLikeEventContent
sourceimpl From<KeyVerificationReadyEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationReadyEventContent> for AnyMessageLikeEventContent
sourcefn from(c: KeyVerificationReadyEventContent) -> AnyMessageLikeEventContent
fn from(c: KeyVerificationReadyEventContent) -> AnyMessageLikeEventContent
sourceimpl From<KeyVerificationStartEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationStartEventContent> for AnyMessageLikeEventContent
sourcefn from(c: KeyVerificationStartEventContent) -> AnyMessageLikeEventContent
fn from(c: KeyVerificationStartEventContent) -> AnyMessageLikeEventContent
sourceimpl From<LocationEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3488
only.
impl From<LocationEventContent> for AnyMessageLikeEventContent
unstable-msc3488
only.sourcefn from(c: LocationEventContent) -> AnyMessageLikeEventContent
fn from(c: LocationEventContent) -> AnyMessageLikeEventContent
sourceimpl From<MessageEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc1767
only.
impl From<MessageEventContent> for AnyMessageLikeEventContent
unstable-msc1767
only.sourcefn from(c: MessageEventContent) -> AnyMessageLikeEventContent
fn from(c: MessageEventContent) -> AnyMessageLikeEventContent
sourceimpl From<NoticeEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc1767
only.
impl From<NoticeEventContent> for AnyMessageLikeEventContent
unstable-msc1767
only.sourcefn from(c: NoticeEventContent) -> AnyMessageLikeEventContent
fn from(c: NoticeEventContent) -> AnyMessageLikeEventContent
sourceimpl From<PollEndEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3381
only.
impl From<PollEndEventContent> for AnyMessageLikeEventContent
unstable-msc3381
only.sourcefn from(c: PollEndEventContent) -> AnyMessageLikeEventContent
fn from(c: PollEndEventContent) -> AnyMessageLikeEventContent
sourceimpl From<PollResponseEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3381
only.
impl From<PollResponseEventContent> for AnyMessageLikeEventContent
unstable-msc3381
only.sourcefn from(c: PollResponseEventContent) -> AnyMessageLikeEventContent
fn from(c: PollResponseEventContent) -> AnyMessageLikeEventContent
sourceimpl From<PollStartEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3381
only.
impl From<PollStartEventContent> for AnyMessageLikeEventContent
unstable-msc3381
only.sourcefn from(c: PollStartEventContent) -> AnyMessageLikeEventContent
fn from(c: PollStartEventContent) -> AnyMessageLikeEventContent
sourceimpl From<ReactionEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc2677
only.
impl From<ReactionEventContent> for AnyMessageLikeEventContent
unstable-msc2677
only.sourcefn from(c: ReactionEventContent) -> AnyMessageLikeEventContent
fn from(c: ReactionEventContent) -> AnyMessageLikeEventContent
sourceimpl From<RoomEncryptedEventContent> for AnyMessageLikeEventContent
impl From<RoomEncryptedEventContent> for AnyMessageLikeEventContent
sourcefn from(c: RoomEncryptedEventContent) -> AnyMessageLikeEventContent
fn from(c: RoomEncryptedEventContent) -> AnyMessageLikeEventContent
sourceimpl From<RoomMessageEventContent> for AnyMessageLikeEventContent
impl From<RoomMessageEventContent> for AnyMessageLikeEventContent
sourcefn from(c: RoomMessageEventContent) -> AnyMessageLikeEventContent
fn from(c: RoomMessageEventContent) -> AnyMessageLikeEventContent
sourceimpl From<RoomRedactionEventContent> for AnyMessageLikeEventContent
impl From<RoomRedactionEventContent> for AnyMessageLikeEventContent
sourcefn from(c: RoomRedactionEventContent) -> AnyMessageLikeEventContent
fn from(c: RoomRedactionEventContent) -> AnyMessageLikeEventContent
sourceimpl From<StickerEventContent> for AnyMessageLikeEventContent
impl From<StickerEventContent> for AnyMessageLikeEventContent
sourcefn from(c: StickerEventContent) -> AnyMessageLikeEventContent
fn from(c: StickerEventContent) -> AnyMessageLikeEventContent
sourceimpl From<VideoEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3553
only.
impl From<VideoEventContent> for AnyMessageLikeEventContent
unstable-msc3553
only.sourcefn from(c: VideoEventContent) -> AnyMessageLikeEventContent
fn from(c: VideoEventContent) -> AnyMessageLikeEventContent
sourceimpl From<VoiceEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3245
only.
impl From<VoiceEventContent> for AnyMessageLikeEventContent
unstable-msc3245
only.