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
Implementations§
Trait Implementations§
source§impl<'x> PartialEq for PartType<'x>
impl<'x> PartialEq for PartType<'x>
impl<'x> StructuralPartialEq for PartType<'x>
Auto Trait Implementations§
impl<'x> Freeze for PartType<'x>
impl<'x> RefUnwindSafe for PartType<'x>
impl<'x> Send for PartType<'x>
impl<'x> Sync for PartType<'x>
impl<'x> Unpin for PartType<'x>
impl<'x> UnwindSafe for PartType<'x>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more