Enum mail_parser::MessagePart[][src]

pub enum MessagePart<'x> {
    Text(Part<'x, Cow<'x, str>>),
    Html(Part<'x, Cow<'x, str>>),
    Binary(Part<'x, Cow<'x, [u8]>>),
    InlineBinary(Part<'x, Cow<'x, [u8]>>),
    Message(Part<'x, MessageAttachment<'x>>),
    Multipart(RfcHeaders<'x>),
}
Expand description

A text, binary or nested e-mail MIME message part.

  • Text: Any text/* part
  • Binary: Any other part type that is not text.
  • Message: Nested RFC5322 message.
  • MultiPart: Multipart part.

Variants

Text(Part<'x, Cow<'x, str>>)

Tuple Fields

0: Part<'x, Cow<'x, str>>

Any text/* part

Html(Part<'x, Cow<'x, str>>)

Tuple Fields

0: Part<'x, Cow<'x, str>>

A text/html part

Binary(Part<'x, Cow<'x, [u8]>>)

Tuple Fields

0: Part<'x, Cow<'x, [u8]>>

Any other part type that is not text.

InlineBinary(Part<'x, Cow<'x, [u8]>>)

Tuple Fields

0: Part<'x, Cow<'x, [u8]>>

Any inline binary data that.

Message(Part<'x, MessageAttachment<'x>>)

Tuple Fields

0: Part<'x, MessageAttachment<'x>>

Nested RFC5322 message.

Multipart(RfcHeaders<'x>)

Tuple Fields

0: RfcHeaders<'x>

Multipart part

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

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.