pub struct ThreadSummary {Show 14 fields
pub thread_id: String,
pub entity_id: Option<String>,
pub entity_type: Option<UnifiedEntityType>,
pub contact_id: Option<String>,
pub display_name: String,
pub last_message_preview: String,
pub last_message_timestamp: u64,
pub unread_count: u32,
pub is_muted: bool,
pub is_dm: bool,
pub typing_users: Vec<String>,
pub is_pinned: bool,
pub contact_presence: Option<PresenceStatus>,
pub sync_state: SyncState,
}Expand description
Thread summary shown in thread list sidebar.
Fields§
§thread_id: StringUnique thread identifier.
entity_id: Option<String>Entity ID if this is an entity thread (channel, group, etc.).
entity_type: Option<UnifiedEntityType>Entity type for entity threads.
contact_id: Option<String>Contact ID for direct message threads.
display_name: StringDisplay name shown in thread list.
last_message_preview: StringPreview of the last message (truncated).
last_message_timestamp: u64Timestamp of last message in Unix milliseconds.
unread_count: u32Number of unread messages.
is_muted: boolWhether notifications are muted for this thread.
is_dm: boolWhether this is a direct message thread (1:1 conversation).
typing_users: Vec<String>Users currently typing in this thread.
is_pinned: boolWhether this thread is pinned to the top of the list.
contact_presence: Option<PresenceStatus>Presence status for DM threads (None for entity threads).
sync_state: SyncStateSynchronization state for this thread.
Trait Implementations§
Source§impl Clone for ThreadSummary
impl Clone for ThreadSummary
Source§fn clone(&self) -> ThreadSummary
fn clone(&self) -> ThreadSummary
Returns a duplicate of the value. Read more
1.0.0 · 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 ThreadSummary
impl Debug for ThreadSummary
Source§impl PartialEq for ThreadSummary
impl PartialEq for ThreadSummary
impl Eq for ThreadSummary
impl StructuralPartialEq for ThreadSummary
Auto Trait Implementations§
impl Freeze for ThreadSummary
impl RefUnwindSafe for ThreadSummary
impl Send for ThreadSummary
impl Sync for ThreadSummary
impl Unpin for ThreadSummary
impl UnsafeUnpin for ThreadSummary
impl UnwindSafe for ThreadSummary
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