#[non_exhaustive]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),
}
events
only.Expand description
Any message-like event.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Audio(AudioEventContent)
unstable-msc3927
only.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)
unstable-msc3954
only.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)
unstable-msc3956
only.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)
unstable-msc3551
only.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)
unstable-msc3552
only.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)
unstable-msc3488
only.m.location
Message(MessageEventContent)
unstable-msc1767
only.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)
unstable-msc3381
only.m.poll.start
UnstablePollStart(UnstablePollStartEventContent)
unstable-msc3381
only.org.matrix.msc3381.poll.start
PollResponse(PollResponseEventContent)
unstable-msc3381
only.m.poll.response
UnstablePollResponse(UnstablePollResponseEventContent)
unstable-msc3381
only.org.matrix.msc3381.poll.response
PollEnd(PollEndEventContent)
unstable-msc3381
only.m.poll.end
UnstablePollEnd(UnstablePollEndEventContent)
unstable-msc3381
only.org.matrix.msc3381.poll.end
Beacon(BeaconEventContent)
unstable-msc3489
only.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)
unstable-msc3553
only.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)
unstable-msc3245
only.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)
unstable-msc4075
only.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) -> <AnyMessageLikeEventContent as EventContent>::EventType
fn event_type(&self) -> <AnyMessageLikeEventContent as EventContent>::EventType
m.room.message
.Source§impl EventContentFromType for AnyMessageLikeEventContent
impl EventContentFromType for AnyMessageLikeEventContent
Source§fn from_parts(
event_type: &str,
json: &RawValue,
) -> Result<AnyMessageLikeEventContent, Error>
fn from_parts( event_type: &str, json: &RawValue, ) -> Result<AnyMessageLikeEventContent, Error>
Source§impl From<AudioEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3927
only.
impl From<AudioEventContent> for AnyMessageLikeEventContent
unstable-msc3927
only.Source§fn from(c: AudioEventContent) -> AnyMessageLikeEventContent
fn from(c: AudioEventContent) -> AnyMessageLikeEventContent
Source§impl From<BeaconEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3489
only.
impl From<BeaconEventContent> for AnyMessageLikeEventContent
unstable-msc3489
only.Source§fn from(c: BeaconEventContent) -> AnyMessageLikeEventContent
fn from(c: BeaconEventContent) -> AnyMessageLikeEventContent
Source§impl From<CallAnswerEventContent> for AnyMessageLikeEventContent
impl From<CallAnswerEventContent> for AnyMessageLikeEventContent
Source§fn from(c: CallAnswerEventContent) -> AnyMessageLikeEventContent
fn from(c: CallAnswerEventContent) -> AnyMessageLikeEventContent
Source§impl From<CallCandidatesEventContent> for AnyMessageLikeEventContent
impl From<CallCandidatesEventContent> for AnyMessageLikeEventContent
Source§fn from(c: CallCandidatesEventContent) -> AnyMessageLikeEventContent
fn from(c: CallCandidatesEventContent) -> AnyMessageLikeEventContent
Source§impl From<CallHangupEventContent> for AnyMessageLikeEventContent
impl From<CallHangupEventContent> for AnyMessageLikeEventContent
Source§fn from(c: CallHangupEventContent) -> AnyMessageLikeEventContent
fn from(c: CallHangupEventContent) -> AnyMessageLikeEventContent
Source§impl From<CallInviteEventContent> for AnyMessageLikeEventContent
impl From<CallInviteEventContent> for AnyMessageLikeEventContent
Source§fn from(c: CallInviteEventContent) -> AnyMessageLikeEventContent
fn from(c: CallInviteEventContent) -> AnyMessageLikeEventContent
Source§impl From<CallNegotiateEventContent> for AnyMessageLikeEventContent
impl From<CallNegotiateEventContent> for AnyMessageLikeEventContent
Source§fn from(c: CallNegotiateEventContent) -> AnyMessageLikeEventContent
fn from(c: CallNegotiateEventContent) -> AnyMessageLikeEventContent
Source§impl From<CallNotifyEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc4075
only.
impl From<CallNotifyEventContent> for AnyMessageLikeEventContent
unstable-msc4075
only.Source§fn from(c: CallNotifyEventContent) -> AnyMessageLikeEventContent
fn from(c: CallNotifyEventContent) -> AnyMessageLikeEventContent
Source§impl From<CallRejectEventContent> for AnyMessageLikeEventContent
impl From<CallRejectEventContent> for AnyMessageLikeEventContent
Source§fn from(c: CallRejectEventContent) -> AnyMessageLikeEventContent
fn from(c: CallRejectEventContent) -> AnyMessageLikeEventContent
Source§impl From<CallSdpStreamMetadataChangedEventContent> for AnyMessageLikeEventContent
impl From<CallSdpStreamMetadataChangedEventContent> for AnyMessageLikeEventContent
Source§fn from(
c: CallSdpStreamMetadataChangedEventContent,
) -> AnyMessageLikeEventContent
fn from( c: CallSdpStreamMetadataChangedEventContent, ) -> AnyMessageLikeEventContent
Source§impl From<CallSelectAnswerEventContent> for AnyMessageLikeEventContent
impl From<CallSelectAnswerEventContent> for AnyMessageLikeEventContent
Source§fn from(c: CallSelectAnswerEventContent) -> AnyMessageLikeEventContent
fn from(c: CallSelectAnswerEventContent) -> AnyMessageLikeEventContent
Source§impl From<EmoteEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3954
only.
impl From<EmoteEventContent> for AnyMessageLikeEventContent
unstable-msc3954
only.Source§fn from(c: EmoteEventContent) -> AnyMessageLikeEventContent
fn from(c: EmoteEventContent) -> AnyMessageLikeEventContent
Source§impl From<EncryptedEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3956
only.
impl From<EncryptedEventContent> for AnyMessageLikeEventContent
unstable-msc3956
only.Source§fn from(c: EncryptedEventContent) -> AnyMessageLikeEventContent
fn from(c: EncryptedEventContent) -> AnyMessageLikeEventContent
Source§impl From<FileEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3551
only.
impl From<FileEventContent> for AnyMessageLikeEventContent
unstable-msc3551
only.Source§fn from(c: FileEventContent) -> AnyMessageLikeEventContent
fn from(c: FileEventContent) -> AnyMessageLikeEventContent
Source§impl From<ImageEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3552
only.
impl From<ImageEventContent> for AnyMessageLikeEventContent
unstable-msc3552
only.Source§fn from(c: ImageEventContent) -> AnyMessageLikeEventContent
fn from(c: ImageEventContent) -> AnyMessageLikeEventContent
Source§impl From<KeyVerificationAcceptEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationAcceptEventContent> for AnyMessageLikeEventContent
Source§fn from(c: KeyVerificationAcceptEventContent) -> AnyMessageLikeEventContent
fn from(c: KeyVerificationAcceptEventContent) -> AnyMessageLikeEventContent
Source§impl From<KeyVerificationCancelEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationCancelEventContent> for AnyMessageLikeEventContent
Source§fn from(c: KeyVerificationCancelEventContent) -> AnyMessageLikeEventContent
fn from(c: KeyVerificationCancelEventContent) -> AnyMessageLikeEventContent
Source§impl From<KeyVerificationDoneEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationDoneEventContent> for AnyMessageLikeEventContent
Source§fn from(c: KeyVerificationDoneEventContent) -> AnyMessageLikeEventContent
fn from(c: KeyVerificationDoneEventContent) -> AnyMessageLikeEventContent
Source§impl From<KeyVerificationKeyEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationKeyEventContent> for AnyMessageLikeEventContent
Source§fn from(c: KeyVerificationKeyEventContent) -> AnyMessageLikeEventContent
fn from(c: KeyVerificationKeyEventContent) -> AnyMessageLikeEventContent
Source§impl From<KeyVerificationMacEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationMacEventContent> for AnyMessageLikeEventContent
Source§fn from(c: KeyVerificationMacEventContent) -> AnyMessageLikeEventContent
fn from(c: KeyVerificationMacEventContent) -> AnyMessageLikeEventContent
Source§impl From<KeyVerificationReadyEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationReadyEventContent> for AnyMessageLikeEventContent
Source§fn from(c: KeyVerificationReadyEventContent) -> AnyMessageLikeEventContent
fn from(c: KeyVerificationReadyEventContent) -> AnyMessageLikeEventContent
Source§impl From<KeyVerificationStartEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationStartEventContent> for AnyMessageLikeEventContent
Source§fn from(c: KeyVerificationStartEventContent) -> AnyMessageLikeEventContent
fn from(c: KeyVerificationStartEventContent) -> AnyMessageLikeEventContent
Source§impl From<LocationEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3488
only.
impl From<LocationEventContent> for AnyMessageLikeEventContent
unstable-msc3488
only.Source§fn from(c: LocationEventContent) -> AnyMessageLikeEventContent
fn from(c: LocationEventContent) -> AnyMessageLikeEventContent
Source§impl From<MessageEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc1767
only.
impl From<MessageEventContent> for AnyMessageLikeEventContent
unstable-msc1767
only.Source§fn from(c: MessageEventContent) -> AnyMessageLikeEventContent
fn from(c: MessageEventContent) -> AnyMessageLikeEventContent
Source§impl From<PollEndEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3381
only.
impl From<PollEndEventContent> for AnyMessageLikeEventContent
unstable-msc3381
only.Source§fn from(c: PollEndEventContent) -> AnyMessageLikeEventContent
fn from(c: PollEndEventContent) -> AnyMessageLikeEventContent
Source§impl From<PollResponseEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3381
only.
impl From<PollResponseEventContent> for AnyMessageLikeEventContent
unstable-msc3381
only.Source§fn from(c: PollResponseEventContent) -> AnyMessageLikeEventContent
fn from(c: PollResponseEventContent) -> AnyMessageLikeEventContent
Source§impl From<PollStartEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3381
only.
impl From<PollStartEventContent> for AnyMessageLikeEventContent
unstable-msc3381
only.Source§fn from(c: PollStartEventContent) -> AnyMessageLikeEventContent
fn from(c: PollStartEventContent) -> AnyMessageLikeEventContent
Source§impl From<ReactionEventContent> for AnyMessageLikeEventContent
impl From<ReactionEventContent> for AnyMessageLikeEventContent
Source§fn from(c: ReactionEventContent) -> AnyMessageLikeEventContent
fn from(c: ReactionEventContent) -> AnyMessageLikeEventContent
Source§impl From<RoomEncryptedEventContent> for AnyMessageLikeEventContent
impl From<RoomEncryptedEventContent> for AnyMessageLikeEventContent
Source§fn from(c: RoomEncryptedEventContent) -> AnyMessageLikeEventContent
fn from(c: RoomEncryptedEventContent) -> AnyMessageLikeEventContent
Source§impl From<RoomMessageEventContent> for AnyMessageLikeEventContent
impl From<RoomMessageEventContent> for AnyMessageLikeEventContent
Source§fn from(c: RoomMessageEventContent) -> AnyMessageLikeEventContent
fn from(c: RoomMessageEventContent) -> AnyMessageLikeEventContent
Source§impl From<RoomRedactionEventContent> for AnyMessageLikeEventContent
impl From<RoomRedactionEventContent> for AnyMessageLikeEventContent
Source§fn from(c: RoomRedactionEventContent) -> AnyMessageLikeEventContent
fn from(c: RoomRedactionEventContent) -> AnyMessageLikeEventContent
Source§impl From<StickerEventContent> for AnyMessageLikeEventContent
impl From<StickerEventContent> for AnyMessageLikeEventContent
Source§fn from(c: StickerEventContent) -> AnyMessageLikeEventContent
fn from(c: StickerEventContent) -> AnyMessageLikeEventContent
Source§impl From<UnstablePollEndEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3381
only.
impl From<UnstablePollEndEventContent> for AnyMessageLikeEventContent
unstable-msc3381
only.Source§fn from(c: UnstablePollEndEventContent) -> AnyMessageLikeEventContent
fn from(c: UnstablePollEndEventContent) -> AnyMessageLikeEventContent
Source§impl From<UnstablePollResponseEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3381
only.
impl From<UnstablePollResponseEventContent> for AnyMessageLikeEventContent
unstable-msc3381
only.Source§fn from(c: UnstablePollResponseEventContent) -> AnyMessageLikeEventContent
fn from(c: UnstablePollResponseEventContent) -> AnyMessageLikeEventContent
Source§impl From<UnstablePollStartEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3381
only.
impl From<UnstablePollStartEventContent> for AnyMessageLikeEventContent
unstable-msc3381
only.Source§fn from(c: UnstablePollStartEventContent) -> AnyMessageLikeEventContent
fn from(c: UnstablePollStartEventContent) -> AnyMessageLikeEventContent
Source§impl From<VideoEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3553
only.
impl From<VideoEventContent> for AnyMessageLikeEventContent
unstable-msc3553
only.Source§fn from(c: VideoEventContent) -> AnyMessageLikeEventContent
fn from(c: VideoEventContent) -> AnyMessageLikeEventContent
Source§impl From<VoiceEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3245
only.
impl From<VoiceEventContent> for AnyMessageLikeEventContent
unstable-msc3245
only.