#[non_exhaustive]pub enum AnyRoomAccountDataEventContent {
FullyRead(FullyReadEventContent),
Tag(TagEventContent),
MarkedUnread(MarkedUnreadEventContent),
}
Expand description
Any room account data event.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
FullyRead(FullyReadEventContent)
m.fully_read
Tag(TagEventContent)
m.tag
MarkedUnread(MarkedUnreadEventContent)
Available on crate feature
unstable-msc2867
only.m.marked_unread
This variant uses the unstable type com.famedly.marked_unread
.
This variant can also be deserialized from the m.marked_unread
type.
Trait Implementations§
§impl Clone for AnyRoomAccountDataEventContent
impl Clone for AnyRoomAccountDataEventContent
§fn clone(&self) -> AnyRoomAccountDataEventContent
fn clone(&self) -> AnyRoomAccountDataEventContent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for AnyRoomAccountDataEventContent
impl Debug for AnyRoomAccountDataEventContent
§impl EventContent for AnyRoomAccountDataEventContent
impl EventContent for AnyRoomAccountDataEventContent
§type EventType = RoomAccountDataEventType
type EventType = RoomAccountDataEventType
The Rust enum for the event kind’s known types.
§fn event_type(
&self
) -> <AnyRoomAccountDataEventContent as EventContent>::EventType
fn event_type( &self ) -> <AnyRoomAccountDataEventContent as EventContent>::EventType
Get the event’s type, like
m.room.message
.§impl From<FullyReadEventContent> for AnyRoomAccountDataEventContent
impl From<FullyReadEventContent> for AnyRoomAccountDataEventContent
§fn from(c: FullyReadEventContent) -> AnyRoomAccountDataEventContent
fn from(c: FullyReadEventContent) -> AnyRoomAccountDataEventContent
Converts to this type from the input type.
§impl From<MarkedUnreadEventContent> for AnyRoomAccountDataEventContent
Available on crate feature unstable-msc2867
only.
impl From<MarkedUnreadEventContent> for AnyRoomAccountDataEventContent
Available on crate feature
unstable-msc2867
only.§fn from(c: MarkedUnreadEventContent) -> AnyRoomAccountDataEventContent
fn from(c: MarkedUnreadEventContent) -> AnyRoomAccountDataEventContent
Converts to this type from the input type.
§impl From<TagEventContent> for AnyRoomAccountDataEventContent
impl From<TagEventContent> for AnyRoomAccountDataEventContent
§fn from(c: TagEventContent) -> AnyRoomAccountDataEventContent
fn from(c: TagEventContent) -> AnyRoomAccountDataEventContent
Converts to this type from the input type.
§impl Serialize for AnyRoomAccountDataEventContent
impl Serialize for AnyRoomAccountDataEventContent
§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,
Serialize this value into the given Serde serializer. Read more
impl RoomAccountDataEventContent for AnyRoomAccountDataEventContent
Auto Trait Implementations§
impl RefUnwindSafe for AnyRoomAccountDataEventContent
impl Send for AnyRoomAccountDataEventContent
impl Sync for AnyRoomAccountDataEventContent
impl Unpin for AnyRoomAccountDataEventContent
impl UnwindSafe for AnyRoomAccountDataEventContent
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
Mutably borrows from an owned value. Read more
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§fn clone_handle(handle: Handle) -> Handle
fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>