Enum ruma::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§
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<MessageLikeEventType> for MessageLikeEventType
impl PartialEq<MessageLikeEventType> for MessageLikeEventType
source§fn eq(&self, other: &MessageLikeEventType) -> bool
fn eq(&self, other: &MessageLikeEventType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<MessageLikeEventType> for MessageLikeEventType
impl PartialOrd<MessageLikeEventType> for MessageLikeEventType
source§fn partial_cmp(&self, other: &MessageLikeEventType) -> Option<Ordering>
fn partial_cmp(&self, other: &MessageLikeEventType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§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 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§
source§impl<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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.