pub struct JmapEmail {Show 26 fields
pub id: Option<String>,
pub blob_id: Option<String>,
pub thread_id: Option<String>,
pub mailbox_ids: Option<BTreeMap<String, bool>>,
pub keywords: Option<BTreeMap<String, bool>>,
pub size: Option<u64>,
pub received_at: Option<String>,
pub message_id: Option<Vec<String>>,
pub in_reply_to: Option<Vec<String>>,
pub references: Option<Vec<String>>,
pub sender: Option<Vec<JmapEmailAddress>>,
pub from: Option<Vec<JmapEmailAddress>>,
pub to: Option<Vec<JmapEmailAddress>>,
pub cc: Option<Vec<JmapEmailAddress>>,
pub bcc: Option<Vec<JmapEmailAddress>>,
pub reply_to: Option<Vec<JmapEmailAddress>>,
pub subject: Option<String>,
pub sent_at: Option<String>,
pub body_structure: Option<JmapEmailBodyPart>,
pub body_values: Option<BTreeMap<String, JmapEmailBodyValue>>,
pub text_body: Option<Vec<JmapEmailBodyPart>>,
pub html_body: Option<Vec<JmapEmailBodyPart>>,
pub attachments: Option<Vec<JmapEmailBodyPart>>,
pub has_attachment: Option<bool>,
pub preview: Option<String>,
pub headers: Option<Vec<JmapEmailHeader>>,
}Expand description
A JMAP Email object (RFC 8621 §4.1).
Fields§
§id: Option<String>§blob_id: Option<String>Blob ID for the raw RFC 5322 message.
thread_id: Option<String>§mailbox_ids: Option<BTreeMap<String, bool>>{ mailbox-id -> true } for each mailbox containing the email.
keywords: Option<BTreeMap<String, bool>>{ keyword -> true }. Standard: $seen, $flagged, $answered,
$draft.
size: Option<u64>Size of the raw RFC 5322 message, in bytes.
received_at: Option<String>RFC 3339 receive time.
message_id: Option<Vec<String>>§in_reply_to: Option<Vec<String>>§references: Option<Vec<String>>§sender: Option<Vec<JmapEmailAddress>>§from: Option<Vec<JmapEmailAddress>>§to: Option<Vec<JmapEmailAddress>>§cc: Option<Vec<JmapEmailAddress>>§bcc: Option<Vec<JmapEmailAddress>>§reply_to: Option<Vec<JmapEmailAddress>>§subject: Option<String>§sent_at: Option<String>Date header as an RFC 3339 string.
body_structure: Option<JmapEmailBodyPart>§body_values: Option<BTreeMap<String, JmapEmailBodyValue>>{ part-id -> body } for text parts.
text_body: Option<Vec<JmapEmailBodyPart>>§html_body: Option<Vec<JmapEmailBodyPart>>§attachments: Option<Vec<JmapEmailBodyPart>>§has_attachment: Option<bool>§preview: Option<String>Short plaintext preview (up to 256 chars).
headers: Option<Vec<JmapEmailHeader>>Raw headers in order of appearance.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JmapEmail
impl<'de> Deserialize<'de> for JmapEmail
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
Auto Trait Implementations§
impl Freeze for JmapEmail
impl RefUnwindSafe for JmapEmail
impl Send for JmapEmail
impl Sync for JmapEmail
impl Unpin for JmapEmail
impl UnsafeUnpin for JmapEmail
impl UnwindSafe for JmapEmail
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