pub struct Envelope<'a> {
    pub date: Option<Cow<'a, [u8]>>,
    pub subject: Option<Cow<'a, [u8]>>,
    pub from: Option<Vec<Address<'a>>>,
    pub sender: Option<Vec<Address<'a>>>,
    pub reply_to: Option<Vec<Address<'a>>>,
    pub to: Option<Vec<Address<'a>>>,
    pub cc: Option<Vec<Address<'a>>>,
    pub bcc: Option<Vec<Address<'a>>>,
    pub in_reply_to: Option<Cow<'a, [u8]>>,
    pub message_id: Option<Cow<'a, [u8]>>,
}
Expand description

An RFC 2822 envelope

See https://datatracker.ietf.org/doc/html/rfc2822#section-3.6 for more details.

Fields

date: Option<Cow<'a, [u8]>>subject: Option<Cow<'a, [u8]>>from: Option<Vec<Address<'a>>>

Author of the message; mailbox responsible for writing the message

sender: Option<Vec<Address<'a>>>

Mailbox of the agent responsible for the message’s transmission

reply_to: Option<Vec<Address<'a>>>

Mailbox that the author of the message suggests replies be sent to

to: Option<Vec<Address<'a>>>cc: Option<Vec<Address<'a>>>bcc: Option<Vec<Address<'a>>>in_reply_to: Option<Cow<'a, [u8]>>message_id: Option<Cow<'a, [u8]>>

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

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

This method tests for !=.

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 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.