Struct mail_builder::mime::MimePart

source ·
pub struct MimePart<'x> {
    pub headers: Vec<(Cow<'x, str>, HeaderType<'x>)>,
    pub contents: BodyPart<'x>,
}
Expand description

MIME part of an e-mail.

Fields§

§headers: Vec<(Cow<'x, str>, HeaderType<'x>)>§contents: BodyPart<'x>

Implementations§

Create a custom MIME part.

Create a new multipart/* MIME part.

Create a new text/plain MIME part.

Create a new text/* MIME part.

Create a new text/html MIME part.

Create a new binary MIME part.

Set the attachment filename of a MIME part.

Set the MIME part as inline.

Set the Content-Language header of a MIME part.

Set the Content-ID header of a MIME part.

Set the Content-Location header of a MIME part.

Set custom headers of a MIME part.

Returns the part’s size

Add a body part to a multipart/* MIME part.

Write the MIME part to a writer.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. 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.