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>>)
Any text/* part
Html(Part<'x, Cow<'x, str>>)
A text/html part
Binary(Part<'x, Cow<'x, [u8]>>)
Any other part type that is not text.
InlineBinary(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
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 !=
.