Enum mail_parser::PartType
source · pub enum PartType<'x> {
Text(Cow<'x, str>),
Html(Cow<'x, str>),
Binary(Cow<'x, [u8]>),
InlineBinary(Cow<'x, [u8]>),
Message(Message<'x>),
Multipart(Vec<MessagePartId>),
}
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(Cow<'x, str>)
Any text/* part
Html(Cow<'x, str>)
A text/html part
Binary(Cow<'x, [u8]>)
Any other part type that is not text.
InlineBinary(Cow<'x, [u8]>)
Any inline binary data that.
Message(Message<'x>)
Nested RFC5322 message.
Multipart(Vec<MessagePartId>)
Multipart part