io-jmap 0.1.0

JMAP client library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! JMAP Thread types (RFC 8621 §3).

use alloc::{string::String, vec::Vec};
use serde::{Deserialize, Serialize};

/// A JMAP Thread object (RFC 8621 §3.1).
///
/// A Thread is a set of Email objects that share the same root
/// `Message-ID` and in-reply-to chain.
#[derive(Clone, Debug, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct JmapThread {
    /// The server-assigned ID for this thread.
    pub id: String,

    /// Ordered list of email IDs in this thread, oldest first.
    pub email_ids: Vec<String>,
}