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
CallAnswer(AnswerEvent)
m.call.answer
CallInvite(InviteEvent)
m.call.invite
CallHangup(HangupEvent)
m.call.hangup
CallCandidates(CandidatesEvent)
m.call.candidates
KeyVerificationReady(ReadyEvent)
unstable-pre-spec
only.m.key.verification.ready
KeyVerificationStart(StartEvent)
unstable-pre-spec
only.m.key.verification.start
KeyVerificationCancel(CancelEvent)
unstable-pre-spec
only.m.key.verification.cancel
KeyVerificationAccept(AcceptEvent)
unstable-pre-spec
only.m.key.verification.accept
KeyVerificationKey(KeyEvent)
unstable-pre-spec
only.m.key.verification.key
KeyVerificationMac(MacEvent)
unstable-pre-spec
only.m.key.verification.mac
KeyVerificationDone(DoneEvent)
unstable-pre-spec
only.m.key.verification.done
Reaction(ReactionEvent)
unstable-pre-spec
only.m.reaction
RoomEncrypted(EncryptedEvent)
m.room.encrypted
RoomMessage(MessageEvent)
m.room.message
RoomMessageFeedback(FeedbackEvent)
m.room.message.feedback
RoomRedaction(RedactionEvent)
m.room.redaction
Sticker(StickerEvent)
m.sticker
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
pub fn vzip(self) -> V