Enum matrix_sdk::ruma::events::AnyMessageLikeEventContent
source · #[non_exhaustive]pub enum AnyMessageLikeEventContent {
Show 30 variants
CallAnswer(CallAnswerEventContent),
CallInvite(CallInviteEventContent),
CallHangup(CallHangupEventContent),
CallCandidates(CallCandidatesEventContent),
CallNegotiate(CallNegotiateEventContent),
CallReject(CallRejectEventContent),
CallSdpStreamMetadataChanged(CallSdpStreamMetadataChangedEventContent),
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),
Beacon(BeaconEventContent),
Reaction(ReactionEventContent),
RoomEncrypted(RoomEncryptedEventContent),
RoomMessage(RoomMessageEventContent),
RoomRedaction(RoomRedactionEventContent),
Sticker(StickerEventContent),
CallNotify(CallNotifyEventContent),
}
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
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
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
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
§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<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<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 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,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> CompatExt for T
impl<T> CompatExt for T
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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>
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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