pub enum AnyMessageLikeEventContent {
Show 26 variants
Audio(AudioEventContent),
CallAnswer(CallAnswerEventContent),
CallInvite(CallInviteEventContent),
CallHangup(CallHangupEventContent),
CallCandidates(CallCandidatesEventContent),
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),
Reaction(ReactionEventContent),
RoomEncrypted(RoomEncryptedEventContent),
RoomMessage(RoomMessageEventContent),
RoomMessageFeedback(RoomMessageFeedbackEventContent),
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
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
Reaction(ReactionEventContent)
unstable-msc2677 only.m.reaction
RoomEncrypted(RoomEncryptedEventContent)
m.room.encrypted
RoomMessage(RoomMessageEventContent)
m.room.message
RoomMessageFeedback(RoomMessageFeedbackEventContent)
m.room.message.feedback
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
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for AnyMessageLikeEventContent
impl Debug for AnyMessageLikeEventContent
sourceimpl EventContent for AnyMessageLikeEventContent
impl EventContent for AnyMessageLikeEventContent
type EventType = MessageLikeEventType
type EventType = MessageLikeEventType
events only.The Rust enum for the event kind’s known types.
sourcefn event_type(&self) -> Self::EventType
fn event_type(&self) -> Self::EventType
events only.Get the event’s type, like 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) -> Self
fn from(c: AudioEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<CallAnswerEventContent> for AnyMessageLikeEventContent
impl From<CallAnswerEventContent> for AnyMessageLikeEventContent
sourcefn from(c: CallAnswerEventContent) -> Self
fn from(c: CallAnswerEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<CallCandidatesEventContent> for AnyMessageLikeEventContent
impl From<CallCandidatesEventContent> for AnyMessageLikeEventContent
sourcefn from(c: CallCandidatesEventContent) -> Self
fn from(c: CallCandidatesEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<CallHangupEventContent> for AnyMessageLikeEventContent
impl From<CallHangupEventContent> for AnyMessageLikeEventContent
sourcefn from(c: CallHangupEventContent) -> Self
fn from(c: CallHangupEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<CallInviteEventContent> for AnyMessageLikeEventContent
impl From<CallInviteEventContent> for AnyMessageLikeEventContent
sourcefn from(c: CallInviteEventContent) -> Self
fn from(c: CallInviteEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<EmoteEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc1767 only.
impl From<EmoteEventContent> for AnyMessageLikeEventContent
unstable-msc1767 only.sourcefn from(c: EmoteEventContent) -> Self
fn from(c: EmoteEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<FileEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3551 only.
impl From<FileEventContent> for AnyMessageLikeEventContent
unstable-msc3551 only.sourcefn from(c: FileEventContent) -> Self
fn from(c: FileEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<ImageEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3552 only.
impl From<ImageEventContent> for AnyMessageLikeEventContent
unstable-msc3552 only.sourcefn from(c: ImageEventContent) -> Self
fn from(c: ImageEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<KeyVerificationAcceptEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationAcceptEventContent> for AnyMessageLikeEventContent
sourcefn from(c: KeyVerificationAcceptEventContent) -> Self
fn from(c: KeyVerificationAcceptEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<KeyVerificationCancelEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationCancelEventContent> for AnyMessageLikeEventContent
sourcefn from(c: KeyVerificationCancelEventContent) -> Self
fn from(c: KeyVerificationCancelEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<KeyVerificationDoneEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationDoneEventContent> for AnyMessageLikeEventContent
sourcefn from(c: KeyVerificationDoneEventContent) -> Self
fn from(c: KeyVerificationDoneEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<KeyVerificationKeyEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationKeyEventContent> for AnyMessageLikeEventContent
sourcefn from(c: KeyVerificationKeyEventContent) -> Self
fn from(c: KeyVerificationKeyEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<KeyVerificationMacEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationMacEventContent> for AnyMessageLikeEventContent
sourcefn from(c: KeyVerificationMacEventContent) -> Self
fn from(c: KeyVerificationMacEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<KeyVerificationReadyEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationReadyEventContent> for AnyMessageLikeEventContent
sourcefn from(c: KeyVerificationReadyEventContent) -> Self
fn from(c: KeyVerificationReadyEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<KeyVerificationStartEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationStartEventContent> for AnyMessageLikeEventContent
sourcefn from(c: KeyVerificationStartEventContent) -> Self
fn from(c: KeyVerificationStartEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<LocationEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3488 only.
impl From<LocationEventContent> for AnyMessageLikeEventContent
unstable-msc3488 only.sourcefn from(c: LocationEventContent) -> Self
fn from(c: LocationEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<MessageEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc1767 only.
impl From<MessageEventContent> for AnyMessageLikeEventContent
unstable-msc1767 only.sourcefn from(c: MessageEventContent) -> Self
fn from(c: MessageEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<NoticeEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc1767 only.
impl From<NoticeEventContent> for AnyMessageLikeEventContent
unstable-msc1767 only.sourcefn from(c: NoticeEventContent) -> Self
fn from(c: NoticeEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<ReactionEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc2677 only.
impl From<ReactionEventContent> for AnyMessageLikeEventContent
unstable-msc2677 only.sourcefn from(c: ReactionEventContent) -> Self
fn from(c: ReactionEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<RoomEncryptedEventContent> for AnyMessageLikeEventContent
impl From<RoomEncryptedEventContent> for AnyMessageLikeEventContent
sourcefn from(c: RoomEncryptedEventContent) -> Self
fn from(c: RoomEncryptedEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<RoomMessageEventContent> for AnyMessageLikeEventContent
impl From<RoomMessageEventContent> for AnyMessageLikeEventContent
sourcefn from(c: RoomMessageEventContent) -> Self
fn from(c: RoomMessageEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<RoomMessageFeedbackEventContent> for AnyMessageLikeEventContent
impl From<RoomMessageFeedbackEventContent> for AnyMessageLikeEventContent
sourcefn from(c: RoomMessageFeedbackEventContent) -> Self
fn from(c: RoomMessageFeedbackEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<RoomRedactionEventContent> for AnyMessageLikeEventContent
impl From<RoomRedactionEventContent> for AnyMessageLikeEventContent
sourcefn from(c: RoomRedactionEventContent) -> Self
fn from(c: RoomRedactionEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<StickerEventContent> for AnyMessageLikeEventContent
impl From<StickerEventContent> for AnyMessageLikeEventContent
sourcefn from(c: StickerEventContent) -> Self
fn from(c: StickerEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<VideoEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3553 only.
impl From<VideoEventContent> for AnyMessageLikeEventContent
unstable-msc3553 only.sourcefn from(c: VideoEventContent) -> Self
fn from(c: VideoEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<VoiceEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3245 only.
impl From<VoiceEventContent> for AnyMessageLikeEventContent
unstable-msc3245 only.sourcefn from(c: VoiceEventContent) -> Self
fn from(c: VoiceEventContent) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for AnyMessageLikeEventContent
impl Send for AnyMessageLikeEventContent
impl Sync for AnyMessageLikeEventContent
impl Unpin for AnyMessageLikeEventContent
impl UnwindSafe for AnyMessageLikeEventContent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
