pub struct Email { /* private fields */ }

Implementations

Create a new email structure. The From address and Date fields are required in all valid emails, thus you must pass these in.

Replace the Date field in the email

Fetch the Date field from the email

Replace the From field in the email

Fetch the From field from the email

Set or replace the Sender field in the email

Fetch the Sender field from the email

Remove the Sender field from the email

Set or replace the Reply-To field in the email

Fetch the Reply-To field from the email

Remove the Reply-To field from the email

Set or replace the To field in the email

Fetch the To field from the email

Remove the To field from the email

Set or replace the Cc field in the email

Fetch the Cc field from the email

Remove the Cc field from the email

Set or replace the Bcc field in the email

Fetch the Bcc field from the email

Remove the Bcc field from the email

Set or replace the Message-ID field in the email

Fetch the Message-ID field from the email

Remove the Message-ID field from the email

Set or replace the In-Reply-To field in the email

Fetch the In-Reply-To field from the email

Remove the In-Reply-To field from the email

Set or replace the References field in the email

Fetch the References field from the email

Remove the References field from the email

Set or replace the Subject field in the email

Fetch the Subject field from the email

Remove the Subject field from the email

Add a Comments field in the email. This may be in addition to existing Comments fields.

Fetch all Comments fields from the email

Remove all Comments fields from the email

Add a Keywords field in the email. This may be in addition to existing Keywords fields.

Fetch all Keywords fields from the email

Remove all Keywords fields from the email

Add an optional field to the email. This may be in addition to existing optional fields.

Fetch all optional fields from the email

Clear all optional fields from the email

Set or replace the Body in the email

Fetch the Body from the email

Remove the Body from the email, leaving an empty body

Stream the email into a byte vector and return that

Stream the email into a byte vector, convert to a String, and return that

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

Formats the value using the given formatter. Read more

Parse the object off of the beginning of the input. If found, returns Some object, and a slice containing the remainer of the input. Read more

Serializes and sends the content out to w, returning the number of bytes written.

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

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.

The type returned in the event of a conversion error.

Performs the conversion.