1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
//! Types for the *m.typing* event. use ruma_identifiers::{EventId, RoomId}; event! { /// Informs the client of the list of users currently typing. pub struct TypingEvent(TypingEventContent) { /// The unique identifier for the room associated with this event. pub room_id: RoomId } } /// The payload of a `TypingEvent`. #[derive(Clone, Debug, Deserialize, Serialize)] pub struct TypingEventContent { /// The list of user IDs typing in this room, if any. pub user_ids: Vec<EventId>, }