pub enum MessageLikeEventType {
Show 37 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,
// some variants omitted
}
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§
Audio
org.matrix.msc1767.audio
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
CallSelectAnswer
m.call.select_answer
Emote
org.matrix.msc1767.emote
Encrypted
org.matrix.msc1767.encrypted
File
org.matrix.msc1767.file
Image
org.matrix.msc1767.image
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
m.location
Message
org.matrix.msc1767.message
PollStart
m.poll.start
UnstablePollStart
org.matrix.msc3381.poll.start
PollResponse
m.poll.response
UnstablePollResponse
org.matrix.msc3381.poll.response
PollEnd
m.poll.end
UnstablePollEnd
org.matrix.msc3381.poll.end
Beacon
org.matrix.msc3672.beacon
Reaction
m.reaction
RoomEncrypted
m.room.encrypted
RoomMessage
m.room.message
RoomRedaction
m.room.redaction
Sticker
m.sticker
Video
org.matrix.msc1767.video
Voice
org.matrix.msc3245.voice.v2
CallNotify
org.matrix.msc4075.call.notify
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<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::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§impl From<MessageLikeEventType> for TimelineEventType
impl From<MessageLikeEventType> for TimelineEventType
source§fn from(s: MessageLikeEventType) -> Self
fn from(s: MessageLikeEventType) -> Self
source§impl From<String> for MessageLikeEventType
impl From<String> for 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
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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.