#[non_exhaustive]pub enum AnySyncMessageLikeEvent {
Show 37 variants
Audio(SyncAudioEvent),
CallAnswer(SyncCallAnswerEvent),
CallInvite(SyncCallInviteEvent),
CallHangup(SyncCallHangupEvent),
CallCandidates(SyncCallCandidatesEvent),
CallNegotiate(SyncCallNegotiateEvent),
CallReject(SyncCallRejectEvent),
CallSdpStreamMetadataChanged(SyncCallSdpStreamMetadataChangedEvent),
CallSelectAnswer(SyncCallSelectAnswerEvent),
Emote(SyncEmoteEvent),
Encrypted(SyncEncryptedEvent),
File(SyncFileEvent),
Image(SyncImageEvent),
KeyVerificationReady(SyncKeyVerificationReadyEvent),
KeyVerificationStart(SyncKeyVerificationStartEvent),
KeyVerificationCancel(SyncKeyVerificationCancelEvent),
KeyVerificationAccept(SyncKeyVerificationAcceptEvent),
KeyVerificationKey(SyncKeyVerificationKeyEvent),
KeyVerificationMac(SyncKeyVerificationMacEvent),
KeyVerificationDone(SyncKeyVerificationDoneEvent),
Location(SyncLocationEvent),
Message(SyncMessageEvent),
PollStart(SyncPollStartEvent),
UnstablePollStart(SyncUnstablePollStartEvent),
PollResponse(SyncPollResponseEvent),
UnstablePollResponse(SyncUnstablePollResponseEvent),
PollEnd(SyncPollEndEvent),
UnstablePollEnd(SyncUnstablePollEndEvent),
Beacon(SyncBeaconEvent),
Reaction(SyncReactionEvent),
RoomEncrypted(SyncRoomEncryptedEvent),
RoomMessage(SyncRoomMessageEvent),
RoomRedaction(SyncRoomRedactionEvent),
Sticker(SyncStickerEvent),
Video(SyncVideoEvent),
Voice(SyncVoiceEvent),
CallNotify(SyncCallNotifyEvent),
}
Expand description
Any message-like event.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Audio(SyncAudioEvent)
m.audio
This variant uses the unstable type org.matrix.msc1767.audio
.
This variant can also be deserialized from the m.audio
type.
CallAnswer(SyncCallAnswerEvent)
m.call.answer
CallInvite(SyncCallInviteEvent)
m.call.invite
CallHangup(SyncCallHangupEvent)
m.call.hangup
CallCandidates(SyncCallCandidatesEvent)
m.call.candidates
CallNegotiate(SyncCallNegotiateEvent)
m.call.negotiate
CallReject(SyncCallRejectEvent)
m.call.reject
CallSdpStreamMetadataChanged(SyncCallSdpStreamMetadataChangedEvent)
m.call.sdp_stream_metadata_changed
This variant can also be deserialized from the org.matrix.call.sdp_stream_metadata_changed
type.
CallSelectAnswer(SyncCallSelectAnswerEvent)
m.call.select_answer
Emote(SyncEmoteEvent)
m.emote
This variant uses the unstable type org.matrix.msc1767.emote
.
This variant can also be deserialized from the m.emote
type.
Encrypted(SyncEncryptedEvent)
m.encrypted
This variant uses the unstable type org.matrix.msc1767.encrypted
.
This variant can also be deserialized from the m.encrypted
type.
File(SyncFileEvent)
m.file
This variant uses the unstable type org.matrix.msc1767.file
.
This variant can also be deserialized from the m.file
type.
Image(SyncImageEvent)
m.image
This variant uses the unstable type org.matrix.msc1767.image
.
This variant can also be deserialized from the m.image
type.
KeyVerificationReady(SyncKeyVerificationReadyEvent)
m.key.verification.ready
KeyVerificationStart(SyncKeyVerificationStartEvent)
m.key.verification.start
KeyVerificationCancel(SyncKeyVerificationCancelEvent)
m.key.verification.cancel
KeyVerificationAccept(SyncKeyVerificationAcceptEvent)
m.key.verification.accept
KeyVerificationKey(SyncKeyVerificationKeyEvent)
m.key.verification.key
KeyVerificationMac(SyncKeyVerificationMacEvent)
m.key.verification.mac
KeyVerificationDone(SyncKeyVerificationDoneEvent)
m.key.verification.done
Location(SyncLocationEvent)
m.location
Message(SyncMessageEvent)
m.message
This variant uses the unstable type org.matrix.msc1767.message
.
This variant can also be deserialized from the m.message
type.
PollStart(SyncPollStartEvent)
m.poll.start
UnstablePollStart(SyncUnstablePollStartEvent)
org.matrix.msc3381.poll.start
PollResponse(SyncPollResponseEvent)
m.poll.response
UnstablePollResponse(SyncUnstablePollResponseEvent)
org.matrix.msc3381.poll.response
PollEnd(SyncPollEndEvent)
m.poll.end
UnstablePollEnd(SyncUnstablePollEndEvent)
org.matrix.msc3381.poll.end
Beacon(SyncBeaconEvent)
m.beacon
This variant uses the unstable type org.matrix.msc3672.beacon
.
This variant can also be deserialized from the m.beacon
type.
Reaction(SyncReactionEvent)
m.reaction
RoomEncrypted(SyncRoomEncryptedEvent)
m.room.encrypted
RoomMessage(SyncRoomMessageEvent)
m.room.message
RoomRedaction(SyncRoomRedactionEvent)
m.room.redaction
Sticker(SyncStickerEvent)
m.sticker
Video(SyncVideoEvent)
m.video
This variant uses the unstable type org.matrix.msc1767.video
.
This variant can also be deserialized from the m.video
type.
Voice(SyncVoiceEvent)
m.voice
This variant uses the unstable type org.matrix.msc3245.voice.v2
.
This variant can also be deserialized from the m.voice
type.
CallNotify(SyncCallNotifyEvent)
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 AnySyncMessageLikeEvent
impl AnySyncMessageLikeEvent
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.
Source§impl AnySyncMessageLikeEvent
impl AnySyncMessageLikeEvent
Sourcepub fn into_full_event(self, room_id: OwnedRoomId) -> AnyMessageLikeEvent
pub fn into_full_event(self, room_id: OwnedRoomId) -> AnyMessageLikeEvent
Convert this sync event into a full event (one with a room_id
field).
Trait Implementations§
Source§impl Clone for AnySyncMessageLikeEvent
impl Clone for AnySyncMessageLikeEvent
Source§fn clone(&self) -> AnySyncMessageLikeEvent
fn clone(&self) -> AnySyncMessageLikeEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more