#[non_exhaustive]pub enum AnyMessageLikeEvent {
Show 39 variants
    Audio(MessageLikeEvent<AudioEventContent>),
    CallAnswer(MessageLikeEvent<CallAnswerEventContent>),
    CallInvite(MessageLikeEvent<CallInviteEventContent>),
    CallHangup(MessageLikeEvent<CallHangupEventContent>),
    CallCandidates(MessageLikeEvent<CallCandidatesEventContent>),
    CallNegotiate(MessageLikeEvent<CallNegotiateEventContent>),
    CallReject(MessageLikeEvent<CallRejectEventContent>),
    CallSdpStreamMetadataChanged(MessageLikeEvent<CallSdpStreamMetadataChangedEventContent>),
    CallSelectAnswer(MessageLikeEvent<CallSelectAnswerEventContent>),
    Emote(MessageLikeEvent<EmoteEventContent>),
    Encrypted(MessageLikeEvent<EncryptedEventContent>),
    File(MessageLikeEvent<FileEventContent>),
    Image(MessageLikeEvent<ImageEventContent>),
    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>),
    Video(MessageLikeEvent<VideoEventContent>),
    Voice(MessageLikeEvent<VoiceEventContent>),
    CallNotify(MessageLikeEvent<CallNotifyEventContent>),
    RtcNotification(MessageLikeEvent<RtcNotificationEventContent>),
    RtcDecline(MessageLikeEvent<RtcDeclineEventContent>),
}events only.Expand description
Any message-like event.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Audio(MessageLikeEvent<AudioEventContent>)
m.audio
This variant uses the unstable type org.matrix.msc1767.audio.
This variant can also be deserialized from the m.audio type.
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
Emote(MessageLikeEvent<EmoteEventContent>)
m.emote
This variant uses the unstable type org.matrix.msc1767.emote.
This variant can also be deserialized from the m.emote type.
Encrypted(MessageLikeEvent<EncryptedEventContent>)
m.encrypted
This variant uses the unstable type org.matrix.msc1767.encrypted.
This variant can also be deserialized from the m.encrypted type.
File(MessageLikeEvent<FileEventContent>)
m.file
This variant uses the unstable type org.matrix.msc1767.file.
This variant can also be deserialized from the m.file type.
Image(MessageLikeEvent<ImageEventContent>)
m.image
This variant uses the unstable type org.matrix.msc1767.image.
This variant can also be deserialized from the m.image type.
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>)
m.location
Message(MessageLikeEvent<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(MessageLikeEvent<PollStartEventContent>)
m.poll.start
UnstablePollStart(MessageLikeEvent<UnstablePollStartEventContent>)
org.matrix.msc3381.poll.start
PollResponse(MessageLikeEvent<PollResponseEventContent>)
m.poll.response
UnstablePollResponse(MessageLikeEvent<UnstablePollResponseEventContent>)
org.matrix.msc3381.poll.response
PollEnd(MessageLikeEvent<PollEndEventContent>)
m.poll.end
UnstablePollEnd(MessageLikeEvent<UnstablePollEndEventContent>)
org.matrix.msc3381.poll.end
Beacon(MessageLikeEvent<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(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
Video(MessageLikeEvent<VideoEventContent>)
m.video
This variant uses the unstable type org.matrix.msc1767.video.
This variant can also be deserialized from the m.video type.
Voice(MessageLikeEvent<VoiceEventContent>)
m.voice
This variant uses the unstable type org.matrix.msc3245.voice.v2.
This variant can also be deserialized from the m.voice type.
CallNotify(MessageLikeEvent<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.
RtcNotification(MessageLikeEvent<RtcNotificationEventContent>)
m.rtc.notification
This variant uses the unstable type org.matrix.msc4075.rtc.notification.
This variant can also be deserialized from the m.rtc.notification type.
RtcDecline(MessageLikeEvent<RtcDeclineEventContent>)
m.rtc.decline
This variant uses the unstable type org.matrix.msc4310.rtc.decline.
This variant can also be deserialized from the m.rtc.decline 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 is_redacted(&self) -> bool
 
pub fn is_redacted(&self) -> bool
Returns whether this event is redacted.
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 more