Struct ruma_common::events::typing::TypingEventContent
source · pub struct TypingEventContent {
pub user_ids: Vec<OwnedUserId>,
}Available on crate feature
events only.Expand description
The content of an m.typing event.
Informs the client who is currently typing in a given room.
Fields§
§user_ids: Vec<OwnedUserId>The list of user IDs typing in this room, if any.
Implementations§
source§impl TypingEventContent
impl TypingEventContent
sourcepub fn new(user_ids: Vec<OwnedUserId>) -> Self
pub fn new(user_ids: Vec<OwnedUserId>) -> Self
Creates a new TypingEventContent with the given user IDs.
Trait Implementations§
source§impl Clone for TypingEventContent
impl Clone for TypingEventContent
source§fn clone(&self) -> TypingEventContent
fn clone(&self) -> TypingEventContent
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 moresource§impl Debug for TypingEventContent
impl Debug for TypingEventContent
source§impl Default for TypingEventContent
impl Default for TypingEventContent
source§fn default() -> TypingEventContent
fn default() -> TypingEventContent
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TypingEventContent
impl<'de> Deserialize<'de> for TypingEventContent
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl EventContent for TypingEventContent
impl EventContent for TypingEventContent
§type EventType = EphemeralRoomEventType
type EventType = EphemeralRoomEventType
The Rust enum for the event kind’s known types.
source§fn event_type(&self) -> Self::EventType
fn event_type(&self) -> Self::EventType
Get the event’s type, like
m.room.message.source§impl From<TypingEventContent> for AnyEphemeralRoomEventContent
impl From<TypingEventContent> for AnyEphemeralRoomEventContent
source§fn from(c: TypingEventContent) -> Self
fn from(c: TypingEventContent) -> Self
Converts to this type from the input type.