Enum mail_parser::MessagePart [−][src]
pub enum MessagePart<'x> {
Text(TextPart<'x>),
Binary(BinaryPart<'x>),
Message(Message<'x>),
Multipart(Headers<'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(TextPart<'x>)
Tuple Fields
0: TextPart<'x>
Any text/* part
Binary(BinaryPart<'x>)
Tuple Fields
0: BinaryPart<'x>
Any other part type that is not text.
Message(Message<'x>)
Tuple Fields
0: Message<'x>
Nested RFC5322 message.
Multipart(Headers<'x>)
Tuple Fields
0: Headers<'x>
Multipart part
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 !=
.