Struct mail_parser::Part [−][src]
pub struct Part<'x, T> {
pub headers: RfcHeaders<'x>,
pub body: T,
}
Fields
headers: RfcHeaders<'x>
body: T
Implementations
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.