pub enum PartKind<'m> {
Text,
Html,
Binary,
InlineBinary,
Multipart,
Message(MessageRef<'m>),
}Expand description
What a part contains.
Variants§
Text
A text part (any text/* except HTML, or a part without type). Also
a message/rfc822 part that is not transfer-encoded and whose nested
message was empty or had no header block (flagged
PartFlags::NO_BLANK_LINE), or was cut by the part limit
(PartFlags::LIMIT_REACHED).
Html
A text/html part.
Binary
A non-text part. Also a message/rfc822 part that was not parsed:
beyond the depth limit, or transfer-encoded and beyond the encoded
nesting limit, with encoded nested parsing turned off, or holding a
message that was empty or cut by the part limit.
InlineBinary
A non-text part marked to be rendered inline; see
MessagePart::is_inline.
Multipart
A multipart container; see MessagePart::children.
Message(MessageRef<'m>)
A nested message/rfc822 or message/global.
Trait Implementations§
Auto Trait Implementations§
impl<'m> Freeze for PartKind<'m>
impl<'m> RefUnwindSafe for PartKind<'m>
impl<'m> Send for PartKind<'m>
impl<'m> Sync for PartKind<'m>
impl<'m> Unpin for PartKind<'m>
impl<'m> UnsafeUnpin for PartKind<'m>
impl<'m> UnwindSafe for PartKind<'m>
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