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

0: AnswerEventContent
CallInvite(InviteEventContent)

m.call.invite

Tuple Fields of CallInvite

0: InviteEventContent
CallHangup(HangupEventContent)

m.call.hangup

Tuple Fields of CallHangup

0: HangupEventContent
CallCandidates(CandidatesEventContent)

m.call.candidates

Tuple Fields of CallCandidates

0: CandidatesEventContent
KeyVerificationReady(ReadyEventContent)
This is supported on crate feature unstable-pre-spec only.

m.key.verification.ready

Tuple Fields of KeyVerificationReady

0: ReadyEventContent
KeyVerificationStart(StartEventContent)
This is supported on crate feature unstable-pre-spec only.

m.key.verification.start

Tuple Fields of KeyVerificationStart

0: StartEventContent
KeyVerificationCancel(CancelEventContent)
This is supported on crate feature unstable-pre-spec only.

m.key.verification.cancel

Tuple Fields of KeyVerificationCancel

0: CancelEventContent
KeyVerificationAccept(AcceptEventContent)
This is supported on crate feature unstable-pre-spec only.

m.key.verification.accept

Tuple Fields of KeyVerificationAccept

0: AcceptEventContent
KeyVerificationKey(KeyEventContent)
This is supported on crate feature unstable-pre-spec only.

m.key.verification.key

Tuple Fields of KeyVerificationKey

0: KeyEventContent
KeyVerificationMac(MacEventContent)
This is supported on crate feature unstable-pre-spec only.

m.key.verification.mac

Tuple Fields of KeyVerificationMac

0: MacEventContent
KeyVerificationDone(DoneEventContent)
This is supported on crate feature unstable-pre-spec only.

m.key.verification.done

Tuple Fields of KeyVerificationDone

0: DoneEventContent
This is supported on crate feature unstable-pre-spec only.

m.reaction

Tuple Fields of Reaction

0: ReactionEventContent
RoomEncrypted(EncryptedEventContent)

m.room.encrypted

Tuple Fields of RoomEncrypted

0: EncryptedEventContent
RoomMessage(MessageEventContent)

m.room.message

Tuple Fields of RoomMessage

0: MessageEventContent
RoomMessageFeedback(FeedbackEventContent)

m.room.message.feedback

Tuple Fields of RoomMessageFeedback

0: FeedbackEventContent
RoomRedaction(RedactionEventContent)

m.room.redaction

Tuple Fields of RoomRedaction

0: RedactionEventContent

m.sticker

Tuple Fields of Sticker

0: StickerEventContent

Implementations

Get a copy of the event’s m.relates_to field, if any.

This is a helper function intended for encryption. There should not be a reason to access m.relates_to without first destructuring an AnyMessageEventContent otherwise.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

A matrix event identifier, like m.room.message.

Constructs the given event content.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Redacts Self given a RoomVersionId.

The redacted form of the event’s content.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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