#[non_exhaustive]pub enum AnySyncMessageLikeEvent {
Show 26 variants
CallAnswer(SyncMessageLikeEvent<CallAnswerEventContent>),
CallInvite(SyncMessageLikeEvent<CallInviteEventContent>),
CallHangup(SyncMessageLikeEvent<CallHangupEventContent>),
CallCandidates(SyncMessageLikeEvent<CallCandidatesEventContent>),
CallNegotiate(SyncMessageLikeEvent<CallNegotiateEventContent>),
CallReject(SyncMessageLikeEvent<CallRejectEventContent>),
CallSelectAnswer(SyncMessageLikeEvent<CallSelectAnswerEventContent>),
KeyVerificationReady(SyncMessageLikeEvent<KeyVerificationReadyEventContent>),
KeyVerificationStart(SyncMessageLikeEvent<KeyVerificationStartEventContent>),
KeyVerificationCancel(SyncMessageLikeEvent<KeyVerificationCancelEventContent>),
KeyVerificationAccept(SyncMessageLikeEvent<KeyVerificationAcceptEventContent>),
KeyVerificationKey(SyncMessageLikeEvent<KeyVerificationKeyEventContent>),
KeyVerificationMac(SyncMessageLikeEvent<KeyVerificationMacEventContent>),
KeyVerificationDone(SyncMessageLikeEvent<KeyVerificationDoneEventContent>),
Message(SyncMessageLikeEvent<MessageEventContent>),
PollStart(SyncMessageLikeEvent<PollStartEventContent>),
UnstablePollStart(SyncMessageLikeEvent<UnstablePollStartEventContent>),
PollResponse(SyncMessageLikeEvent<PollResponseEventContent>),
UnstablePollResponse(SyncMessageLikeEvent<UnstablePollResponseEventContent>),
PollEnd(SyncMessageLikeEvent<PollEndEventContent>),
UnstablePollEnd(SyncMessageLikeEvent<UnstablePollEndEventContent>),
Reaction(SyncMessageLikeEvent<ReactionEventContent>),
RoomEncrypted(SyncMessageLikeEvent<RoomEncryptedEventContent>),
RoomMessage(SyncMessageLikeEvent<RoomMessageEventContent>),
RoomRedaction(SyncRoomRedactionEvent),
Sticker(SyncMessageLikeEvent<StickerEventContent>),
}
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
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
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
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
Implementations§
§impl AnySyncMessageLikeEvent
impl AnySyncMessageLikeEvent
pub fn event_type(&self) -> MessageLikeEventType
pub fn event_type(&self) -> MessageLikeEventType
Returns the type
of this event.
pub 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.
pub fn origin_server_ts(&self) -> MilliSecondsSinceUnixEpoch
pub fn origin_server_ts(&self) -> MilliSecondsSinceUnixEpoch
Returns this event’s origin_server_ts
field.
pub fn relations(&self) -> BundledMessageLikeRelations<AnySyncMessageLikeEvent>
pub fn relations(&self) -> BundledMessageLikeRelations<AnySyncMessageLikeEvent>
Returns this event’s relations
from inside unsigned
.
pub 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.
§impl AnySyncMessageLikeEvent
impl AnySyncMessageLikeEvent
pub 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§
§impl Clone for AnySyncMessageLikeEvent
impl Clone for AnySyncMessageLikeEvent
§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§impl Debug for AnySyncMessageLikeEvent
impl Debug for AnySyncMessageLikeEvent
§impl<'de> Deserialize<'de> for AnySyncMessageLikeEvent
impl<'de> Deserialize<'de> for AnySyncMessageLikeEvent
§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>,
§impl From<AnyMessageLikeEvent> for AnySyncMessageLikeEvent
impl From<AnyMessageLikeEvent> for AnySyncMessageLikeEvent
§fn from(event: AnyMessageLikeEvent) -> AnySyncMessageLikeEvent
fn from(event: AnyMessageLikeEvent) -> AnySyncMessageLikeEvent
§impl From<AnySyncMessageLikeEvent> for AnySyncTimelineEvent
impl From<AnySyncMessageLikeEvent> for AnySyncTimelineEvent
§fn from(c: AnySyncMessageLikeEvent) -> AnySyncTimelineEvent
fn from(c: AnySyncMessageLikeEvent) -> AnySyncTimelineEvent
§impl From<SyncMessageLikeEvent<CallAnswerEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<CallAnswerEventContent>> for AnySyncMessageLikeEvent
§fn from(
c: SyncMessageLikeEvent<CallAnswerEventContent>
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<CallAnswerEventContent> ) -> AnySyncMessageLikeEvent
§impl From<SyncMessageLikeEvent<CallCandidatesEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<CallCandidatesEventContent>> for AnySyncMessageLikeEvent
§fn from(
c: SyncMessageLikeEvent<CallCandidatesEventContent>
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<CallCandidatesEventContent> ) -> AnySyncMessageLikeEvent
§impl From<SyncMessageLikeEvent<CallHangupEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<CallHangupEventContent>> for AnySyncMessageLikeEvent
§fn from(
c: SyncMessageLikeEvent<CallHangupEventContent>
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<CallHangupEventContent> ) -> AnySyncMessageLikeEvent
§impl From<SyncMessageLikeEvent<CallInviteEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<CallInviteEventContent>> for AnySyncMessageLikeEvent
§fn from(
c: SyncMessageLikeEvent<CallInviteEventContent>
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<CallInviteEventContent> ) -> AnySyncMessageLikeEvent
§impl From<SyncMessageLikeEvent<CallNegotiateEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<CallNegotiateEventContent>> for AnySyncMessageLikeEvent
§fn from(
c: SyncMessageLikeEvent<CallNegotiateEventContent>
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<CallNegotiateEventContent> ) -> AnySyncMessageLikeEvent
§impl From<SyncMessageLikeEvent<CallRejectEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<CallRejectEventContent>> for AnySyncMessageLikeEvent
§fn from(
c: SyncMessageLikeEvent<CallRejectEventContent>
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<CallRejectEventContent> ) -> AnySyncMessageLikeEvent
§impl From<SyncMessageLikeEvent<CallSelectAnswerEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<CallSelectAnswerEventContent>> for AnySyncMessageLikeEvent
§fn from(
c: SyncMessageLikeEvent<CallSelectAnswerEventContent>
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<CallSelectAnswerEventContent> ) -> AnySyncMessageLikeEvent
§impl From<SyncMessageLikeEvent<KeyVerificationAcceptEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<KeyVerificationAcceptEventContent>> for AnySyncMessageLikeEvent
§fn from(
c: SyncMessageLikeEvent<KeyVerificationAcceptEventContent>
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<KeyVerificationAcceptEventContent> ) -> AnySyncMessageLikeEvent
§impl From<SyncMessageLikeEvent<KeyVerificationCancelEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<KeyVerificationCancelEventContent>> for AnySyncMessageLikeEvent
§fn from(
c: SyncMessageLikeEvent<KeyVerificationCancelEventContent>
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<KeyVerificationCancelEventContent> ) -> AnySyncMessageLikeEvent
§impl From<SyncMessageLikeEvent<KeyVerificationDoneEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<KeyVerificationDoneEventContent>> for AnySyncMessageLikeEvent
§fn from(
c: SyncMessageLikeEvent<KeyVerificationDoneEventContent>
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<KeyVerificationDoneEventContent> ) -> AnySyncMessageLikeEvent
§impl From<SyncMessageLikeEvent<KeyVerificationKeyEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<KeyVerificationKeyEventContent>> for AnySyncMessageLikeEvent
§fn from(
c: SyncMessageLikeEvent<KeyVerificationKeyEventContent>
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<KeyVerificationKeyEventContent> ) -> AnySyncMessageLikeEvent
§impl From<SyncMessageLikeEvent<KeyVerificationMacEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<KeyVerificationMacEventContent>> for AnySyncMessageLikeEvent
§fn from(
c: SyncMessageLikeEvent<KeyVerificationMacEventContent>
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<KeyVerificationMacEventContent> ) -> AnySyncMessageLikeEvent
§impl From<SyncMessageLikeEvent<KeyVerificationReadyEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<KeyVerificationReadyEventContent>> for AnySyncMessageLikeEvent
§fn from(
c: SyncMessageLikeEvent<KeyVerificationReadyEventContent>
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<KeyVerificationReadyEventContent> ) -> AnySyncMessageLikeEvent
§impl From<SyncMessageLikeEvent<KeyVerificationStartEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<KeyVerificationStartEventContent>> for AnySyncMessageLikeEvent
§fn from(
c: SyncMessageLikeEvent<KeyVerificationStartEventContent>
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<KeyVerificationStartEventContent> ) -> AnySyncMessageLikeEvent
§impl From<SyncMessageLikeEvent<MessageEventContent>> for AnySyncMessageLikeEvent
Available on crate feature unstable-msc1767
only.
impl From<SyncMessageLikeEvent<MessageEventContent>> for AnySyncMessageLikeEvent
unstable-msc1767
only.§fn from(c: SyncMessageLikeEvent<MessageEventContent>) -> AnySyncMessageLikeEvent
fn from(c: SyncMessageLikeEvent<MessageEventContent>) -> AnySyncMessageLikeEvent
§impl From<SyncMessageLikeEvent<PollEndEventContent>> for AnySyncMessageLikeEvent
Available on crate feature unstable-msc3381
only.
impl From<SyncMessageLikeEvent<PollEndEventContent>> for AnySyncMessageLikeEvent
unstable-msc3381
only.§fn from(c: SyncMessageLikeEvent<PollEndEventContent>) -> AnySyncMessageLikeEvent
fn from(c: SyncMessageLikeEvent<PollEndEventContent>) -> AnySyncMessageLikeEvent
§impl From<SyncMessageLikeEvent<PollResponseEventContent>> for AnySyncMessageLikeEvent
Available on crate feature unstable-msc3381
only.
impl From<SyncMessageLikeEvent<PollResponseEventContent>> for AnySyncMessageLikeEvent
unstable-msc3381
only.§fn from(
c: SyncMessageLikeEvent<PollResponseEventContent>
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<PollResponseEventContent> ) -> AnySyncMessageLikeEvent
§impl From<SyncMessageLikeEvent<PollStartEventContent>> for AnySyncMessageLikeEvent
Available on crate feature unstable-msc3381
only.
impl From<SyncMessageLikeEvent<PollStartEventContent>> for AnySyncMessageLikeEvent
unstable-msc3381
only.§fn from(
c: SyncMessageLikeEvent<PollStartEventContent>
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<PollStartEventContent> ) -> AnySyncMessageLikeEvent
§impl From<SyncMessageLikeEvent<ReactionEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<ReactionEventContent>> for AnySyncMessageLikeEvent
§fn from(
c: SyncMessageLikeEvent<ReactionEventContent>
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<ReactionEventContent> ) -> AnySyncMessageLikeEvent
§impl From<SyncMessageLikeEvent<RoomEncryptedEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<RoomEncryptedEventContent>> for AnySyncMessageLikeEvent
§fn from(
c: SyncMessageLikeEvent<RoomEncryptedEventContent>
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<RoomEncryptedEventContent> ) -> AnySyncMessageLikeEvent
§impl From<SyncMessageLikeEvent<RoomMessageEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<RoomMessageEventContent>> for AnySyncMessageLikeEvent
§fn from(
c: SyncMessageLikeEvent<RoomMessageEventContent>
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<RoomMessageEventContent> ) -> AnySyncMessageLikeEvent
§impl From<SyncMessageLikeEvent<StickerEventContent>> for AnySyncMessageLikeEvent
impl From<SyncMessageLikeEvent<StickerEventContent>> for AnySyncMessageLikeEvent
§fn from(c: SyncMessageLikeEvent<StickerEventContent>) -> AnySyncMessageLikeEvent
fn from(c: SyncMessageLikeEvent<StickerEventContent>) -> AnySyncMessageLikeEvent
§impl From<SyncMessageLikeEvent<UnstablePollEndEventContent>> for AnySyncMessageLikeEvent
Available on crate feature unstable-msc3381
only.
impl From<SyncMessageLikeEvent<UnstablePollEndEventContent>> for AnySyncMessageLikeEvent
unstable-msc3381
only.§fn from(
c: SyncMessageLikeEvent<UnstablePollEndEventContent>
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<UnstablePollEndEventContent> ) -> AnySyncMessageLikeEvent
§impl From<SyncMessageLikeEvent<UnstablePollResponseEventContent>> for AnySyncMessageLikeEvent
Available on crate feature unstable-msc3381
only.
impl From<SyncMessageLikeEvent<UnstablePollResponseEventContent>> for AnySyncMessageLikeEvent
unstable-msc3381
only.§fn from(
c: SyncMessageLikeEvent<UnstablePollResponseEventContent>
) -> AnySyncMessageLikeEvent
fn from( c: SyncMessageLikeEvent<UnstablePollResponseEventContent> ) -> AnySyncMessageLikeEvent
§impl From<SyncMessageLikeEvent<UnstablePollStartEventContent>> for AnySyncMessageLikeEvent
Available on crate feature unstable-msc3381
only.
impl From<SyncMessageLikeEvent<UnstablePollStartEventContent>> for AnySyncMessageLikeEvent
unstable-msc3381
only.