pub struct JmapBodyFields {
pub body_structure: EmailBodyPart,
pub text_body: Vec<EmailBodyPart>,
pub html_body: Vec<EmailBodyPart>,
pub attachments: Vec<EmailBodyPart>,
pub preview: Option<String>,
pub body_value_part_ids: Vec<String>,
}Expand description
The JMAP body fields derived from a parsed MIME message.
Returned by message_to_jmap_body. Each list mirrors the RFC 8621
§4.1.4 definitions. body_value_part_ids lists the part IDs the caller
should decode via mime_tree::decode_body_value and insert into the
bodyValues map of the JMAP Email response.
Fields§
§body_structure: EmailBodyPartFull MIME tree (RFC 8621 §4.1.4 bodyStructure).
text_body: Vec<EmailBodyPart>Text/plain display parts (RFC 8621 §4.1.4 textBody).
html_body: Vec<EmailBodyPart>Text/html display parts (RFC 8621 §4.1.4 htmlBody).
attachments: Vec<EmailBodyPart>Attachment and non-inline parts (RFC 8621 §4.1.4 attachments).
preview: Option<String>Short preview of the message body (RFC 8621 §4.1.4 preview).
body_value_part_ids: Vec<String>Part IDs whose body content should be decoded and surfaced in
bodyValues. Typically the union of textBody and htmlBody part IDs.
Trait Implementations§
Source§impl Clone for JmapBodyFields
impl Clone for JmapBodyFields
Source§fn clone(&self) -> JmapBodyFields
fn clone(&self) -> JmapBodyFields
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JmapBodyFields
impl Debug for JmapBodyFields
Source§impl PartialEq for JmapBodyFields
impl PartialEq for JmapBodyFields
Source§fn eq(&self, other: &JmapBodyFields) -> bool
fn eq(&self, other: &JmapBodyFields) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for JmapBodyFields
Auto Trait Implementations§
impl Freeze for JmapBodyFields
impl RefUnwindSafe for JmapBodyFields
impl Send for JmapBodyFields
impl Sync for JmapBodyFields
impl Unpin for JmapBodyFields
impl UnsafeUnpin for JmapBodyFields
impl UnwindSafe for JmapBodyFields
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