io_jmap/rfc8621/thread/types.rs
1//! JMAP Thread types (RFC 8621 §3).
2
3use alloc::{string::String, vec::Vec};
4use serde::{Deserialize, Serialize};
5
6/// A JMAP Thread object (RFC 8621 §3.1).
7///
8/// A Thread is a set of Email objects that share the same root
9/// `Message-ID` and in-reply-to chain.
10#[derive(Clone, Debug, Serialize, Deserialize)]
11#[serde(rename_all = "camelCase")]
12pub struct JmapThread {
13 /// The server-assigned ID for this thread.
14 pub id: String,
15
16 /// Ordered list of email IDs in this thread, oldest first.
17 pub email_ids: Vec<String>,
18}