pub enum AnyRoomAccountDataEventContent {
FullyRead(FullyReadEventContent),
Tag(TagEventContent),
// some variants omitted
}
Available on crate feature
events
only.Expand description
Any room account data event.
Variants
FullyRead(FullyReadEventContent)
m.fully_read
Tag(TagEventContent)
m.tag
Trait Implementations
sourceimpl Clone for AnyRoomAccountDataEventContent
impl Clone for AnyRoomAccountDataEventContent
sourcefn clone(&self) -> AnyRoomAccountDataEventContent
fn clone(&self) -> AnyRoomAccountDataEventContent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl EventContent for AnyRoomAccountDataEventContent
impl EventContent for AnyRoomAccountDataEventContent
type EventType = RoomAccountDataEventType
type EventType = RoomAccountDataEventType
The Rust enum for the event kind’s known types.
sourcefn event_type(&self) -> Self::EventType
fn event_type(&self) -> Self::EventType
Get the event’s type, like
m.room.message
.sourceimpl From<FullyReadEventContent> for AnyRoomAccountDataEventContent
impl From<FullyReadEventContent> for AnyRoomAccountDataEventContent
sourcefn from(c: FullyReadEventContent) -> Self
fn from(c: FullyReadEventContent) -> Self
Converts to this type from the input type.
sourceimpl From<TagEventContent> for AnyRoomAccountDataEventContent
impl From<TagEventContent> for AnyRoomAccountDataEventContent
sourcefn from(c: TagEventContent) -> Self
fn from(c: TagEventContent) -> Self
Converts to this type from the input type.
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
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
Mutably borrows from an owned value. Read more