pub struct Ack {
pub message_id: MessageId,
pub reader: Address,
pub acked_at_unix_ms: u64,
}Expand description
Per-reader acknowledgement. Dedup key is (message_id, reader), never
the message alone – a room-addressed message has one ack per reader,
not one total. Ported from HarnessMailAckV1.
Fields§
§message_id: MessageId§reader: AddressThe exact address that acknowledged: a session’s own address if a
session acked, the account’s if an account did – so two sessions of
the same account track their own read state independently, the way
Matrix scopes read markers to a (user_id, device_id) pair rather
than to the account alone.
acked_at_unix_ms: u64Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Ack
impl<'de> Deserialize<'de> for Ack
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
impl Eq for Ack
impl StructuralPartialEq for Ack
Auto Trait Implementations§
impl Freeze for Ack
impl RefUnwindSafe for Ack
impl Send for Ack
impl Sync for Ack
impl Unpin for Ack
impl UnsafeUnpin for Ack
impl UnwindSafe for Ack
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