pub struct JmapEmailBodyPart {
pub part_id: Option<String>,
pub blob_id: Option<String>,
pub size: Option<u64>,
pub name: Option<String>,
pub type: Option<String>,
pub charset: Option<String>,
pub disposition: Option<String>,
pub cid: Option<String>,
pub language: Option<Vec<String>>,
pub location: Option<String>,
pub sub_parts: Option<Vec<JmapEmailBodyPart>>,
pub headers: Option<Vec<JmapEmailHeader>>,
}Expand description
A MIME body part descriptor.
Fields§
§part_id: Option<String>Part id, scoped to the message.
blob_id: Option<String>Blob id to download the decoded part content.
size: Option<u64>Size of the decoded part content, in bytes.
name: Option<String>Filename from Content-Disposition or Content-Type.
type: Option<String>The Content-Type media type.
charset: Option<String>The Content-Type charset parameter.
disposition: Option<String>inline or attachment.
cid: Option<String>The Content-Id value, without angle brackets.
language: Option<Vec<String>>The Content-Language values.
location: Option<String>The Content-Location value.
sub_parts: Option<Vec<JmapEmailBodyPart>>Sub-parts (multipart only).
headers: Option<Vec<JmapEmailHeader>>Raw headers of the part.
Trait Implementations§
Source§impl Clone for JmapEmailBodyPart
impl Clone for JmapEmailBodyPart
Source§fn clone(&self) -> JmapEmailBodyPart
fn clone(&self) -> JmapEmailBodyPart
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 JmapEmailBodyPart
impl Debug for JmapEmailBodyPart
Source§impl Default for JmapEmailBodyPart
impl Default for JmapEmailBodyPart
Source§fn default() -> JmapEmailBodyPart
fn default() -> JmapEmailBodyPart
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for JmapEmailBodyPart
impl<'de> Deserialize<'de> for JmapEmailBodyPart
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 JmapEmailBodyPart
impl RefUnwindSafe for JmapEmailBodyPart
impl Send for JmapEmailBodyPart
impl Sync for JmapEmailBodyPart
impl Unpin for JmapEmailBodyPart
impl UnsafeUnpin for JmapEmailBodyPart
impl UnwindSafe for JmapEmailBodyPart
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