Enum ruma_events::AnyMessageEvent [−][src]
pub enum AnyMessageEvent {}Show 17 variants
CallAnswer(AnswerEvent), CallInvite(InviteEvent), CallHangup(HangupEvent), CallCandidates(CandidatesEvent), KeyVerificationReady(ReadyEvent), KeyVerificationStart(StartEvent), KeyVerificationCancel(CancelEvent), KeyVerificationAccept(AcceptEvent), KeyVerificationKey(KeyEvent), KeyVerificationMac(MacEvent), KeyVerificationDone(DoneEvent), Reaction(ReactionEvent), RoomEncrypted(EncryptedEvent), RoomMessage(MessageEvent), RoomMessageFeedback(FeedbackEvent), RoomRedaction(RedactionEvent), Sticker(StickerEvent), // some variants omitted
Expand description
Any message event.
Variants
m.call.answer
Tuple Fields of CallAnswer
0: AnswerEvent
m.call.invite
Tuple Fields of CallInvite
0: InviteEvent
m.call.hangup
Tuple Fields of CallHangup
0: HangupEvent
m.call.candidates
Tuple Fields of CallCandidates
unstable-pre-spec
only.m.key.verification.ready
Tuple Fields of KeyVerificationReady
0: ReadyEvent
unstable-pre-spec
only.m.key.verification.start
Tuple Fields of KeyVerificationStart
0: StartEvent
unstable-pre-spec
only.m.key.verification.cancel
Tuple Fields of KeyVerificationCancel
0: CancelEvent
unstable-pre-spec
only.m.key.verification.accept
Tuple Fields of KeyVerificationAccept
0: AcceptEvent
unstable-pre-spec
only.m.key.verification.key
Tuple Fields of KeyVerificationKey
0: KeyEvent
unstable-pre-spec
only.m.key.verification.mac
Tuple Fields of KeyVerificationMac
0: MacEvent
unstable-pre-spec
only.m.key.verification.done
Tuple Fields of KeyVerificationDone
0: DoneEvent
unstable-pre-spec
only.m.reaction
Tuple Fields of Reaction
m.room.encrypted
Tuple Fields of RoomEncrypted
m.room.message
Tuple Fields of RoomMessage
0: MessageEvent
m.room.message.feedback
Tuple Fields of RoomMessageFeedback
m.room.redaction
Tuple Fields of RoomRedaction
m.sticker
Tuple Fields of Sticker
0: StickerEvent
Implementations
Returns the any content enum for this event.
Returns the type
of this event.
Returns this event’s origin_server_ts field.
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
type Redacted = AnyRedactedMessageEvent
type Redacted = AnyRedactedMessageEvent
The redacted form of the event.
fn redact(
self,
redaction: SyncRedactionEvent,
version: &RoomVersionId
) -> AnyRedactedMessageEvent
fn redact(
self,
redaction: SyncRedactionEvent,
version: &RoomVersionId
) -> AnyRedactedMessageEvent
Transforms self
into a redacted form (removing most fields) according to the spec. Read more
Auto Trait Implementations
impl RefUnwindSafe for AnyMessageEvent
impl Send for AnyMessageEvent
impl Sync for AnyMessageEvent
impl Unpin for AnyMessageEvent
impl UnwindSafe for AnyMessageEvent
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more