#[non_exhaustive]pub enum AnySyncMessageLikeEvent {
Show 30 variants
CallAnswer(SyncCallAnswerEvent),
CallInvite(SyncCallInviteEvent),
CallHangup(SyncCallHangupEvent),
CallCandidates(SyncCallCandidatesEvent),
CallNegotiate(SyncCallNegotiateEvent),
CallReject(SyncCallRejectEvent),
CallSdpStreamMetadataChanged(SyncCallSdpStreamMetadataChangedEvent),
CallSelectAnswer(SyncCallSelectAnswerEvent),
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),
CallNotify(SyncCallNotifyEvent),
}
Expand description
Any message-like event.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
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
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
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 moresource§impl Debug for AnySyncMessageLikeEvent
impl Debug for AnySyncMessageLikeEvent
source§impl<'de> Deserialize<'de> for AnySyncMessageLikeEvent
impl<'de> Deserialize<'de> for AnySyncMessageLikeEvent
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
source§impl From<AnyMessageLikeEvent> for AnySyncMessageLikeEvent
impl From<AnyMessageLikeEvent> for AnySyncMessageLikeEvent
source§fn from(event: AnyMessageLikeEvent) -> Self
fn from(event: AnyMessageLikeEvent) -> Self
source§impl From<AnySyncMessageLikeEvent> for AnySyncTimelineEvent
impl From<AnySyncMessageLikeEvent> for AnySyncTimelineEvent
source§fn from(c: AnySyncMessageLikeEvent) -> Self
fn from(c: AnySyncMessageLikeEvent) -> Self
source§impl From<SyncMessageLikeEvent<BeaconEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<BeaconEventContent>> for AnySyncMessageLikeEvent
source§fn from(c: SyncBeaconEvent) -> Self
fn from(c: SyncBeaconEvent) -> Self
source§impl From<SyncMessageLikeEvent<CallAnswerEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<CallAnswerEventContent>> for AnySyncMessageLikeEvent
source§fn from(c: SyncCallAnswerEvent) -> Self
fn from(c: SyncCallAnswerEvent) -> Self
source§impl From<SyncMessageLikeEvent<CallCandidatesEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<CallCandidatesEventContent>> for AnySyncMessageLikeEvent
source§fn from(c: SyncCallCandidatesEvent) -> Self
fn from(c: SyncCallCandidatesEvent) -> Self
source§impl From<SyncMessageLikeEvent<CallHangupEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<CallHangupEventContent>> for AnySyncMessageLikeEvent
source§fn from(c: SyncCallHangupEvent) -> Self
fn from(c: SyncCallHangupEvent) -> Self
source§impl From<SyncMessageLikeEvent<CallInviteEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<CallInviteEventContent>> for AnySyncMessageLikeEvent
source§fn from(c: SyncCallInviteEvent) -> Self
fn from(c: SyncCallInviteEvent) -> Self
source§impl From<SyncMessageLikeEvent<CallNegotiateEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<CallNegotiateEventContent>> for AnySyncMessageLikeEvent
source§fn from(c: SyncCallNegotiateEvent) -> Self
fn from(c: SyncCallNegotiateEvent) -> Self
source§impl From<SyncMessageLikeEvent<CallNotifyEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<CallNotifyEventContent>> for AnySyncMessageLikeEvent
source§fn from(c: SyncCallNotifyEvent) -> Self
fn from(c: SyncCallNotifyEvent) -> Self
source§impl From<SyncMessageLikeEvent<CallRejectEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<CallRejectEventContent>> for AnySyncMessageLikeEvent
source§fn from(c: SyncCallRejectEvent) -> Self
fn from(c: SyncCallRejectEvent) -> Self
source§impl From<SyncMessageLikeEvent<CallSdpStreamMetadataChangedEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<CallSdpStreamMetadataChangedEventContent>> for AnySyncMessageLikeEvent
source§fn from(c: SyncCallSdpStreamMetadataChangedEvent) -> Self
fn from(c: SyncCallSdpStreamMetadataChangedEvent) -> Self
source§impl From<SyncMessageLikeEvent<CallSelectAnswerEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<CallSelectAnswerEventContent>> for AnySyncMessageLikeEvent
source§fn from(c: SyncCallSelectAnswerEvent) -> Self
fn from(c: SyncCallSelectAnswerEvent) -> Self
source§impl From<SyncMessageLikeEvent<KeyVerificationAcceptEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<KeyVerificationAcceptEventContent>> for AnySyncMessageLikeEvent
source§fn from(c: SyncKeyVerificationAcceptEvent) -> Self
fn from(c: SyncKeyVerificationAcceptEvent) -> Self
source§impl From<SyncMessageLikeEvent<KeyVerificationCancelEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<KeyVerificationCancelEventContent>> for AnySyncMessageLikeEvent
source§fn from(c: SyncKeyVerificationCancelEvent) -> Self
fn from(c: SyncKeyVerificationCancelEvent) -> Self
source§impl From<SyncMessageLikeEvent<KeyVerificationDoneEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<KeyVerificationDoneEventContent>> for AnySyncMessageLikeEvent
source§fn from(c: SyncKeyVerificationDoneEvent) -> Self
fn from(c: SyncKeyVerificationDoneEvent) -> Self
source§impl From<SyncMessageLikeEvent<KeyVerificationKeyEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<KeyVerificationKeyEventContent>> for AnySyncMessageLikeEvent
source§fn from(c: SyncKeyVerificationKeyEvent) -> Self
fn from(c: SyncKeyVerificationKeyEvent) -> Self
source§impl From<SyncMessageLikeEvent<KeyVerificationMacEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<KeyVerificationMacEventContent>> for AnySyncMessageLikeEvent
source§fn from(c: SyncKeyVerificationMacEvent) -> Self
fn from(c: SyncKeyVerificationMacEvent) -> Self
source§impl From<SyncMessageLikeEvent<KeyVerificationReadyEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<KeyVerificationReadyEventContent>> for AnySyncMessageLikeEvent
source§fn from(c: SyncKeyVerificationReadyEvent) -> Self
fn from(c: SyncKeyVerificationReadyEvent) -> Self
source§impl From<SyncMessageLikeEvent<KeyVerificationStartEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<KeyVerificationStartEventContent>> for AnySyncMessageLikeEvent
source§fn from(c: SyncKeyVerificationStartEvent) -> Self
fn from(c: SyncKeyVerificationStartEvent) -> Self
source§impl From<SyncMessageLikeEvent<LocationEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<LocationEventContent>> for AnySyncMessageLikeEvent
source§fn from(c: SyncLocationEvent) -> Self
fn from(c: SyncLocationEvent) -> Self
source§impl From<SyncMessageLikeEvent<MessageEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<MessageEventContent>> for AnySyncMessageLikeEvent
source§fn from(c: SyncMessageEvent) -> Self
fn from(c: SyncMessageEvent) -> Self
source§impl From<SyncMessageLikeEvent<PollEndEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<PollEndEventContent>> for AnySyncMessageLikeEvent
source§fn from(c: SyncPollEndEvent) -> Self
fn from(c: SyncPollEndEvent) -> Self
source§impl From<SyncMessageLikeEvent<PollResponseEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<PollResponseEventContent>> for AnySyncMessageLikeEvent
source§fn from(c: SyncPollResponseEvent) -> Self
fn from(c: SyncPollResponseEvent) -> Self
source§impl From<SyncMessageLikeEvent<PollStartEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<PollStartEventContent>> for AnySyncMessageLikeEvent
source§fn from(c: SyncPollStartEvent) -> Self
fn from(c: SyncPollStartEvent) -> Self
source§impl From<SyncMessageLikeEvent<ReactionEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<ReactionEventContent>> for AnySyncMessageLikeEvent
source§fn from(c: SyncReactionEvent) -> Self
fn from(c: SyncReactionEvent) -> Self
source§impl From<SyncMessageLikeEvent<RoomEncryptedEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<RoomEncryptedEventContent>> for AnySyncMessageLikeEvent
source§fn from(c: SyncRoomEncryptedEvent) -> Self
fn from(c: SyncRoomEncryptedEvent) -> Self
source§impl From<SyncMessageLikeEvent<RoomMessageEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<RoomMessageEventContent>> for AnySyncMessageLikeEvent
source§fn from(c: SyncRoomMessageEvent) -> Self
fn from(c: SyncRoomMessageEvent) -> Self
source§impl From<SyncMessageLikeEvent<StickerEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<StickerEventContent>> for AnySyncMessageLikeEvent
source§fn from(c: SyncStickerEvent) -> Self
fn from(c: SyncStickerEvent) -> Self
source§impl From<SyncMessageLikeEvent<UnstablePollEndEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<UnstablePollEndEventContent>> for AnySyncMessageLikeEvent
source§fn from(c: SyncUnstablePollEndEvent) -> Self
fn from(c: SyncUnstablePollEndEvent) -> Self
source§impl From<SyncMessageLikeEvent<UnstablePollResponseEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<UnstablePollResponseEventContent>> for AnySyncMessageLikeEvent
source§fn from(c: SyncUnstablePollResponseEvent) -> Self
fn from(c: SyncUnstablePollResponseEvent) -> Self
source§impl From<SyncMessageLikeEvent<UnstablePollStartEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<UnstablePollStartEventContent>> for AnySyncMessageLikeEvent
source§fn from(c: SyncUnstablePollStartEvent) -> Self
fn from(c: SyncUnstablePollStartEvent) -> Self
source§impl From<SyncRoomRedactionEvent> for AnySyncMessageLikeEvent
impl From<SyncRoomRedactionEvent> for AnySyncMessageLikeEvent
source§fn from(c: SyncRoomRedactionEvent) -> Self
fn from(c: SyncRoomRedactionEvent) -> Self
Auto Trait Implementations§
impl Freeze for AnySyncMessageLikeEvent
impl RefUnwindSafe for AnySyncMessageLikeEvent
impl Send for AnySyncMessageLikeEvent
impl Sync for AnySyncMessageLikeEvent
impl Unpin for AnySyncMessageLikeEvent
impl UnwindSafe for AnySyncMessageLikeEvent
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)