#[non_exhaustive]pub enum AnyMessageLikeEventContent {
Show 26 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),
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
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§
§impl Clone for AnyMessageLikeEventContent
impl Clone for AnyMessageLikeEventContent
§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 more§impl Debug for AnyMessageLikeEventContent
impl Debug for AnyMessageLikeEventContent
§impl EventContent for AnyMessageLikeEventContent
impl EventContent for AnyMessageLikeEventContent
§type EventType = MessageLikeEventType
type EventType = MessageLikeEventType
The Rust enum for the event kind’s known types.
§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
.§impl From<CallAnswerEventContent> for AnyMessageLikeEventContent
impl From<CallAnswerEventContent> for AnyMessageLikeEventContent
§fn from(c: CallAnswerEventContent) -> AnyMessageLikeEventContent
fn from(c: CallAnswerEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
§impl From<CallCandidatesEventContent> for AnyMessageLikeEventContent
impl From<CallCandidatesEventContent> for AnyMessageLikeEventContent
§fn from(c: CallCandidatesEventContent) -> AnyMessageLikeEventContent
fn from(c: CallCandidatesEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
§impl From<CallHangupEventContent> for AnyMessageLikeEventContent
impl From<CallHangupEventContent> for AnyMessageLikeEventContent
§fn from(c: CallHangupEventContent) -> AnyMessageLikeEventContent
fn from(c: CallHangupEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
§impl From<CallInviteEventContent> for AnyMessageLikeEventContent
impl From<CallInviteEventContent> for AnyMessageLikeEventContent
§fn from(c: CallInviteEventContent) -> AnyMessageLikeEventContent
fn from(c: CallInviteEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
§impl From<CallNegotiateEventContent> for AnyMessageLikeEventContent
impl From<CallNegotiateEventContent> for AnyMessageLikeEventContent
§fn from(c: CallNegotiateEventContent) -> AnyMessageLikeEventContent
fn from(c: CallNegotiateEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
§impl From<CallRejectEventContent> for AnyMessageLikeEventContent
impl From<CallRejectEventContent> for AnyMessageLikeEventContent
§fn from(c: CallRejectEventContent) -> AnyMessageLikeEventContent
fn from(c: CallRejectEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
§impl From<CallSelectAnswerEventContent> for AnyMessageLikeEventContent
impl From<CallSelectAnswerEventContent> for AnyMessageLikeEventContent
§fn from(c: CallSelectAnswerEventContent) -> AnyMessageLikeEventContent
fn from(c: CallSelectAnswerEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
§impl From<KeyVerificationAcceptEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationAcceptEventContent> for AnyMessageLikeEventContent
§fn from(c: KeyVerificationAcceptEventContent) -> AnyMessageLikeEventContent
fn from(c: KeyVerificationAcceptEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
§impl From<KeyVerificationCancelEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationCancelEventContent> for AnyMessageLikeEventContent
§fn from(c: KeyVerificationCancelEventContent) -> AnyMessageLikeEventContent
fn from(c: KeyVerificationCancelEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
§impl From<KeyVerificationDoneEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationDoneEventContent> for AnyMessageLikeEventContent
§fn from(c: KeyVerificationDoneEventContent) -> AnyMessageLikeEventContent
fn from(c: KeyVerificationDoneEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
§impl From<KeyVerificationKeyEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationKeyEventContent> for AnyMessageLikeEventContent
§fn from(c: KeyVerificationKeyEventContent) -> AnyMessageLikeEventContent
fn from(c: KeyVerificationKeyEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
§impl From<KeyVerificationMacEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationMacEventContent> for AnyMessageLikeEventContent
§fn from(c: KeyVerificationMacEventContent) -> AnyMessageLikeEventContent
fn from(c: KeyVerificationMacEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
§impl From<KeyVerificationReadyEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationReadyEventContent> for AnyMessageLikeEventContent
§fn from(c: KeyVerificationReadyEventContent) -> AnyMessageLikeEventContent
fn from(c: KeyVerificationReadyEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
§impl From<KeyVerificationStartEventContent> for AnyMessageLikeEventContent
impl From<KeyVerificationStartEventContent> for AnyMessageLikeEventContent
§fn from(c: KeyVerificationStartEventContent) -> AnyMessageLikeEventContent
fn from(c: KeyVerificationStartEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
§impl From<MessageEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc1767
only.
impl From<MessageEventContent> for AnyMessageLikeEventContent
Available on crate feature
unstable-msc1767
only.§fn from(c: MessageEventContent) -> AnyMessageLikeEventContent
fn from(c: MessageEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
§impl From<PollEndEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3381
only.
impl From<PollEndEventContent> for AnyMessageLikeEventContent
Available on crate feature
unstable-msc3381
only.§fn from(c: PollEndEventContent) -> AnyMessageLikeEventContent
fn from(c: PollEndEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
§impl From<PollResponseEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3381
only.
impl From<PollResponseEventContent> for AnyMessageLikeEventContent
Available on crate feature
unstable-msc3381
only.§fn from(c: PollResponseEventContent) -> AnyMessageLikeEventContent
fn from(c: PollResponseEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
§impl From<PollStartEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3381
only.
impl From<PollStartEventContent> for AnyMessageLikeEventContent
Available on crate feature
unstable-msc3381
only.§fn from(c: PollStartEventContent) -> AnyMessageLikeEventContent
fn from(c: PollStartEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
§impl From<ReactionEventContent> for AnyMessageLikeEventContent
impl From<ReactionEventContent> for AnyMessageLikeEventContent
§fn from(c: ReactionEventContent) -> AnyMessageLikeEventContent
fn from(c: ReactionEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
§impl From<RoomEncryptedEventContent> for AnyMessageLikeEventContent
impl From<RoomEncryptedEventContent> for AnyMessageLikeEventContent
§fn from(c: RoomEncryptedEventContent) -> AnyMessageLikeEventContent
fn from(c: RoomEncryptedEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
§impl From<RoomMessageEventContent> for AnyMessageLikeEventContent
impl From<RoomMessageEventContent> for AnyMessageLikeEventContent
§fn from(c: RoomMessageEventContent) -> AnyMessageLikeEventContent
fn from(c: RoomMessageEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
§impl From<RoomRedactionEventContent> for AnyMessageLikeEventContent
impl From<RoomRedactionEventContent> for AnyMessageLikeEventContent
§fn from(c: RoomRedactionEventContent) -> AnyMessageLikeEventContent
fn from(c: RoomRedactionEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
§impl From<StickerEventContent> for AnyMessageLikeEventContent
impl From<StickerEventContent> for AnyMessageLikeEventContent
§fn from(c: StickerEventContent) -> AnyMessageLikeEventContent
fn from(c: StickerEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
§impl From<UnstablePollEndEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3381
only.
impl From<UnstablePollEndEventContent> for AnyMessageLikeEventContent
Available on crate feature
unstable-msc3381
only.§fn from(c: UnstablePollEndEventContent) -> AnyMessageLikeEventContent
fn from(c: UnstablePollEndEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
§impl From<UnstablePollResponseEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3381
only.
impl From<UnstablePollResponseEventContent> for AnyMessageLikeEventContent
Available on crate feature
unstable-msc3381
only.§fn from(c: UnstablePollResponseEventContent) -> AnyMessageLikeEventContent
fn from(c: UnstablePollResponseEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
§impl From<UnstablePollStartEventContent> for AnyMessageLikeEventContent
Available on crate feature unstable-msc3381
only.
impl From<UnstablePollStartEventContent> for AnyMessageLikeEventContent
Available on crate feature
unstable-msc3381
only.§fn from(c: UnstablePollStartEventContent) -> AnyMessageLikeEventContent
fn from(c: UnstablePollStartEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
§impl Serialize for AnyMessageLikeEventContent
impl Serialize for AnyMessageLikeEventContent
§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 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