#[non_exhaustive]pub enum MessageLikeEventType {
Show 39 variants
Audio,
CallAnswer,
CallInvite,
CallHangup,
CallCandidates,
CallNegotiate,
CallReject,
CallSdpStreamMetadataChanged,
CallSelectAnswer,
Emote,
Encrypted,
File,
Image,
KeyVerificationReady,
KeyVerificationStart,
KeyVerificationCancel,
KeyVerificationAccept,
KeyVerificationKey,
KeyVerificationMac,
KeyVerificationDone,
Location,
Message,
PollStart,
UnstablePollStart,
PollResponse,
UnstablePollResponse,
PollEnd,
UnstablePollEnd,
Beacon,
Reaction,
RoomEncrypted,
RoomMessage,
RoomRedaction,
Sticker,
Video,
Voice,
CallNotify,
RtcNotification,
RtcDecline,
}events only.Expand description
The type of MessageLikeEvent this is.
This type can hold an arbitrary string. To build events with a custom type, convert it
from a string with ::from() / .into(). To check for events that are not available as a
documented variant here, use its string representation, obtained through .to_string().
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Audio
unstable-msc3927 only.m.audio
This variant uses the unstable type org.matrix.msc1767.audio.
This variant can also be deserialized from the m.audio type.
CallAnswer
m.call.answer
CallInvite
m.call.invite
CallHangup
m.call.hangup
CallCandidates
m.call.candidates
CallNegotiate
m.call.negotiate
CallReject
m.call.reject
CallSdpStreamMetadataChanged
m.call.sdp_stream_metadata_changed
This variant can also be deserialized from the org.matrix.call.sdp_stream_metadata_changed type.
CallSelectAnswer
m.call.select_answer
Emote
unstable-msc3954 only.m.emote
This variant uses the unstable type org.matrix.msc1767.emote.
This variant can also be deserialized from the m.emote type.
Encrypted
unstable-msc3956 only.m.encrypted
This variant uses the unstable type org.matrix.msc1767.encrypted.
This variant can also be deserialized from the m.encrypted type.
File
unstable-msc3551 only.m.file
This variant uses the unstable type org.matrix.msc1767.file.
This variant can also be deserialized from the m.file type.
Image
unstable-msc3552 only.m.image
This variant uses the unstable type org.matrix.msc1767.image.
This variant can also be deserialized from the m.image type.
KeyVerificationReady
m.key.verification.ready
KeyVerificationStart
m.key.verification.start
KeyVerificationCancel
m.key.verification.cancel
KeyVerificationAccept
m.key.verification.accept
KeyVerificationKey
m.key.verification.key
KeyVerificationMac
m.key.verification.mac
KeyVerificationDone
m.key.verification.done
Location
unstable-msc3488 only.m.location
Message
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
unstable-msc3381 only.m.poll.start
UnstablePollStart
unstable-msc3381 only.org.matrix.msc3381.poll.start
PollResponse
unstable-msc3381 only.m.poll.response
UnstablePollResponse
unstable-msc3381 only.org.matrix.msc3381.poll.response
PollEnd
unstable-msc3381 only.m.poll.end
UnstablePollEnd
unstable-msc3381 only.org.matrix.msc3381.poll.end
Beacon
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
m.reaction
RoomEncrypted
m.room.encrypted
RoomMessage
m.room.message
RoomRedaction
m.room.redaction
Sticker
m.sticker
Video
unstable-msc3553 only.m.video
This variant uses the unstable type org.matrix.msc1767.video.
This variant can also be deserialized from the m.video type.
Voice
unstable-msc3245 only.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
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.
RtcNotification
unstable-msc4075 only.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
unstable-msc4310 only.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.
Trait Implementations§
Source§impl Clone for MessageLikeEventType
impl Clone for MessageLikeEventType
Source§fn clone(&self) -> MessageLikeEventType
fn clone(&self) -> MessageLikeEventType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MessageLikeEventType
impl Debug for MessageLikeEventType
Source§impl<'de> Deserialize<'de> for MessageLikeEventType
impl<'de> Deserialize<'de> for MessageLikeEventType
Source§fn deserialize<D>(
deserializer: D,
) -> Result<MessageLikeEventType, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<MessageLikeEventType, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Source§impl Display for MessageLikeEventType
impl Display for MessageLikeEventType
Source§impl From<&str> for MessageLikeEventType
impl From<&str> for MessageLikeEventType
Source§fn from(s: &str) -> MessageLikeEventType
fn from(s: &str) -> MessageLikeEventType
Source§impl From<MessageLikeEventType> for TimelineEventType
impl From<MessageLikeEventType> for TimelineEventType
Source§fn from(s: MessageLikeEventType) -> TimelineEventType
fn from(s: MessageLikeEventType) -> TimelineEventType
Source§impl From<String> for MessageLikeEventType
impl From<String> for MessageLikeEventType
Source§fn from(s: String) -> MessageLikeEventType
fn from(s: String) -> MessageLikeEventType
Source§impl Hash for MessageLikeEventType
impl Hash for MessageLikeEventType
Source§impl Ord for MessageLikeEventType
impl Ord for MessageLikeEventType
Source§fn cmp(&self, other: &MessageLikeEventType) -> Ordering
fn cmp(&self, other: &MessageLikeEventType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for MessageLikeEventType
impl PartialEq for MessageLikeEventType
Source§impl PartialOrd for MessageLikeEventType
impl PartialOrd for MessageLikeEventType
Source§impl Serialize for MessageLikeEventType
impl Serialize for MessageLikeEventType
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
impl Eq for MessageLikeEventType
impl StructuralPartialEq for MessageLikeEventType
Auto Trait Implementations§
impl Freeze for MessageLikeEventType
impl RefUnwindSafe for MessageLikeEventType
impl Send for MessageLikeEventType
impl Sync for MessageLikeEventType
impl Unpin for MessageLikeEventType
impl UnwindSafe for MessageLikeEventType
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.