#[non_exhaustive]pub enum TimelineEventType {
Show 65 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,
PolicyRuleRoom,
PolicyRuleServer,
PolicyRuleUser,
RoomAliases,
RoomAvatar,
RoomCanonicalAlias,
RoomCreate,
RoomEncryption,
RoomGuestAccess,
RoomHistoryVisibility,
RoomJoinRules,
RoomLanguage,
RoomMember,
RoomName,
RoomPinnedEvents,
RoomPowerLevels,
RoomServerAcl,
RoomThirdPartyInvite,
RoomTombstone,
RoomTopic,
SpaceChild,
SpaceParent,
RoomImagePack,
BeaconInfo,
CallMember,
MemberHints,
}Expand description
The type of TimelineEvent 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
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
m.emote
This variant uses the unstable type org.matrix.msc1767.emote.
This variant can also be deserialized from the m.emote type.
Encrypted
m.encrypted
This variant uses the unstable type org.matrix.msc1767.encrypted.
This variant can also be deserialized from the m.encrypted type.
File
m.file
This variant uses the unstable type org.matrix.msc1767.file.
This variant can also be deserialized from the m.file type.
Image
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
m.location
Message
m.message
This variant uses the unstable type org.matrix.msc1767.message.
This variant can also be deserialized from the m.message type.
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
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
m.video
This variant uses the unstable type org.matrix.msc1767.video.
This variant can also be deserialized from the m.video type.
Voice
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
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
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
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.
PolicyRuleRoom
m.policy.rule.room
PolicyRuleServer
m.policy.rule.server
PolicyRuleUser
m.policy.rule.user
RoomAliases
m.room.aliases
RoomAvatar
m.room.avatar
RoomCanonicalAlias
m.room.canonical_alias
RoomCreate
m.room.create
RoomEncryption
m.room.encryption
RoomGuestAccess
m.room.guest_access
RoomHistoryVisibility
m.room.history_visibility
RoomJoinRules
m.room.join_rules
RoomLanguage
m.room.language
This variant uses the unstable type org.matrix.msc4334.room.language.
This variant can also be deserialized from the m.room.language type.
RoomMember
m.room.member
RoomName
m.room.name
RoomPinnedEvents
m.room.pinned_events
RoomPowerLevels
m.room.power_levels
RoomServerAcl
m.room.server_acl
RoomThirdPartyInvite
m.room.third_party_invite
RoomTombstone
m.room.tombstone
RoomTopic
m.room.topic
SpaceChild
m.space.child
SpaceParent
m.space.parent
RoomImagePack
m.image_pack
This variant uses the unstable type im.ponies.room_emotes.
This variant can also be deserialized from the m.image_pack type.
BeaconInfo
m.beacon_info
This variant uses the unstable type org.matrix.msc3672.beacon_info.
This variant can also be deserialized from the m.beacon_info type.
CallMember
m.call.member
This variant uses the unstable type org.matrix.msc3401.call.member.
This variant can also be deserialized from the m.call.member type.
MemberHints
m.member_hints
This variant uses the unstable type io.element.functional_members.
This variant can also be deserialized from the m.member_hints type.
Trait Implementations§
Source§impl Clone for TimelineEventType
impl Clone for TimelineEventType
Source§fn clone(&self) -> TimelineEventType
fn clone(&self) -> TimelineEventType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TimelineEventType
impl Debug for TimelineEventType
Source§impl<'de> Deserialize<'de> for TimelineEventType
impl<'de> Deserialize<'de> for TimelineEventType
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 TimelineEventType
impl Display for TimelineEventType
Source§impl From<&str> for TimelineEventType
impl From<&str> for TimelineEventType
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<StateEventType> for TimelineEventType
impl From<StateEventType> for TimelineEventType
Source§fn from(s: StateEventType) -> Self
fn from(s: StateEventType) -> Self
Source§impl From<String> for TimelineEventType
impl From<String> for TimelineEventType
Source§impl Hash for TimelineEventType
impl Hash for TimelineEventType
Source§impl Ord for TimelineEventType
impl Ord for TimelineEventType
Source§impl PartialEq for TimelineEventType
impl PartialEq for TimelineEventType
Source§impl PartialOrd for TimelineEventType
impl PartialOrd for TimelineEventType
Source§impl Serialize for TimelineEventType
impl Serialize for TimelineEventType
impl Eq for TimelineEventType
impl StructuralPartialEq for TimelineEventType
Auto Trait Implementations§
impl Freeze for TimelineEventType
impl RefUnwindSafe for TimelineEventType
impl Send for TimelineEventType
impl Sync for TimelineEventType
impl Unpin for TimelineEventType
impl UnwindSafe for TimelineEventType
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.