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.

Returns a reference to the parsed Message object.

Returns true is the message has been parsed. Call MessageAttachment::parse_raw when this method returns false, otherwise use MessageAttachment::as_ref.

Trait Implementations

Returns the body part’s contents as a u8 slice

Returns true when the body part MIME type is text/*

Returns true when the part is not text

Returns the body part’s contents as a str

Returns the body part’s length

Returns true when the body part is empty

Returns the body part’s contents as a u8 slice

Returns the body part’s contents as a str

Returns true when the body part MIME type is text/*

Returns true when the part is not text

Returns the body part’s length

Returns true when the body part is empty

Returns the body part’s contents as a u8 slice

Returns the body part’s contents as a str

Returns true when the body part MIME type is text/*

Returns true when the part is not text

Returns the body part’s length

Returns true when the body part is empty

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. 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.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.