Struct mail_parser::Part
source · [−]pub struct Part<'x, T> {
pub headers_rfc: RfcHeaders<'x>,
pub headers_raw: RawHeaders<'x>,
pub is_encoding_problem: bool,
pub body: T,
}Expand description
Part of the message.
Fields
headers_rfc: RfcHeaders<'x>headers_raw: RawHeaders<'x>is_encoding_problem: boolbody: TImplementations
pub fn new(
headers_rfc: RfcHeaders<'x>,
headers_raw: RawHeaders<'x>,
body: T,
is_encoding_problem: bool
) -> Self
Parse the message attachment and return a Message object.
Trait Implementations
Returns the body part’s contents as a u8 slice
Returns the body part’s contents as a str
Returns the body part’s contents as a u8 slice
Returns the body part’s contents as a str
Returns the body part’s contents as a u8 slice
Returns the body part’s contents as a str
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
Returns the Content-Description field
Returns the Content-Disposition field
Returns the Content-ID field
Returns the Content-Encoding field
Returns the Content-Type field
Returns the Content-Language field
Returns the Content-Location field
Returns the attachment name, if any.