Struct email_format::Email [] [src]

pub struct Email { /* fields omitted */ }

Methods

impl Email
[src]

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

Create a lettre::SimpleSendableEmail from this Email

Trait Implementations

impl Debug for Email
[src]

Formats the value using the given formatter.

impl Clone for Email
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Parsable for Email
[src]

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

impl Streamable for Email
[src]

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

impl Display for Email
[src]

Formats the value using the given formatter. Read more