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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
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 !=
.