pub enum AnyMessageLikeEventContent {
Show 37 variants
Audio(AudioEventContent),
CallAnswer(CallAnswerEventContent),
CallInvite(CallInviteEventContent),
CallHangup(CallHangupEventContent),
CallCandidates(CallCandidatesEventContent),
CallNegotiate(CallNegotiateEventContent),
CallReject(CallRejectEventContent),
CallSdpStreamMetadataChanged(CallSdpStreamMetadataChangedEventContent),
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),
Beacon(BeaconEventContent),
Reaction(ReactionEventContent),
RoomEncrypted(RoomEncryptedEventContent),
RoomMessage(RoomMessageEventContent),
RoomRedaction(RoomRedactionEventContent),
Sticker(StickerEventContent),
Video(VideoEventContent),
Voice(VoiceEventContent),
CallNotify(CallNotifyEventContent),
// 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
CallSdpStreamMetadataChanged(CallSdpStreamMetadataChangedEventContent)
m.call.sdp_stream_metadata_changed
This variant can also be deserialized from the org.matrix.call.sdp_stream_metadata_changed
type.
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
Beacon(BeaconEventContent)
m.beacon
This variant uses the unstable type org.matrix.msc3672.beacon
.
This variant can also be deserialized from the m.beacon
type.
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.
CallNotify(CallNotifyEventContent)
m.call.notify
This variant uses the unstable type org.matrix.msc4075.call.notify
.
This variant can also be deserialized from the m.call.notify
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
source§type EventType = MessageLikeEventType
type EventType = MessageLikeEventType
source§fn event_type(&self) -> Self::EventType
fn event_type(&self) -> Self::EventType
m.room.message
.source§impl From<AudioEventContent> for AnyMessageLikeEventContent
impl From<AudioEventContent> for AnyMessageLikeEventContent
source§fn from(c: AudioEventContent) -> Self
fn from(c: AudioEventContent) -> Self
source§impl From<BeaconEventContent> for AnyMessageLikeEventContent
impl From<BeaconEventContent> for AnyMessageLikeEventContent
source§fn from(c: BeaconEventContent) -> Self
fn from(c: BeaconEventContent) -> Self
source§impl From<CallAnswerEventContent> for AnyMessageLikeEventContent
impl From<CallAnswerEventContent> for AnyMessageLikeEventContent
source§fn from(c: CallAnswerEventContent) -> Self
fn from(c: CallAnswerEventContent) -> Self
source§impl From<CallCandidatesEventContent> for AnyMessageLikeEventContent
impl From<CallCandidatesEventContent> for AnyMessageLikeEventContent
source§fn from(c: CallCandidatesEventContent) -> Self
fn from(c: CallCandidatesEventContent) -> Self
source§impl From<CallHangupEventContent> for AnyMessageLikeEventContent
impl From<CallHangupEventContent> for AnyMessageLikeEventContent
source§fn from(c: CallHangupEventContent) -> Self
fn from(c: CallHangupEventContent) -> Self
source§impl From<CallInviteEventContent> for AnyMessageLikeEventContent
impl From<CallInviteEventContent> for AnyMessageLikeEventContent
source§fn from(c: CallInviteEventContent) -> Self
fn from(c: CallInviteEventContent) -> Self
source§impl From<CallNegotiateEventContent> for AnyMessageLikeEventContent
impl From<CallNegotiateEventContent> for AnyMessageLikeEventContent
source§fn from(c: CallNegotiateEventContent) -> Self
fn from(c: CallNegotiateEventContent) -> Self
source§impl From<CallNotifyEventContent> for AnyMessageLikeEventContent
impl From<CallNotifyEventContent> for AnyMessageLikeEventContent
source§fn from(c: CallNotifyEventContent) -> Self
fn from(c: CallNotifyEventContent) -> Self
source§impl From<CallRejectEventContent> for AnyMessageLikeEventContent
impl From<CallRejectEventContent> for AnyMessageLikeEventContent
source§fn from(c: CallRejectEventContent) -> Self
fn from(c: CallRejectEventContent) -> Self
source§impl From<CallSdpStreamMetadataChangedEventContent> for AnyMessageLikeEventContent
impl From<CallSdpStreamMetadataChangedEventContent> for AnyMessageLikeEventContent
source§fn from(c: CallSdpStreamMetadataChangedEventContent) -> Self
fn from(c: CallSdpStreamMetadataChangedEventContent) -> Self
source§impl From<CallSelectAnswerEventContent> for AnyMessageLikeEventContent
impl From<CallSelectAnswerEventContent> for AnyMessageLikeEventContent
source§fn from(c: CallSelectAnswerEventContent) -> Self
fn from(c: CallSelectAnswerEventContent) -> Self
source§impl From<EmoteEventContent> for AnyMessageLikeEventContent
impl From<EmoteEventContent> for AnyMessageLikeEventContent
source§fn from(c: EmoteEventContent) -> Self
fn from(c: EmoteEventContent) -> Self
source§impl From<EncryptedEventContent> for AnyMessageLikeEventContent
impl From<EncryptedEventContent> for AnyMessageLikeEventContent
source§fn from(c: EncryptedEventContent) -> Self
fn from(c: EncryptedEventContent) -> Self
source§impl From<FileEventContent> for AnyMessageLikeEventContent
impl From<FileEventContent> for AnyMessageLikeEventContent
source§fn from(c: FileEventContent) -> Self
fn from(c: FileEventContent) -> Self
source§impl From<ImageEventContent> for AnyMessageLikeEventContent
impl From<ImageEventContent> for AnyMessageLikeEventContent
source§fn from(c: ImageEventContent) -> Self
fn from(c: ImageEventContent) -> Self
source§impl From<KeyVerificationAcceptEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationAcceptEventContent> for AnyMessageLikeEventContent
source§fn from(c: KeyVerificationAcceptEventContent) -> Self
fn from(c: KeyVerificationAcceptEventContent) -> Self
source§impl From<KeyVerificationCancelEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationCancelEventContent> for AnyMessageLikeEventContent
source§fn from(c: KeyVerificationCancelEventContent) -> Self
fn from(c: KeyVerificationCancelEventContent) -> Self
source§impl From<KeyVerificationDoneEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationDoneEventContent> for AnyMessageLikeEventContent
source§fn from(c: KeyVerificationDoneEventContent) -> Self
fn from(c: KeyVerificationDoneEventContent) -> Self
source§impl From<KeyVerificationKeyEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationKeyEventContent> for AnyMessageLikeEventContent
source§fn from(c: KeyVerificationKeyEventContent) -> Self
fn from(c: KeyVerificationKeyEventContent) -> Self
source§impl From<KeyVerificationMacEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationMacEventContent> for AnyMessageLikeEventContent
source§fn from(c: KeyVerificationMacEventContent) -> Self
fn from(c: KeyVerificationMacEventContent) -> Self
source§impl From<KeyVerificationReadyEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationReadyEventContent> for AnyMessageLikeEventContent
source§fn from(c: KeyVerificationReadyEventContent) -> Self
fn from(c: KeyVerificationReadyEventContent) -> Self
source§impl From<KeyVerificationStartEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationStartEventContent> for AnyMessageLikeEventContent
source§fn from(c: KeyVerificationStartEventContent) -> Self
fn from(c: KeyVerificationStartEventContent) -> Self
source§impl From<LocationEventContent> for AnyMessageLikeEventContent
impl From<LocationEventContent> for AnyMessageLikeEventContent
source§fn from(c: LocationEventContent) -> Self
fn from(c: LocationEventContent) -> Self
source§impl From<MessageEventContent> for AnyMessageLikeEventContent
impl From<MessageEventContent> for AnyMessageLikeEventContent
source§fn from(c: MessageEventContent) -> Self
fn from(c: MessageEventContent) -> Self
source§impl From<PollEndEventContent> for AnyMessageLikeEventContent
impl From<PollEndEventContent> for AnyMessageLikeEventContent
source§fn from(c: PollEndEventContent) -> Self
fn from(c: PollEndEventContent) -> Self
source§impl From<PollResponseEventContent> for AnyMessageLikeEventContent
impl From<PollResponseEventContent> for AnyMessageLikeEventContent
source§fn from(c: PollResponseEventContent) -> Self
fn from(c: PollResponseEventContent) -> Self
source§impl From<PollStartEventContent> for AnyMessageLikeEventContent
impl From<PollStartEventContent> for AnyMessageLikeEventContent
source§fn from(c: PollStartEventContent) -> Self
fn from(c: PollStartEventContent) -> Self
source§impl From<ReactionEventContent> for AnyMessageLikeEventContent
impl From<ReactionEventContent> for AnyMessageLikeEventContent
source§fn from(c: ReactionEventContent) -> Self
fn from(c: ReactionEventContent) -> Self
source§impl From<RoomEncryptedEventContent> for AnyMessageLikeEventContent
impl From<RoomEncryptedEventContent> for AnyMessageLikeEventContent
source§fn from(c: RoomEncryptedEventContent) -> Self
fn from(c: RoomEncryptedEventContent) -> Self
source§impl From<RoomMessageEventContent> for AnyMessageLikeEventContent
impl From<RoomMessageEventContent> for AnyMessageLikeEventContent
source§fn from(c: RoomMessageEventContent) -> Self
fn from(c: RoomMessageEventContent) -> Self
source§impl From<RoomRedactionEventContent> for AnyMessageLikeEventContent
impl From<RoomRedactionEventContent> for AnyMessageLikeEventContent
source§fn from(c: RoomRedactionEventContent) -> Self
fn from(c: RoomRedactionEventContent) -> Self
source§impl From<StickerEventContent> for AnyMessageLikeEventContent
impl From<StickerEventContent> for AnyMessageLikeEventContent
source§fn from(c: StickerEventContent) -> Self
fn from(c: StickerEventContent) -> Self
source§impl From<UnstablePollEndEventContent> for AnyMessageLikeEventContent
impl From<UnstablePollEndEventContent> for AnyMessageLikeEventContent
source§fn from(c: UnstablePollEndEventContent) -> Self
fn from(c: UnstablePollEndEventContent) -> Self
source§impl From<UnstablePollResponseEventContent> for AnyMessageLikeEventContent
impl From<UnstablePollResponseEventContent> for AnyMessageLikeEventContent
source§fn from(c: UnstablePollResponseEventContent) -> Self
fn from(c: UnstablePollResponseEventContent) -> Self
source§impl From<UnstablePollStartEventContent> for AnyMessageLikeEventContent
impl From<UnstablePollStartEventContent> for AnyMessageLikeEventContent
source§fn from(c: UnstablePollStartEventContent) -> Self
fn from(c: UnstablePollStartEventContent) -> Self
source§impl From<VideoEventContent> for AnyMessageLikeEventContent
impl From<VideoEventContent> for AnyMessageLikeEventContent
source§fn from(c: VideoEventContent) -> Self
fn from(c: VideoEventContent) -> Self
source§impl From<VoiceEventContent> for AnyMessageLikeEventContent
impl From<VoiceEventContent> for AnyMessageLikeEventContent
source§fn from(c: VoiceEventContent) -> Self
fn from(c: VoiceEventContent) -> Self
impl MessageLikeEventContent for AnyMessageLikeEventContent
Auto Trait Implementations§
impl Freeze for AnyMessageLikeEventContent
impl RefUnwindSafe for AnyMessageLikeEventContent
impl Send for AnyMessageLikeEventContent
impl Sync for AnyMessageLikeEventContent
impl Unpin for AnyMessageLikeEventContent
impl UnwindSafe for AnyMessageLikeEventContent
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)