#[non_exhaustive]pub enum AnyMessageLikeEvent {
Show 30 variants
CallAnswer(MessageLikeEvent<CallAnswerEventContent>),
CallInvite(MessageLikeEvent<CallInviteEventContent>),
CallHangup(MessageLikeEvent<CallHangupEventContent>),
CallCandidates(MessageLikeEvent<CallCandidatesEventContent>),
CallNegotiate(MessageLikeEvent<CallNegotiateEventContent>),
CallReject(MessageLikeEvent<CallRejectEventContent>),
CallSdpStreamMetadataChanged(MessageLikeEvent<CallSdpStreamMetadataChangedEventContent>),
CallSelectAnswer(MessageLikeEvent<CallSelectAnswerEventContent>),
KeyVerificationReady(MessageLikeEvent<KeyVerificationReadyEventContent>),
KeyVerificationStart(MessageLikeEvent<KeyVerificationStartEventContent>),
KeyVerificationCancel(MessageLikeEvent<KeyVerificationCancelEventContent>),
KeyVerificationAccept(MessageLikeEvent<KeyVerificationAcceptEventContent>),
KeyVerificationKey(MessageLikeEvent<KeyVerificationKeyEventContent>),
KeyVerificationMac(MessageLikeEvent<KeyVerificationMacEventContent>),
KeyVerificationDone(MessageLikeEvent<KeyVerificationDoneEventContent>),
Location(MessageLikeEvent<LocationEventContent>),
Message(MessageLikeEvent<MessageEventContent>),
PollStart(MessageLikeEvent<PollStartEventContent>),
UnstablePollStart(MessageLikeEvent<UnstablePollStartEventContent>),
PollResponse(MessageLikeEvent<PollResponseEventContent>),
UnstablePollResponse(MessageLikeEvent<UnstablePollResponseEventContent>),
PollEnd(MessageLikeEvent<PollEndEventContent>),
UnstablePollEnd(MessageLikeEvent<UnstablePollEndEventContent>),
Beacon(MessageLikeEvent<BeaconEventContent>),
Reaction(MessageLikeEvent<ReactionEventContent>),
RoomEncrypted(MessageLikeEvent<RoomEncryptedEventContent>),
RoomMessage(MessageLikeEvent<RoomMessageEventContent>),
RoomRedaction(RoomRedactionEvent),
Sticker(MessageLikeEvent<StickerEventContent>),
CallNotify(MessageLikeEvent<CallNotifyEventContent>),
}
Expand description
Any message-like event.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CallAnswer(MessageLikeEvent<CallAnswerEventContent>)
m.call.answer
CallInvite(MessageLikeEvent<CallInviteEventContent>)
m.call.invite
CallHangup(MessageLikeEvent<CallHangupEventContent>)
m.call.hangup
CallCandidates(MessageLikeEvent<CallCandidatesEventContent>)
m.call.candidates
CallNegotiate(MessageLikeEvent<CallNegotiateEventContent>)
m.call.negotiate
CallReject(MessageLikeEvent<CallRejectEventContent>)
m.call.reject
CallSdpStreamMetadataChanged(MessageLikeEvent<CallSdpStreamMetadataChangedEventContent>)
m.call.sdp_stream_metadata_changed
This variant can also be deserialized from the org.matrix.call.sdp_stream_metadata_changed
type.
CallSelectAnswer(MessageLikeEvent<CallSelectAnswerEventContent>)
m.call.select_answer
KeyVerificationReady(MessageLikeEvent<KeyVerificationReadyEventContent>)
m.key.verification.ready
KeyVerificationStart(MessageLikeEvent<KeyVerificationStartEventContent>)
m.key.verification.start
KeyVerificationCancel(MessageLikeEvent<KeyVerificationCancelEventContent>)
m.key.verification.cancel
KeyVerificationAccept(MessageLikeEvent<KeyVerificationAcceptEventContent>)
m.key.verification.accept
KeyVerificationKey(MessageLikeEvent<KeyVerificationKeyEventContent>)
m.key.verification.key
KeyVerificationMac(MessageLikeEvent<KeyVerificationMacEventContent>)
m.key.verification.mac
KeyVerificationDone(MessageLikeEvent<KeyVerificationDoneEventContent>)
m.key.verification.done
Location(MessageLikeEvent<LocationEventContent>)
m.location
Message(MessageLikeEvent<MessageEventContent>)
m.message
This variant uses the unstable type org.matrix.msc1767.message
.
This variant can also be deserialized from the m.message
type.
PollStart(MessageLikeEvent<PollStartEventContent>)
m.poll.start
UnstablePollStart(MessageLikeEvent<UnstablePollStartEventContent>)
org.matrix.msc3381.poll.start
PollResponse(MessageLikeEvent<PollResponseEventContent>)
m.poll.response
UnstablePollResponse(MessageLikeEvent<UnstablePollResponseEventContent>)
org.matrix.msc3381.poll.response
PollEnd(MessageLikeEvent<PollEndEventContent>)
m.poll.end
UnstablePollEnd(MessageLikeEvent<UnstablePollEndEventContent>)
org.matrix.msc3381.poll.end
Beacon(MessageLikeEvent<BeaconEventContent>)
m.beacon
This variant uses the unstable type org.matrix.msc3672.beacon
.
This variant can also be deserialized from the m.beacon
type.
Reaction(MessageLikeEvent<ReactionEventContent>)
m.reaction
RoomEncrypted(MessageLikeEvent<RoomEncryptedEventContent>)
m.room.encrypted
RoomMessage(MessageLikeEvent<RoomMessageEventContent>)
m.room.message
RoomRedaction(RoomRedactionEvent)
m.room.redaction
Sticker(MessageLikeEvent<StickerEventContent>)
m.sticker
CallNotify(MessageLikeEvent<CallNotifyEventContent>)
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§
Source§impl AnyMessageLikeEvent
impl AnyMessageLikeEvent
Sourcepub fn event_type(&self) -> MessageLikeEventType
pub fn event_type(&self) -> MessageLikeEventType
Returns the type
of this event.
Sourcepub fn original_content(&self) -> Option<AnyMessageLikeEventContent>
pub fn original_content(&self) -> Option<AnyMessageLikeEventContent>
Returns the content for this event if it is not redacted, or None
if it is.
Sourcepub fn origin_server_ts(&self) -> MilliSecondsSinceUnixEpoch
pub fn origin_server_ts(&self) -> MilliSecondsSinceUnixEpoch
Returns this event’s origin_server_ts
field.
Sourcepub fn relations(&self) -> BundledMessageLikeRelations<AnySyncMessageLikeEvent>
pub fn relations(&self) -> BundledMessageLikeRelations<AnySyncMessageLikeEvent>
Returns this event’s relations
from inside unsigned
.
Sourcepub fn transaction_id(&self) -> Option<&TransactionId>
pub fn transaction_id(&self) -> Option<&TransactionId>
Returns this event’s transaction_id
from inside unsigned
, if there is one.
Trait Implementations§
Source§impl Clone for AnyMessageLikeEvent
impl Clone for AnyMessageLikeEvent
Source§fn clone(&self) -> AnyMessageLikeEvent
fn clone(&self) -> AnyMessageLikeEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more