git-subtree-dir: ruma-events git-subtree-mainline: d59a616e2c363507a89c92f34aa67e86ee2cfb49 git-subtree-split: 00692d532e26f58d48ead9589dc823403c6e59a5
22 lines
713 B
Rust
22 lines
713 B
Rust
//! Types for the *m.fully_read* event.
|
|
|
|
use ruma_events_macros::EphemeralRoomEventContent;
|
|
use ruma_identifiers::EventId;
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
use crate::EphemeralRoomEvent;
|
|
|
|
/// 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 = EphemeralRoomEvent<FullyReadEventContent>;
|
|
|
|
/// The payload for `FullyReadEvent`.
|
|
#[derive(Clone, Debug, Deserialize, Serialize, EphemeralRoomEventContent)]
|
|
#[ruma_event(type = "m.fully_read")]
|
|
pub struct FullyReadEventContent {
|
|
/// The event the user's read marker is located at in the room.
|
|
pub event_id: EventId,
|
|
}
|