pub enum AnyMessageLikeEventContent {
Show 34 variants
Audio(AudioEventContent),
CallAnswer(CallAnswerEventContent),
CallInvite(CallInviteEventContent),
CallHangup(CallHangupEventContent),
CallCandidates(CallCandidatesEventContent),
CallNegotiate(CallNegotiateEventContent),
CallReject(CallRejectEventContent),
CallSelectAnswer(CallSelectAnswerEventContent),
Emote(EmoteEventContent),
Encrypted(EncryptedEventContent),
File(FileEventContent),
Image(ImageEventContent),
KeyVerificationReady(KeyVerificationReadyEventContent),
KeyVerificationStart(KeyVerificationStartEventContent),
KeyVerificationCancel(KeyVerificationCancelEventContent),
KeyVerificationAccept(KeyVerificationAcceptEventContent),
KeyVerificationKey(KeyVerificationKeyEventContent),
KeyVerificationMac(KeyVerificationMacEventContent),
KeyVerificationDone(KeyVerificationDoneEventContent),
Location(LocationEventContent),
Message(MessageEventContent),
PollStart(PollStartEventContent),
UnstablePollStart(UnstablePollStartEventContent),
PollResponse(PollResponseEventContent),
UnstablePollResponse(UnstablePollResponseEventContent),
PollEnd(PollEndEventContent),
UnstablePollEnd(UnstablePollEndEventContent),
Reaction(ReactionEventContent),
RoomEncrypted(RoomEncryptedEventContent),
RoomMessage(RoomMessageEventContent),
RoomRedaction(RoomRedactionEventContent),
Sticker(StickerEventContent),
Video(VideoEventContent),
Voice(VoiceEventContent),
// some variants omitted
}
Expand description
Any message-like event.
Variants§
Audio(AudioEventContent)
m.audio
This variant uses the unstable type org.matrix.msc1767.audio
.
This variant can also be deserialized from the m.audio
type.
CallAnswer(CallAnswerEventContent)
m.call.answer
CallInvite(CallInviteEventContent)
m.call.invite
CallHangup(CallHangupEventContent)
m.call.hangup
CallCandidates(CallCandidatesEventContent)
m.call.candidates
CallNegotiate(CallNegotiateEventContent)
m.call.negotiate
CallReject(CallRejectEventContent)
m.call.reject
CallSelectAnswer(CallSelectAnswerEventContent)
m.call.select_answer
Emote(EmoteEventContent)
m.emote
This variant uses the unstable type org.matrix.msc1767.emote
.
This variant can also be deserialized from the m.emote
type.
Encrypted(EncryptedEventContent)
m.encrypted
This variant uses the unstable type org.matrix.msc1767.encrypted
.
This variant can also be deserialized from the m.encrypted
type.
File(FileEventContent)
m.file
This variant uses the unstable type org.matrix.msc1767.file
.
This variant can also be deserialized from the m.file
type.
Image(ImageEventContent)
m.image
This variant uses the unstable type org.matrix.msc1767.image
.
This variant can also be deserialized from the m.image
type.
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)
m.location
Message(MessageEventContent)
m.message
This variant uses the unstable type org.matrix.msc1767.message
.
This variant can also be deserialized from the m.message
type.
PollStart(PollStartEventContent)
m.poll.start
UnstablePollStart(UnstablePollStartEventContent)
org.matrix.msc3381.poll.start
PollResponse(PollResponseEventContent)
m.poll.response
UnstablePollResponse(UnstablePollResponseEventContent)
org.matrix.msc3381.poll.response
PollEnd(PollEndEventContent)
m.poll.end
UnstablePollEnd(UnstablePollEndEventContent)
org.matrix.msc3381.poll.end
Reaction(ReactionEventContent)
m.reaction
RoomEncrypted(RoomEncryptedEventContent)
m.room.encrypted
RoomMessage(RoomMessageEventContent)
m.room.message
RoomRedaction(RoomRedactionEventContent)
m.room.redaction
Sticker(StickerEventContent)
m.sticker
Video(VideoEventContent)
m.video
This variant uses the unstable type org.matrix.msc1767.video
.
This variant can also be deserialized from the m.video
type.
Voice(VoiceEventContent)
m.voice
This variant uses the unstable type org.matrix.msc3245.voice.v2
.
This variant can also be deserialized from the m.voice
type.
Implementations§
Trait Implementations§
source§impl Clone for AnyMessageLikeEventContent
impl Clone for AnyMessageLikeEventContent
source§fn clone(&self) -> AnyMessageLikeEventContent
fn clone(&self) -> AnyMessageLikeEventContent
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AnyMessageLikeEventContent
impl Debug for AnyMessageLikeEventContent
source§impl EventContent for AnyMessageLikeEventContent
impl EventContent for AnyMessageLikeEventContent
§type EventType = MessageLikeEventType
type EventType = MessageLikeEventType
source§fn event_type(&self) -> Self::EventType
fn event_type(&self) -> Self::EventType
m.room.message
.