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(MessageAttachment<'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(MessageAttachment<'x>)
Nested RFC5322 message.
Multipart(Vec<MessagePartId>)
Multipart part
Trait Implementations
sourceimpl<'de: 'x, 'x> Deserialize<'de> for PartType<'x>
impl<'de: 'x, 'x> Deserialize<'de> for PartType<'x>
sourcefn 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
sourceimpl<'x> PartialEq<PartType<'x>> for PartType<'x>
impl<'x> PartialEq<PartType<'x>> for PartType<'x>
impl<'x> StructuralPartialEq for PartType<'x>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more