Skip to main content

JmapEmail

Struct JmapEmail 

Source
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>

The server-assigned email id.

§blob_id: Option<String>

Blob ID for the raw RFC 5322 message.

§thread_id: Option<String>

The id of the thread the email belongs to.

§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>>

The Message-ID header values.

§in_reply_to: Option<Vec<String>>

The In-Reply-To header values.

§references: Option<Vec<String>>

The References header values.

§sender: Option<Vec<JmapEmailAddress>>

The Sender header addresses.

§from: Option<Vec<JmapEmailAddress>>

The From header addresses.

§to: Option<Vec<JmapEmailAddress>>

The To header addresses.

§cc: Option<Vec<JmapEmailAddress>>

The Cc header addresses.

§bcc: Option<Vec<JmapEmailAddress>>

The Bcc header addresses.

§reply_to: Option<Vec<JmapEmailAddress>>

The Reply-To header addresses.

§subject: Option<String>

The Subject header value.

§sent_at: Option<String>

Date header as an RFC 3339 string.

§body_structure: Option<JmapEmailBodyPart>

The full MIME structure of the message.

§body_values: Option<BTreeMap<String, JmapEmailBodyValue>>

{ part-id -> body } for text parts.

§text_body: Option<Vec<JmapEmailBodyPart>>

The text/plain parts to display as the message body.

§html_body: Option<Vec<JmapEmailBodyPart>>

The text/html parts to display as the message body.

§attachments: Option<Vec<JmapEmailBodyPart>>

The parts to display as attachments.

§has_attachment: Option<bool>

Whether any part is an attachment.

§preview: Option<String>

Short plaintext preview (up to 256 chars).

§headers: Option<Vec<JmapEmailHeader>>

Raw headers in order of appearance.

Trait Implementations§

Source§

impl Clone for JmapEmail

Source§

fn clone(&self) -> JmapEmail

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for JmapEmail

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for JmapEmail

Source§

fn default() -> JmapEmail

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for JmapEmail

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for JmapEmail

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.