#[non_exhaustive]pub struct EmailBodyPart {Show 13 fields
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>>,
pub extra: Map<String, Value>,
}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/*".
extra: Map<String, Value>Catch-all for vendor / site / private extension fields not covered by the typed fields above. Preserves unknown fields across deserialize/serialize round-trip per workspace extras-preservation policy (see workspace AGENTS.md).
Trait Implementations§
Source§impl Clone for EmailBodyPart
impl Clone for EmailBodyPart
Source§fn clone(&self) -> EmailBodyPart
fn clone(&self) -> EmailBodyPart
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EmailBodyPart
impl Debug for EmailBodyPart
Source§impl Default for EmailBodyPart
impl Default for EmailBodyPart
Source§fn default() -> EmailBodyPart
fn default() -> EmailBodyPart
Source§impl<'de> Deserialize<'de> for EmailBodyPart
impl<'de> Deserialize<'de> for EmailBodyPart
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>,
impl Eq for EmailBodyPart
Source§impl PartialEq for EmailBodyPart
impl PartialEq for EmailBodyPart
Source§fn eq(&self, other: &EmailBodyPart) -> bool
fn eq(&self, other: &EmailBodyPart) -> bool
self and other values to be equal, and is used by ==.