pub struct Thread {Show 18 fields
pub thread_id: String,
pub inbox_id: Option<String>,
pub labels: Vec<String>,
pub timestamp: Option<String>,
pub received_timestamp: Option<String>,
pub sent_timestamp: Option<String>,
pub senders: Vec<String>,
pub recipients: Vec<String>,
pub subject: Option<String>,
pub preview: Option<String>,
pub attachments: Vec<Attachment>,
pub last_message_id: Option<String>,
pub message_count: Option<u64>,
pub size: Option<u64>,
pub updated_at: Option<String>,
pub created_at: Option<String>,
pub messages: Vec<Message>,
pub highlights: Option<Value>,
}Expand description
A conversation thread. List items omit messages; the get-thread shape
includes them and search results carry highlights; every optional field
defaults so all three parse into this one type.
Fields§
§thread_id: StringUnique thread id.
inbox_id: Option<String>Inbox the thread belongs to.
labels: Vec<String>Labels on the thread.
timestamp: Option<String>Timestamp of the most recent activity (RFC 3339).
received_timestamp: Option<String>Timestamp of the most recent received message (RFC 3339).
sent_timestamp: Option<String>Timestamp of the most recent sent message (RFC 3339).
senders: Vec<String>Distinct sender addresses across the thread.
recipients: Vec<String>Distinct recipient addresses across the thread.
subject: Option<String>Subject line.
preview: Option<String>Short preview of the latest message.
attachments: Vec<Attachment>Attachments across the thread.
last_message_id: Option<String>Id of the most recent message.
message_count: Option<u64>Number of messages in the thread.
size: Option<u64>Total size of the thread in bytes.
updated_at: Option<String>Timestamp the thread was last updated (RFC 3339).
created_at: Option<String>Timestamp the thread was created (RFC 3339).
messages: Vec<Message>Full messages, present in get-thread responses.
highlights: Option<Value>Search-highlight fragments, present in search responses.