Enum ruma::events::AnySyncMessageLikeEvent
source · #[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>),
}
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>)
m.location
Message(SyncMessageLikeEvent<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(SyncMessageLikeEvent<PollStartEventContent>)
m.poll.start
UnstablePollStart(SyncMessageLikeEvent<UnstablePollStartEventContent>)
org.matrix.msc3381.poll.start
PollResponse(SyncMessageLikeEvent<PollResponseEventContent>)
m.poll.response
UnstablePollResponse(SyncMessageLikeEvent<UnstablePollResponseEventContent>)
org.matrix.msc3381.poll.response
PollEnd(SyncMessageLikeEvent<PollEndEventContent>)
m.poll.end
UnstablePollEnd(SyncMessageLikeEvent<UnstablePollEndEventContent>)
org.matrix.msc3381.poll.end
Beacon(SyncMessageLikeEvent<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(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>)
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
impl From<SyncMessageLikeEvent<BeaconEventContent>> for AnySyncMessageLikeEvent
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
impl From<SyncMessageLikeEvent<CallNotifyEventContent>> for AnySyncMessageLikeEvent
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
impl From<SyncMessageLikeEvent<LocationEventContent>> for AnySyncMessageLikeEvent
source§fn from(
c: SyncMessageLikeEvent<LocationEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<LocationEventContent>, ) -> AnySyncMessageLikeEvent
source§impl From<SyncMessageLikeEvent<MessageEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<MessageEventContent>> for AnySyncMessageLikeEvent
source§fn from(c: SyncMessageLikeEvent<MessageEventContent>) -> AnySyncMessageLikeEvent
fn from(c: SyncMessageLikeEvent<MessageEventContent>) -> AnySyncMessageLikeEvent
source§impl From<SyncMessageLikeEvent<PollEndEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<PollEndEventContent>> for AnySyncMessageLikeEvent
source§fn from(c: SyncMessageLikeEvent<PollEndEventContent>) -> AnySyncMessageLikeEvent
fn from(c: SyncMessageLikeEvent<PollEndEventContent>) -> AnySyncMessageLikeEvent
source§impl From<SyncMessageLikeEvent<PollResponseEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<PollResponseEventContent>> for AnySyncMessageLikeEvent
source§fn from(
c: SyncMessageLikeEvent<PollResponseEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<PollResponseEventContent>, ) -> AnySyncMessageLikeEvent
source§impl From<SyncMessageLikeEvent<PollStartEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<PollStartEventContent>> for AnySyncMessageLikeEvent
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
impl From<SyncMessageLikeEvent<UnstablePollEndEventContent>> for AnySyncMessageLikeEvent
source§fn from(
c: SyncMessageLikeEvent<UnstablePollEndEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<UnstablePollEndEventContent>, ) -> AnySyncMessageLikeEvent
source§impl From<SyncMessageLikeEvent<UnstablePollResponseEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<UnstablePollResponseEventContent>> for AnySyncMessageLikeEvent
source§fn from(
c: SyncMessageLikeEvent<UnstablePollResponseEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<UnstablePollResponseEventContent>, ) -> AnySyncMessageLikeEvent
source§impl From<SyncMessageLikeEvent<UnstablePollStartEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<UnstablePollStartEventContent>> for AnySyncMessageLikeEvent
source§fn from(
c: SyncMessageLikeEvent<UnstablePollStartEventContent>,
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<UnstablePollStartEventContent>, ) -> AnySyncMessageLikeEvent
source§impl From<SyncRoomRedactionEvent> for AnySyncMessageLikeEvent
impl From<SyncRoomRedactionEvent> for AnySyncMessageLikeEvent
source§fn from(c: SyncRoomRedactionEvent) -> AnySyncMessageLikeEvent
fn from(c: SyncRoomRedactionEvent) -> AnySyncMessageLikeEvent
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
)