pub struct ReadReceiptAdded {
pub room_id: OwnedRoomId,
pub user_id: OwnedUserId,
pub event_id: OwnedEventId,
pub receipt_type: ReceiptType,
pub thread: ReceiptThread,
pub ts: MilliSecondsSinceUnixEpoch,
pub provenance: EventProvenance,
pub member_servers: Vec<OwnedServerName>,
}Expand description
A user’s read receipt was recorded in a room.
Fields§
§room_id: OwnedRoomIdThe room the receipt was recorded in.
user_id: OwnedUserIdThe user the receipt belongs to.
event_id: OwnedEventIdThe event acknowledged “up to”.
receipt_type: ReceiptTypeWhether the receipt is public or private. Only public receipts are federated.
thread: ReceiptThreadThe thread the receipt applies to.
[ReceiptThread::Unthreaded] has no string form and serialises as
null, which its own Deserialize rejects. The unthreaded case
therefore has to travel as the field’s absence, which is the same shape
ruma gives Receipt::thread.
ts: MilliSecondsSinceUnixEpochWhen the receipt was made.
provenance: EventProvenanceWhere the receipt came from.
member_servers: Vec<OwnedServerName>The homeservers with a member in the room, including our own.
Trait Implementations§
Source§impl Clone for ReadReceiptAdded
impl Clone for ReadReceiptAdded
Source§fn clone(&self) -> ReadReceiptAdded
fn clone(&self) -> ReadReceiptAdded
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReadReceiptAdded
impl Debug for ReadReceiptAdded
Source§impl Deduplicate for ReadReceiptAdded
impl Deduplicate for ReadReceiptAdded
Source§impl<'de> Deserialize<'de> for ReadReceiptAdded
impl<'de> Deserialize<'de> for ReadReceiptAdded
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 Event for ReadReceiptAdded
impl Event for ReadReceiptAdded
Source§const SUBJECT: &'static str = "room-service.events.read_receipt_added.v1"
const SUBJECT: &'static str = "room-service.events.read_receipt_added.v1"
The NATS subject pattern this event type lives under. Read more
Source§const COMPATIBLE_SUBJECTS: &'static [&'static str]
const COMPATIBLE_SUBJECTS: &'static [&'static str]
Subjects of older compatible versions of this event type. Read more
Source§fn subject(&self) -> Cow<'static, str>
fn subject(&self) -> Cow<'static, str>
The concrete subject this instance is published to. Read more
Auto Trait Implementations§
impl Freeze for ReadReceiptAdded
impl RefUnwindSafe for ReadReceiptAdded
impl Send for ReadReceiptAdded
impl Sync for ReadReceiptAdded
impl Unpin for ReadReceiptAdded
impl UnsafeUnpin for ReadReceiptAdded
impl UnwindSafe for ReadReceiptAdded
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more