#[non_exhaustive]pub enum AnyMessageLikeEventContent {
Show 27 variants
CallAnswer(CallAnswerEventContent),
CallInvite(CallInviteEventContent),
CallHangup(CallHangupEventContent),
CallCandidates(CallCandidatesEventContent),
CallNegotiate(CallNegotiateEventContent),
CallReject(CallRejectEventContent),
CallSelectAnswer(CallSelectAnswerEventContent),
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),
}
Expand description
Any message-like event.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
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
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)
Available on crate feature
unstable-msc3488
only.m.location
Message(MessageEventContent)
Available on crate feature
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)
Available on crate feature
unstable-msc3381
only.m.poll.start
UnstablePollStart(UnstablePollStartEventContent)
Available on crate feature
unstable-msc3381
only.org.matrix.msc3381.poll.start
PollResponse(PollResponseEventContent)
Available on crate feature
unstable-msc3381
only.m.poll.response
UnstablePollResponse(UnstablePollResponseEventContent)
Available on crate feature
unstable-msc3381
only.org.matrix.msc3381.poll.response
PollEnd(PollEndEventContent)
Available on crate feature
unstable-msc3381
only.m.poll.end
UnstablePollEnd(UnstablePollEndEventContent)
Available on crate feature
unstable-msc3381
only.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
Implementations§
Trait Implementations§
source§impl Clone for AnyMessageLikeEventContent
impl Clone for AnyMessageLikeEventContent
source§fn clone(&self) -> AnyMessageLikeEventContent
fn clone(&self) -> AnyMessageLikeEventContent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
The Rust enum for the event kind’s known types.
source§fn event_type(&self) -> <AnyMessageLikeEventContent as EventContent>::EventType
fn event_type(&self) -> <AnyMessageLikeEventContent as EventContent>::EventType
Get the event’s type, like
m.room.message
.source§impl From<CallAnswerEventContent> for AnyMessageLikeEventContent
impl From<CallAnswerEventContent> for AnyMessageLikeEventContent
source§fn from(c: CallAnswerEventContent) -> AnyMessageLikeEventContent
fn from(c: CallAnswerEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
source§impl From<CallCandidatesEventContent> for AnyMessageLikeEventContent
impl From<CallCandidatesEventContent> for AnyMessageLikeEventContent
source§fn from(c: CallCandidatesEventContent) -> AnyMessageLikeEventContent
fn from(c: CallCandidatesEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
source§impl From<CallHangupEventContent> for AnyMessageLikeEventContent
impl From<CallHangupEventContent> for AnyMessageLikeEventContent
source§fn from(c: CallHangupEventContent) -> AnyMessageLikeEventContent
fn from(c: CallHangupEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
source§impl From<CallInviteEventContent> for AnyMessageLikeEventContent
impl From<CallInviteEventContent> for AnyMessageLikeEventContent
source§fn from(c: CallInviteEventContent) -> AnyMessageLikeEventContent
fn from(c: CallInviteEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
source§impl From<CallNegotiateEventContent> for AnyMessageLikeEventContent
impl From<CallNegotiateEventContent> for AnyMessageLikeEventContent
source§fn from(c: CallNegotiateEventContent) -> AnyMessageLikeEventContent
fn from(c: CallNegotiateEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
source§impl From<CallRejectEventContent> for AnyMessageLikeEventContent
impl From<CallRejectEventContent> for AnyMessageLikeEventContent
source§fn from(c: CallRejectEventContent) -> AnyMessageLikeEventContent
fn from(c: CallRejectEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
source§impl From<CallSelectAnswerEventContent> for AnyMessageLikeEventContent
impl From<CallSelectAnswerEventContent> for AnyMessageLikeEventContent
source§fn from(c: CallSelectAnswerEventContent) -> AnyMessageLikeEventContent
fn from(c: CallSelectAnswerEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
source§impl From<KeyVerificationAcceptEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationAcceptEventContent> for AnyMessageLikeEventContent
source§fn from(c: KeyVerificationAcceptEventContent) -> AnyMessageLikeEventContent
fn from(c: KeyVerificationAcceptEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
source§impl From<KeyVerificationCancelEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationCancelEventContent> for AnyMessageLikeEventContent
source§fn from(c: KeyVerificationCancelEventContent) -> AnyMessageLikeEventContent
fn from(c: KeyVerificationCancelEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
source§impl From<KeyVerificationDoneEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationDoneEventContent> for AnyMessageLikeEventContent
source§fn from(c: KeyVerificationDoneEventContent) -> AnyMessageLikeEventContent
fn from(c: KeyVerificationDoneEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
source§impl From<KeyVerificationKeyEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationKeyEventContent> for AnyMessageLikeEventContent
source§fn from(c: KeyVerificationKeyEventContent) -> AnyMessageLikeEventContent
fn from(c: KeyVerificationKeyEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
source§impl From<KeyVerificationMacEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationMacEventContent> for AnyMessageLikeEventContent
source§fn from(c: KeyVerificationMacEventContent) -> AnyMessageLikeEventContent
fn from(c: KeyVerificationMacEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
source§impl From<KeyVerificationReadyEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationReadyEventContent> for AnyMessageLikeEventContent
source§fn from(c: KeyVerificationReadyEventContent) -> AnyMessageLikeEventContent
fn from(c: KeyVerificationReadyEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
source§impl From<KeyVerificationStartEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationStartEventContent> for AnyMessageLikeEventContent
source§fn from(c: KeyVerificationStartEventContent) -> AnyMessageLikeEventContent
fn from(c: KeyVerificationStartEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
source§impl From<LocationEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3488
only.
impl From<LocationEventContent> for AnyMessageLikeEventContent
Available on crate feature
unstable-msc3488
only.source§fn from(c: LocationEventContent) -> AnyMessageLikeEventContent
fn from(c: LocationEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
source§impl From<MessageEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc1767
only.
impl From<MessageEventContent> for AnyMessageLikeEventContent
Available on crate feature
unstable-msc1767
only.source§fn from(c: MessageEventContent) -> AnyMessageLikeEventContent
fn from(c: MessageEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
source§impl From<PollEndEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3381
only.
impl From<PollEndEventContent> for AnyMessageLikeEventContent
Available on crate feature
unstable-msc3381
only.source§fn from(c: PollEndEventContent) -> AnyMessageLikeEventContent
fn from(c: PollEndEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
source§impl From<PollResponseEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3381
only.
impl From<PollResponseEventContent> for AnyMessageLikeEventContent
Available on crate feature
unstable-msc3381
only.source§fn from(c: PollResponseEventContent) -> AnyMessageLikeEventContent
fn from(c: PollResponseEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
source§impl From<PollStartEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3381
only.
impl From<PollStartEventContent> for AnyMessageLikeEventContent
Available on crate feature
unstable-msc3381
only.source§fn from(c: PollStartEventContent) -> AnyMessageLikeEventContent
fn from(c: PollStartEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
source§impl From<ReactionEventContent> for AnyMessageLikeEventContent
impl From<ReactionEventContent> for AnyMessageLikeEventContent
source§fn from(c: ReactionEventContent) -> AnyMessageLikeEventContent
fn from(c: ReactionEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
source§impl From<RoomEncryptedEventContent> for AnyMessageLikeEventContent
impl From<RoomEncryptedEventContent> for AnyMessageLikeEventContent
source§fn from(c: RoomEncryptedEventContent) -> AnyMessageLikeEventContent
fn from(c: RoomEncryptedEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
source§impl From<RoomMessageEventContent> for AnyMessageLikeEventContent
impl From<RoomMessageEventContent> for AnyMessageLikeEventContent
source§fn from(c: RoomMessageEventContent) -> AnyMessageLikeEventContent
fn from(c: RoomMessageEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
source§impl From<RoomRedactionEventContent> for AnyMessageLikeEventContent
impl From<RoomRedactionEventContent> for AnyMessageLikeEventContent
source§fn from(c: RoomRedactionEventContent) -> AnyMessageLikeEventContent
fn from(c: RoomRedactionEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
source§impl From<StickerEventContent> for AnyMessageLikeEventContent
impl From<StickerEventContent> for AnyMessageLikeEventContent
source§fn from(c: StickerEventContent) -> AnyMessageLikeEventContent
fn from(c: StickerEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
source§impl From<UnstablePollEndEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3381
only.
impl From<UnstablePollEndEventContent> for AnyMessageLikeEventContent
Available on crate feature
unstable-msc3381
only.source§fn from(c: UnstablePollEndEventContent) -> AnyMessageLikeEventContent
fn from(c: UnstablePollEndEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
source§impl From<UnstablePollResponseEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3381
only.
impl From<UnstablePollResponseEventContent> for AnyMessageLikeEventContent
Available on crate feature
unstable-msc3381
only.source§fn from(c: UnstablePollResponseEventContent) -> AnyMessageLikeEventContent
fn from(c: UnstablePollResponseEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
source§impl From<UnstablePollStartEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3381
only.
impl From<UnstablePollStartEventContent> for AnyMessageLikeEventContent
Available on crate feature
unstable-msc3381
only.source§fn from(c: UnstablePollStartEventContent) -> AnyMessageLikeEventContent
fn from(c: UnstablePollStartEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
source§impl Serialize for AnyMessageLikeEventContent
impl Serialize for AnyMessageLikeEventContent
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
Mutably borrows from an owned value. Read more
§impl<T> CompatExt for T
impl<T> CompatExt for T
source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more