Enum mail_parser::MessagePart[][src]

pub enum MessagePart<'x> {
    Text(TextPart<'x>),
    Binary(BinaryPart<'x>),
    InlineBinary(BinaryPart<'x>),
    Message(Message<'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, usually attachments.
  • InlineBinary: Same as the Binary variant but an inline part according to RFC 8621, Section 4.1.4
  • Message: A nested RFC5322 message.

Variants

Text(TextPart<'x>)

Any text/* part

Tuple Fields of Text

0: TextPart<'x>
Binary(BinaryPart<'x>)

Any other part type that is not text, usually attachments.

Tuple Fields of Binary

0: BinaryPart<'x>
InlineBinary(BinaryPart<'x>)

Same as the Binary variant but an inline part according to RFC 8621, Section 4.1.4

Tuple Fields of InlineBinary

0: BinaryPart<'x>
Message(Message<'x>)

A nested RFC5322 message.

Tuple Fields of Message

0: Message<'x>

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.