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