Enum ruma_events::AnyMessageEventContent [−][src]
pub enum AnyMessageEventContent {
Show 17 variants
CallAnswer(AnswerEventContent),
CallInvite(InviteEventContent),
CallHangup(HangupEventContent),
CallCandidates(CandidatesEventContent),
KeyVerificationReady(ReadyEventContent),
KeyVerificationStart(StartEventContent),
KeyVerificationCancel(CancelEventContent),
KeyVerificationAccept(AcceptEventContent),
KeyVerificationKey(KeyEventContent),
KeyVerificationMac(MacEventContent),
KeyVerificationDone(DoneEventContent),
Reaction(ReactionEventContent),
RoomEncrypted(EncryptedEventContent),
RoomMessage(MessageEventContent),
RoomMessageFeedback(FeedbackEventContent),
RoomRedaction(RedactionEventContent),
Sticker(StickerEventContent),
// some variants omitted
}
Expand description
Any message event.
Variants
CallAnswer(AnswerEventContent)
m.call.answer
Tuple Fields of CallAnswer
CallInvite(InviteEventContent)
m.call.invite
Tuple Fields of CallInvite
CallHangup(HangupEventContent)
m.call.hangup
Tuple Fields of CallHangup
CallCandidates(CandidatesEventContent)
m.call.candidates
Tuple Fields of CallCandidates
KeyVerificationReady(ReadyEventContent)
unstable-pre-spec
only.m.key.verification.ready
Tuple Fields of KeyVerificationReady
KeyVerificationStart(StartEventContent)
unstable-pre-spec
only.m.key.verification.start
Tuple Fields of KeyVerificationStart
KeyVerificationCancel(CancelEventContent)
unstable-pre-spec
only.m.key.verification.cancel
Tuple Fields of KeyVerificationCancel
KeyVerificationAccept(AcceptEventContent)
unstable-pre-spec
only.m.key.verification.accept
Tuple Fields of KeyVerificationAccept
KeyVerificationKey(KeyEventContent)
unstable-pre-spec
only.m.key.verification.key
Tuple Fields of KeyVerificationKey
KeyVerificationMac(MacEventContent)
unstable-pre-spec
only.m.key.verification.mac
Tuple Fields of KeyVerificationMac
KeyVerificationDone(DoneEventContent)
unstable-pre-spec
only.m.key.verification.done
Tuple Fields of KeyVerificationDone
Reaction(ReactionEventContent)
unstable-pre-spec
only.m.reaction
Tuple Fields of Reaction
RoomEncrypted(EncryptedEventContent)
m.room.encrypted
Tuple Fields of RoomEncrypted
RoomMessage(MessageEventContent)
m.room.message
Tuple Fields of RoomMessage
RoomMessageFeedback(FeedbackEventContent)
m.room.message.feedback
Tuple Fields of RoomMessageFeedback
RoomRedaction(RedactionEventContent)
m.room.redaction
Tuple Fields of RoomRedaction
Sticker(StickerEventContent)
m.sticker
Tuple Fields of Sticker
Implementations
Trait Implementations
A matrix event identifier, like m.room.message
.
Constructs the given event content.
impl From<AcceptEventContent> for AnyMessageEventContent
This is supported on crate feature unstable-pre-spec
only.
impl From<AcceptEventContent> for AnyMessageEventContent
unstable-pre-spec
only.Performs the conversion.
Performs the conversion.
impl From<CancelEventContent> for AnyMessageEventContent
This is supported on crate feature unstable-pre-spec
only.
impl From<CancelEventContent> for AnyMessageEventContent
unstable-pre-spec
only.Performs the conversion.
Performs the conversion.
impl From<DoneEventContent> for AnyMessageEventContent
This is supported on crate feature unstable-pre-spec
only.
impl From<DoneEventContent> for AnyMessageEventContent
unstable-pre-spec
only.Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
impl From<KeyEventContent> for AnyMessageEventContent
This is supported on crate feature unstable-pre-spec
only.
impl From<KeyEventContent> for AnyMessageEventContent
unstable-pre-spec
only.Performs the conversion.
impl From<MacEventContent> for AnyMessageEventContent
This is supported on crate feature unstable-pre-spec
only.
impl From<MacEventContent> for AnyMessageEventContent
unstable-pre-spec
only.Performs the conversion.
Performs the conversion.
impl From<ReactionEventContent> for AnyMessageEventContent
This is supported on crate feature unstable-pre-spec
only.
impl From<ReactionEventContent> for AnyMessageEventContent
unstable-pre-spec
only.Performs the conversion.
impl From<ReadyEventContent> for AnyMessageEventContent
This is supported on crate feature unstable-pre-spec
only.
impl From<ReadyEventContent> for AnyMessageEventContent
unstable-pre-spec
only.Performs the conversion.
Performs the conversion.
impl From<StartEventContent> for AnyMessageEventContent
This is supported on crate feature unstable-pre-spec
only.
impl From<StartEventContent> for AnyMessageEventContent
unstable-pre-spec
only.Performs the conversion.
Performs the conversion.
Redacts Self
given a RoomVersionId
.
The redacted form of the event’s content.
Auto Trait Implementations
impl RefUnwindSafe for AnyMessageEventContent
impl Send for AnyMessageEventContent
impl Sync for AnyMessageEventContent
impl Unpin for AnyMessageEventContent
impl UnwindSafe for AnyMessageEventContent
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more