#[non_exhaustive]pub enum AnySyncMessageLikeEvent {
Show 30 variants
CallAnswer(SyncMessageLikeEvent<CallAnswerEventContent>),
CallInvite(SyncMessageLikeEvent<CallInviteEventContent>),
CallHangup(SyncMessageLikeEvent<CallHangupEventContent>),
CallCandidates(SyncMessageLikeEvent<CallCandidatesEventContent>),
CallNegotiate(SyncMessageLikeEvent<CallNegotiateEventContent>),
CallReject(SyncMessageLikeEvent<CallRejectEventContent>),
CallSdpStreamMetadataChanged(SyncMessageLikeEvent<CallSdpStreamMetadataChangedEventContent>),
CallSelectAnswer(SyncMessageLikeEvent<CallSelectAnswerEventContent>),
KeyVerificationReady(SyncMessageLikeEvent<KeyVerificationReadyEventContent>),
KeyVerificationStart(SyncMessageLikeEvent<KeyVerificationStartEventContent>),
KeyVerificationCancel(SyncMessageLikeEvent<KeyVerificationCancelEventContent>),
KeyVerificationAccept(SyncMessageLikeEvent<KeyVerificationAcceptEventContent>),
KeyVerificationKey(SyncMessageLikeEvent<KeyVerificationKeyEventContent>),
KeyVerificationMac(SyncMessageLikeEvent<KeyVerificationMacEventContent>),
KeyVerificationDone(SyncMessageLikeEvent<KeyVerificationDoneEventContent>),
Location(SyncMessageLikeEvent<LocationEventContent>),
Message(SyncMessageLikeEvent<MessageEventContent>),
PollStart(SyncMessageLikeEvent<PollStartEventContent>),
UnstablePollStart(SyncMessageLikeEvent<UnstablePollStartEventContent>),
PollResponse(SyncMessageLikeEvent<PollResponseEventContent>),
UnstablePollResponse(SyncMessageLikeEvent<UnstablePollResponseEventContent>),
PollEnd(SyncMessageLikeEvent<PollEndEventContent>),
UnstablePollEnd(SyncMessageLikeEvent<UnstablePollEndEventContent>),
Beacon(SyncMessageLikeEvent<BeaconEventContent>),
Reaction(SyncMessageLikeEvent<ReactionEventContent>),
RoomEncrypted(SyncMessageLikeEvent<RoomEncryptedEventContent>),
RoomMessage(SyncMessageLikeEvent<RoomMessageEventContent>),
RoomRedaction(SyncRoomRedactionEvent),
Sticker(SyncMessageLikeEvent<StickerEventContent>),
CallNotify(SyncMessageLikeEvent<CallNotifyEventContent>),
}
events
only.Expand description
Any message-like event.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CallAnswer(SyncMessageLikeEvent<CallAnswerEventContent>)
m.call.answer
CallInvite(SyncMessageLikeEvent<CallInviteEventContent>)
m.call.invite
CallHangup(SyncMessageLikeEvent<CallHangupEventContent>)
m.call.hangup
CallCandidates(SyncMessageLikeEvent<CallCandidatesEventContent>)
m.call.candidates
CallNegotiate(SyncMessageLikeEvent<CallNegotiateEventContent>)
m.call.negotiate
CallReject(SyncMessageLikeEvent<CallRejectEventContent>)
m.call.reject
CallSdpStreamMetadataChanged(SyncMessageLikeEvent<CallSdpStreamMetadataChangedEventContent>)
m.call.sdp_stream_metadata_changed
This variant can also be deserialized from the org.matrix.call.sdp_stream_metadata_changed
type.
CallSelectAnswer(SyncMessageLikeEvent<CallSelectAnswerEventContent>)
m.call.select_answer
KeyVerificationReady(SyncMessageLikeEvent<KeyVerificationReadyEventContent>)
m.key.verification.ready
KeyVerificationStart(SyncMessageLikeEvent<KeyVerificationStartEventContent>)
m.key.verification.start
KeyVerificationCancel(SyncMessageLikeEvent<KeyVerificationCancelEventContent>)
m.key.verification.cancel
KeyVerificationAccept(SyncMessageLikeEvent<KeyVerificationAcceptEventContent>)
m.key.verification.accept
KeyVerificationKey(SyncMessageLikeEvent<KeyVerificationKeyEventContent>)
m.key.verification.key
KeyVerificationMac(SyncMessageLikeEvent<KeyVerificationMacEventContent>)
m.key.verification.mac
KeyVerificationDone(SyncMessageLikeEvent<KeyVerificationDoneEventContent>)
m.key.verification.done
Location(SyncMessageLikeEvent<LocationEventContent>)
unstable-msc3488
only.m.location
Message(SyncMessageLikeEvent<MessageEventContent>)
unstable-msc1767
only.m.message
This variant uses the unstable type org.matrix.msc1767.message
.
This variant can also be deserialized from the m.message
type.
PollStart(SyncMessageLikeEvent<PollStartEventContent>)
unstable-msc3381
only.m.poll.start
UnstablePollStart(SyncMessageLikeEvent<UnstablePollStartEventContent>)
unstable-msc3381
only.org.matrix.msc3381.poll.start
PollResponse(SyncMessageLikeEvent<PollResponseEventContent>)
unstable-msc3381
only.m.poll.response
UnstablePollResponse(SyncMessageLikeEvent<UnstablePollResponseEventContent>)
unstable-msc3381
only.org.matrix.msc3381.poll.response
PollEnd(SyncMessageLikeEvent<PollEndEventContent>)
unstable-msc3381
only.m.poll.end
UnstablePollEnd(SyncMessageLikeEvent<UnstablePollEndEventContent>)
unstable-msc3381
only.org.matrix.msc3381.poll.end
Beacon(SyncMessageLikeEvent<BeaconEventContent>)
unstable-msc3489
only.m.beacon
This variant uses the unstable type org.matrix.msc3672.beacon
.
This variant can also be deserialized from the m.beacon
type.
Reaction(SyncMessageLikeEvent<ReactionEventContent>)
m.reaction
RoomEncrypted(SyncMessageLikeEvent<RoomEncryptedEventContent>)
m.room.encrypted
RoomMessage(SyncMessageLikeEvent<RoomMessageEventContent>)
m.room.message
RoomRedaction(SyncRoomRedactionEvent)
m.room.redaction
Sticker(SyncMessageLikeEvent<StickerEventContent>)
m.sticker
CallNotify(SyncMessageLikeEvent<CallNotifyEventContent>)
unstable-msc4075
only.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<AnySyncMessageLikeEvent, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<AnySyncMessageLikeEvent, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Source§impl From<AnyMessageLikeEvent> for AnySyncMessageLikeEvent
impl From<AnyMessageLikeEvent> for AnySyncMessageLikeEvent
Source§fn from(event: AnyMessageLikeEvent) -> AnySyncMessageLikeEvent
fn from(event: AnyMessageLikeEvent) -> AnySyncMessageLikeEvent
Source§impl From<AnySyncMessageLikeEvent> for AnySyncTimelineEvent
impl From<AnySyncMessageLikeEvent> for AnySyncTimelineEvent
Source§fn from(c: AnySyncMessageLikeEvent) -> AnySyncTimelineEvent
fn from(c: AnySyncMessageLikeEvent) -> AnySyncTimelineEvent
Source§impl From<SyncMessageLikeEvent<BeaconEventContent>> for AnySyncMessageLikeEvent
Available on crate feature unstable-msc3489
only.
impl From<SyncMessageLikeEvent<BeaconEventContent>> for AnySyncMessageLikeEvent
unstable-msc3489
only.Source§fn from(c: SyncMessageLikeEvent<BeaconEventContent>) -> AnySyncMessageLikeEvent
fn from(c: SyncMessageLikeEvent<BeaconEventContent>) -> AnySyncMessageLikeEvent
Source§impl From<SyncMessageLikeEvent<CallAnswerEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<CallAnswerEventContent>> for AnySyncMessageLikeEvent
Source§fn from(
c: SyncMessageLikeEvent<CallAnswerEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<CallAnswerEventContent>, ) -> AnySyncMessageLikeEvent
Source§impl From<SyncMessageLikeEvent<CallCandidatesEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<CallCandidatesEventContent>> for AnySyncMessageLikeEvent
Source§fn from(
c: SyncMessageLikeEvent<CallCandidatesEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<CallCandidatesEventContent>, ) -> AnySyncMessageLikeEvent
Source§impl From<SyncMessageLikeEvent<CallHangupEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<CallHangupEventContent>> for AnySyncMessageLikeEvent
Source§fn from(
c: SyncMessageLikeEvent<CallHangupEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<CallHangupEventContent>, ) -> AnySyncMessageLikeEvent
Source§impl From<SyncMessageLikeEvent<CallInviteEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<CallInviteEventContent>> for AnySyncMessageLikeEvent
Source§fn from(
c: SyncMessageLikeEvent<CallInviteEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<CallInviteEventContent>, ) -> AnySyncMessageLikeEvent
Source§impl From<SyncMessageLikeEvent<CallNegotiateEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<CallNegotiateEventContent>> for AnySyncMessageLikeEvent
Source§fn from(
c: SyncMessageLikeEvent<CallNegotiateEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<CallNegotiateEventContent>, ) -> AnySyncMessageLikeEvent
Source§impl From<SyncMessageLikeEvent<CallNotifyEventContent>> for AnySyncMessageLikeEvent
Available on crate feature unstable-msc4075
only.
impl From<SyncMessageLikeEvent<CallNotifyEventContent>> for AnySyncMessageLikeEvent
unstable-msc4075
only.Source§fn from(
c: SyncMessageLikeEvent<CallNotifyEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<CallNotifyEventContent>, ) -> AnySyncMessageLikeEvent
Source§impl From<SyncMessageLikeEvent<CallRejectEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<CallRejectEventContent>> for AnySyncMessageLikeEvent
Source§fn from(
c: SyncMessageLikeEvent<CallRejectEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<CallRejectEventContent>, ) -> AnySyncMessageLikeEvent
Source§impl From<SyncMessageLikeEvent<CallSdpStreamMetadataChangedEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<CallSdpStreamMetadataChangedEventContent>> for AnySyncMessageLikeEvent
Source§fn from(
c: SyncMessageLikeEvent<CallSdpStreamMetadataChangedEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<CallSdpStreamMetadataChangedEventContent>, ) -> AnySyncMessageLikeEvent
Source§impl From<SyncMessageLikeEvent<CallSelectAnswerEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<CallSelectAnswerEventContent>> for AnySyncMessageLikeEvent
Source§fn from(
c: SyncMessageLikeEvent<CallSelectAnswerEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<CallSelectAnswerEventContent>, ) -> AnySyncMessageLikeEvent
Source§impl From<SyncMessageLikeEvent<KeyVerificationAcceptEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<KeyVerificationAcceptEventContent>> for AnySyncMessageLikeEvent
Source§fn from(
c: SyncMessageLikeEvent<KeyVerificationAcceptEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<KeyVerificationAcceptEventContent>, ) -> AnySyncMessageLikeEvent
Source§impl From<SyncMessageLikeEvent<KeyVerificationCancelEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<KeyVerificationCancelEventContent>> for AnySyncMessageLikeEvent
Source§fn from(
c: SyncMessageLikeEvent<KeyVerificationCancelEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<KeyVerificationCancelEventContent>, ) -> AnySyncMessageLikeEvent
Source§impl From<SyncMessageLikeEvent<KeyVerificationDoneEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<KeyVerificationDoneEventContent>> for AnySyncMessageLikeEvent
Source§fn from(
c: SyncMessageLikeEvent<KeyVerificationDoneEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<KeyVerificationDoneEventContent>, ) -> AnySyncMessageLikeEvent
Source§impl From<SyncMessageLikeEvent<KeyVerificationKeyEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<KeyVerificationKeyEventContent>> for AnySyncMessageLikeEvent
Source§fn from(
c: SyncMessageLikeEvent<KeyVerificationKeyEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<KeyVerificationKeyEventContent>, ) -> AnySyncMessageLikeEvent
Source§impl From<SyncMessageLikeEvent<KeyVerificationMacEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<KeyVerificationMacEventContent>> for AnySyncMessageLikeEvent
Source§fn from(
c: SyncMessageLikeEvent<KeyVerificationMacEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<KeyVerificationMacEventContent>, ) -> AnySyncMessageLikeEvent
Source§impl From<SyncMessageLikeEvent<KeyVerificationReadyEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<KeyVerificationReadyEventContent>> for AnySyncMessageLikeEvent
Source§fn from(
c: SyncMessageLikeEvent<KeyVerificationReadyEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<KeyVerificationReadyEventContent>, ) -> AnySyncMessageLikeEvent
Source§impl From<SyncMessageLikeEvent<KeyVerificationStartEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<KeyVerificationStartEventContent>> for AnySyncMessageLikeEvent
Source§fn from(
c: SyncMessageLikeEvent<KeyVerificationStartEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<KeyVerificationStartEventContent>, ) -> AnySyncMessageLikeEvent
Source§impl From<SyncMessageLikeEvent<LocationEventContent>> for AnySyncMessageLikeEvent
Available on crate feature unstable-msc3488
only.
impl From<SyncMessageLikeEvent<LocationEventContent>> for AnySyncMessageLikeEvent
unstable-msc3488
only.Source§fn from(
c: SyncMessageLikeEvent<LocationEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<LocationEventContent>, ) -> AnySyncMessageLikeEvent
Source§impl From<SyncMessageLikeEvent<MessageEventContent>> for AnySyncMessageLikeEvent
Available on crate feature unstable-msc1767
only.
impl From<SyncMessageLikeEvent<MessageEventContent>> for AnySyncMessageLikeEvent
unstable-msc1767
only.Source§fn from(c: SyncMessageLikeEvent<MessageEventContent>) -> AnySyncMessageLikeEvent
fn from(c: SyncMessageLikeEvent<MessageEventContent>) -> AnySyncMessageLikeEvent
Source§impl From<SyncMessageLikeEvent<PollEndEventContent>> for AnySyncMessageLikeEvent
Available on crate feature unstable-msc3381
only.
impl From<SyncMessageLikeEvent<PollEndEventContent>> for AnySyncMessageLikeEvent
unstable-msc3381
only.Source§fn from(c: SyncMessageLikeEvent<PollEndEventContent>) -> AnySyncMessageLikeEvent
fn from(c: SyncMessageLikeEvent<PollEndEventContent>) -> AnySyncMessageLikeEvent
Source§impl From<SyncMessageLikeEvent<PollResponseEventContent>> for AnySyncMessageLikeEvent
Available on crate feature unstable-msc3381
only.
impl From<SyncMessageLikeEvent<PollResponseEventContent>> for AnySyncMessageLikeEvent
unstable-msc3381
only.Source§fn from(
c: SyncMessageLikeEvent<PollResponseEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<PollResponseEventContent>, ) -> AnySyncMessageLikeEvent
Source§impl From<SyncMessageLikeEvent<PollStartEventContent>> for AnySyncMessageLikeEvent
Available on crate feature unstable-msc3381
only.
impl From<SyncMessageLikeEvent<PollStartEventContent>> for AnySyncMessageLikeEvent
unstable-msc3381
only.Source§fn from(
c: SyncMessageLikeEvent<PollStartEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<PollStartEventContent>, ) -> AnySyncMessageLikeEvent
Source§impl From<SyncMessageLikeEvent<ReactionEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<ReactionEventContent>> for AnySyncMessageLikeEvent
Source§fn from(
c: SyncMessageLikeEvent<ReactionEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<ReactionEventContent>, ) -> AnySyncMessageLikeEvent
Source§impl From<SyncMessageLikeEvent<RoomEncryptedEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<RoomEncryptedEventContent>> for AnySyncMessageLikeEvent
Source§fn from(
c: SyncMessageLikeEvent<RoomEncryptedEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<RoomEncryptedEventContent>, ) -> AnySyncMessageLikeEvent
Source§impl From<SyncMessageLikeEvent<RoomMessageEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<RoomMessageEventContent>> for AnySyncMessageLikeEvent
Source§fn from(
c: SyncMessageLikeEvent<RoomMessageEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<RoomMessageEventContent>, ) -> AnySyncMessageLikeEvent
Source§impl From<SyncMessageLikeEvent<StickerEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<StickerEventContent>> for AnySyncMessageLikeEvent
Source§fn from(c: SyncMessageLikeEvent<StickerEventContent>) -> AnySyncMessageLikeEvent
fn from(c: SyncMessageLikeEvent<StickerEventContent>) -> AnySyncMessageLikeEvent
Source§impl From<SyncMessageLikeEvent<UnstablePollEndEventContent>> for AnySyncMessageLikeEvent
Available on crate feature unstable-msc3381
only.
impl From<SyncMessageLikeEvent<UnstablePollEndEventContent>> for AnySyncMessageLikeEvent
unstable-msc3381
only.Source§fn from(
c: SyncMessageLikeEvent<UnstablePollEndEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<UnstablePollEndEventContent>, ) -> AnySyncMessageLikeEvent
Source§impl From<SyncMessageLikeEvent<UnstablePollResponseEventContent>> for AnySyncMessageLikeEvent
Available on crate feature unstable-msc3381
only.
impl From<SyncMessageLikeEvent<UnstablePollResponseEventContent>> for AnySyncMessageLikeEvent
unstable-msc3381
only.Source§fn from(
c: SyncMessageLikeEvent<UnstablePollResponseEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<UnstablePollResponseEventContent>, ) -> AnySyncMessageLikeEvent
Source§impl From<SyncMessageLikeEvent<UnstablePollStartEventContent>> for AnySyncMessageLikeEvent
Available on crate feature unstable-msc3381
only.
impl From<SyncMessageLikeEvent<UnstablePollStartEventContent>> for AnySyncMessageLikeEvent
unstable-msc3381
only.