Enum ruma_common::events::MessageLikeEventType
source · [−]pub enum MessageLikeEventType {
Show 31 variants
Audio,
CallAnswer,
CallInvite,
CallHangup,
CallCandidates,
CallNegotiate,
CallReject,
CallSelectAnswer,
Emote,
File,
Image,
KeyVerificationReady,
KeyVerificationStart,
KeyVerificationCancel,
KeyVerificationAccept,
KeyVerificationKey,
KeyVerificationMac,
KeyVerificationDone,
Location,
Message,
Notice,
PollStart,
PollResponse,
PollEnd,
Reaction,
RoomEncrypted,
RoomMessage,
RoomRedaction,
Sticker,
Video,
Voice,
// some variants omitted
}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
Audio
unstable-msc3246 only.m.audio
CallAnswer
m.call.answer
CallInvite
m.call.invite
CallHangup
m.call.hangup
CallCandidates
m.call.candidates
CallNegotiate
unstable-msc2746 only.m.call.negotiate
CallReject
unstable-msc2746 only.m.call.reject
CallSelectAnswer
unstable-msc2746 only.m.call.select_answer
Emote
unstable-msc1767 only.m.emote
File
unstable-msc3551 only.m.file
Image
unstable-msc3552 only.m.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
unstable-msc3488 only.m.location
Message
unstable-msc1767 only.m.message
Notice
unstable-msc1767 only.m.notice
PollStart
unstable-msc3381 only.org.matrix.msc3381.poll.start
PollResponse
unstable-msc3381 only.org.matrix.msc3381.poll.response
PollEnd
unstable-msc3381 only.org.matrix.msc3381.poll.end
Reaction
unstable-msc2677 only.m.reaction
RoomEncrypted
m.room.encrypted
RoomMessage
m.room.message
RoomRedaction
m.room.redaction
Sticker
m.sticker
Video
unstable-msc3553 only.m.video
Voice
unstable-msc3245 only.m.voice
Trait Implementations
sourceimpl Clone for MessageLikeEventType
impl Clone for MessageLikeEventType
sourcefn clone(&self) -> MessageLikeEventType
fn clone(&self) -> MessageLikeEventType
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source. Read moresourceimpl Debug for MessageLikeEventType
impl Debug for MessageLikeEventType
sourceimpl<'de> Deserialize<'de> for MessageLikeEventType
impl<'de> Deserialize<'de> for MessageLikeEventType
sourcefn 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>,
sourceimpl Display for MessageLikeEventType
impl Display for MessageLikeEventType
sourceimpl From<&str> for MessageLikeEventType
impl From<&str> for MessageLikeEventType
sourceimpl From<MessageLikeEventType> for RoomEventType
impl From<MessageLikeEventType> for RoomEventType
sourcefn from(s: MessageLikeEventType) -> Self
fn from(s: MessageLikeEventType) -> Self
sourceimpl From<String> for MessageLikeEventType
impl From<String> for MessageLikeEventType
sourceimpl Hash for MessageLikeEventType
impl Hash for MessageLikeEventType
sourceimpl Ord for MessageLikeEventType
impl Ord for MessageLikeEventType
sourcefn cmp(&self, other: &MessageLikeEventType) -> Ordering
fn cmp(&self, other: &MessageLikeEventType) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
sourceimpl PartialEq<MessageLikeEventType> for MessageLikeEventType
impl PartialEq<MessageLikeEventType> for MessageLikeEventType
sourcefn eq(&self, other: &MessageLikeEventType) -> bool
fn eq(&self, other: &MessageLikeEventType) -> bool
sourceimpl PartialOrd<MessageLikeEventType> for MessageLikeEventType
impl PartialOrd<MessageLikeEventType> for MessageLikeEventType
sourcefn partial_cmp(&self, other: &MessageLikeEventType) -> Option<Ordering>
fn partial_cmp(&self, other: &MessageLikeEventType) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl Serialize for MessageLikeEventType
impl Serialize for MessageLikeEventType
impl Eq for MessageLikeEventType
impl StructuralEq for MessageLikeEventType
impl StructuralPartialEq for MessageLikeEventType
Auto Trait Implementations
impl RefUnwindSafe for MessageLikeEventType
impl Send for MessageLikeEventType
impl Sync for MessageLikeEventType
impl Unpin for MessageLikeEventType
impl UnwindSafe for MessageLikeEventType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.