#[non_exhaustive]
pub enum AnyMessageLikeEventContent {
Show 17 variants
CallAnswer(CallAnswerEventContent),
CallInvite(CallInviteEventContent),
CallHangup(CallHangupEventContent),
CallCandidates(CallCandidatesEventContent),
KeyVerificationReady(KeyVerificationReadyEventContent),
KeyVerificationStart(KeyVerificationStartEventContent),
KeyVerificationCancel(KeyVerificationCancelEventContent),
KeyVerificationAccept(KeyVerificationAcceptEventContent),
KeyVerificationKey(KeyVerificationKeyEventContent),
KeyVerificationMac(KeyVerificationMacEventContent),
KeyVerificationDone(KeyVerificationDoneEventContent),
Reaction(ReactionEventContent),
RoomEncrypted(RoomEncryptedEventContent),
RoomMessage(RoomMessageEventContent),
RoomMessageFeedback(RoomMessageFeedbackEventContent),
RoomRedaction(RoomRedactionEventContent),
Sticker(StickerEventContent),
// some variants omitted
}
Expand description
Any message-like event.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
CallAnswer(CallAnswerEventContent)
m.call.answer
CallInvite(CallInviteEventContent)
m.call.invite
CallHangup(CallHangupEventContent)
m.call.hangup
CallCandidates(CallCandidatesEventContent)
m.call.candidates
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
Reaction(ReactionEventContent)
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
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
The Rust enum for the event kind’s known types.
sourcefn event_type(&self) -> Self::EventType
fn event_type(&self) -> Self::EventType
Get the event’s type, like m.room.message
.
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<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<ReactionEventContent> for AnyMessageLikeEventContent
impl From<ReactionEventContent> for AnyMessageLikeEventContent
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.
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> 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