//! Types for the *m.fully_read* event. use ruma_events_macros::EventContent; use ruma_identifiers::EventId; use serde::{Deserialize, Serialize}; use crate::RoomAccountDataEvent; /// The current location of the user's read marker in a room. /// /// This event appears in the user's room account data for the room the marker is applicable /// for. pub type FullyReadEvent = RoomAccountDataEvent; /// The payload for `FullyReadEvent`. #[derive(Clone, Debug, Deserialize, Serialize, EventContent)] #[ruma_event(type = "m.fully_read", kind = RoomAccountData)] pub struct FullyReadEventContent { /// The event the user's read marker is located at in the room. pub event_id: EventId, }