pub struct ChatStateSnapshot {
pub chat_id: InlineId,
pub dialog: Option<DialogRecord>,
pub deleted: bool,
pub deleted_message_ids: Vec<InlineId>,
pub reactions: Vec<StoredReaction>,
pub reaction_snapshot_message_ids: Vec<InlineId>,
pub read_state: Option<StoredReadState>,
pub participants: Vec<ChatParticipantRecord>,
pub participants_complete: bool,
}Expand description
Durable per-chat state that complements paged dialog/history queries during reconciliation.
Fields§
§chat_id: InlineIdInline chat ID represented by this snapshot.
dialog: Option<DialogRecord>Current dialog metadata, or None if the chat is deleted or unknown.
deleted: boolWhether the store has a durable chat deletion tombstone.
deleted_message_ids: Vec<InlineId>Message IDs known to have been deleted from this chat.
reactions: Vec<StoredReaction>Current reaction set known for the chat.
reaction_snapshot_message_ids: Vec<InlineId>Message IDs whose reaction set was observed as a complete snapshot, including messages with zero reactions.
read_state: Option<StoredReadState>Current read state known for the chat.
participants: Vec<ChatParticipantRecord>Current direct participant snapshot known for the chat.
participants_complete: boolWhether participants is a complete snapshot rather than only deltas.
Trait Implementations§
Source§impl Clone for ChatStateSnapshot
impl Clone for ChatStateSnapshot
Source§fn clone(&self) -> ChatStateSnapshot
fn clone(&self) -> ChatStateSnapshot
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 ChatStateSnapshot
impl Debug for ChatStateSnapshot
Source§impl<'de> Deserialize<'de> for ChatStateSnapshot
impl<'de> Deserialize<'de> for ChatStateSnapshot
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 ChatStateSnapshot
Source§impl PartialEq for ChatStateSnapshot
impl PartialEq for ChatStateSnapshot
Source§impl Serialize for ChatStateSnapshot
impl Serialize for ChatStateSnapshot
impl StructuralPartialEq for ChatStateSnapshot
Auto Trait Implementations§
impl Freeze for ChatStateSnapshot
impl RefUnwindSafe for ChatStateSnapshot
impl Send for ChatStateSnapshot
impl Sync for ChatStateSnapshot
impl Unpin for ChatStateSnapshot
impl UnsafeUnpin for ChatStateSnapshot
impl UnwindSafe for ChatStateSnapshot
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