#[non_exhaustive]pub struct EmailBodyPart {
pub part_id: Option<String>,
pub blob_id: Option<Id>,
pub size: Option<u64>,
pub headers: Vec<EmailHeader>,
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<EmailBodyPart>>,
}Expand description
One MIME body part within an Email (RFC 8621 §4.1.4).
The sub_parts field is recursive: multipart bodies nest further
EmailBodyPart values.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.part_id: Option<String>Uniquely identifies this part within the Email (null for multipart/*).
blob_id: Option<Id>Blob id of the decoded part content (null for multipart/*).
size: Option<u64>Size in octets of the decoded content.
headers: Vec<EmailHeader>All header fields of the part in Raw form, in order.
name: Option<String>Decoded filename from Content-Disposition or Content-Type parameters.
type_: Option<String>MIME content type (e.g. "text/plain").
charset: Option<String>Charset parameter of the Content-Type header field.
disposition: Option<String>Value of the Content-Disposition header field (parameters stripped).
cid: Option<String>Content-Id value with CFWS and angle brackets removed.
language: Option<Vec<String>>Language tags from the Content-Language header field.
location: Option<String>URI from the Content-Location header field.
sub_parts: Option<Vec<EmailBodyPart>>Child parts when type_ is "multipart/*".
Trait Implementations§
Source§impl Clone for EmailBodyPart
impl Clone for EmailBodyPart
Source§fn clone(&self) -> EmailBodyPart
fn clone(&self) -> EmailBodyPart
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more