Struct mail_parser::MessageHeader[][src]

pub struct MessageHeader<'x> {
Show 36 fields pub bcc: Address<'x>, pub cc: Address<'x>, pub comments: Option<Vec<Cow<'x, str>>>, pub date: Option<DateTime>, pub from: Address<'x>, pub in_reply_to: Option<Vec<Cow<'x, str>>>, pub keywords: Option<Vec<Cow<'x, str>>>, pub list_archive: Address<'x>, pub list_help: Address<'x>, pub list_id: Address<'x>, pub list_owner: Address<'x>, pub list_post: Address<'x>, pub list_subscribe: Address<'x>, pub list_unsubscribe: Address<'x>, pub message_id: Option<Cow<'x, str>>, pub mime_version: Option<Cow<'x, str>>, pub received: Option<Vec<Cow<'x, str>>>, pub references: Option<Vec<Cow<'x, str>>>, pub reply_to: Address<'x>, pub resent_bcc: Address<'x>, pub resent_cc: Address<'x>, pub resent_date: Option<Vec<DateTime>>, pub resent_from: Address<'x>, pub resent_message_id: Option<Vec<Cow<'x, str>>>, pub resent_sender: Address<'x>, pub resent_to: Address<'x>, pub return_path: Option<Vec<Cow<'x, str>>>, pub sender: Address<'x>, pub subject: Option<Cow<'x, str>>, pub to: Address<'x>, pub content_description: Option<Cow<'x, str>>, pub content_disposition: Option<ContentType<'x>>, pub content_id: Option<Cow<'x, str>>, pub content_transfer_encoding: Option<Cow<'x, str>>, pub content_type: Option<ContentType<'x>>, pub others: HashMap<&'x str, Vec<Cow<'x, str>>>,
}
Expand description

An RFC5322 message header.

Fields

bcc: Address<'x>cc: Address<'x>comments: Option<Vec<Cow<'x, str>>>date: Option<DateTime>from: Address<'x>in_reply_to: Option<Vec<Cow<'x, str>>>keywords: Option<Vec<Cow<'x, str>>>list_archive: Address<'x>list_help: Address<'x>list_id: Address<'x>list_owner: Address<'x>list_post: Address<'x>list_subscribe: Address<'x>list_unsubscribe: Address<'x>message_id: Option<Cow<'x, str>>mime_version: Option<Cow<'x, str>>received: Option<Vec<Cow<'x, str>>>references: Option<Vec<Cow<'x, str>>>reply_to: Address<'x>resent_bcc: Address<'x>resent_cc: Address<'x>resent_date: Option<Vec<DateTime>>resent_from: Address<'x>resent_message_id: Option<Vec<Cow<'x, str>>>resent_sender: Address<'x>resent_to: Address<'x>return_path: Option<Vec<Cow<'x, str>>>sender: Address<'x>subject: Option<Cow<'x, str>>to: Address<'x>content_description: Option<Cow<'x, str>>content_disposition: Option<ContentType<'x>>content_id: Option<Cow<'x, str>>content_transfer_encoding: Option<Cow<'x, str>>content_type: Option<ContentType<'x>>others: HashMap<&'x str, Vec<Cow<'x, str>>>

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

fn set_list_post(&mut self, stream: &MessageStream<'x>)

Content-Description MIME header

Content-Disposition MIME header

Content-ID MIME header

Content-Transfer-Encoding MIME header

Content-Type MIME header

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

This method tests for !=.

Serialize this value into the given Serde serializer. 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

Performs the conversion.

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.