Struct email_format::Email [] [src]

pub struct Email { /* fields omitted */ }

Methods

impl Email
[src]

[src]

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

[src]

Replace the Date field in the email

[src]

Fetch the Date field from the email

[src]

Replace the From field in the email

[src]

Fetch the From field from the email

[src]

Set or replace the Sender field in the email

[src]

Fetch the Sender field from the email

[src]

Remove the Sender field from the email

[src]

Set or replace the Reply-To field in the email

[src]

Fetch the Reply-To field from the email

[src]

Remove the Reply-To field from the email

[src]

Set or replace the To field in the email

[src]

Fetch the To field from the email

[src]

Remove the To field from the email

[src]

Set or replace the Cc field in the email

[src]

Fetch the Cc field from the email

[src]

Remove the Cc field from the email

[src]

Set or replace the Bcc field in the email

[src]

Fetch the Bcc field from the email

[src]

Remove the Bcc field from the email

[src]

Set or replace the Message-ID field in the email

[src]

Fetch the Message-ID field from the email

[src]

Remove the Message-ID field from the email

[src]

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

[src]

Fetch the In-Reply-To field from the email

[src]

Remove the In-Reply-To field from the email

[src]

Set or replace the References field in the email

[src]

Fetch the References field from the email

[src]

Remove the References field from the email

[src]

Set or replace the Subject field in the email

[src]

Fetch the Subject field from the email

[src]

Remove the Subject field from the email

[src]

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

[src]

Fetch all Comments fields from the email

[src]

Remove all Comments fields from the email

[src]

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

[src]

Fetch all Keywords fields from the email

[src]

Remove all Keywords fields from the email

[src]

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

[src]

Fetch all optional fields from the email

[src]

Clear all optional fields from the email

[src]

Set or replace the Body in the email

[src]

Fetch the Body from the email

[src]

Remove the Body from the email, leaving an empty body

[src]

Stream the email into a byte vector and return that

[src]

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

Trait Implementations

impl Debug for Email
[src]

[src]

Formats the value using the given formatter.

impl Clone for Email
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Parsable for Email
[src]

[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]

[src]

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

impl Display for Email
[src]

[src]

Formats the value using the given formatter. Read more