[][src]Enum crumble::Section

pub enum Section {
    Plain {
        body: Vec<u8>,
    },
    Multipart {
        headers: Vec<Header>,
        body: Vec<Box<Section>>,
    },
    Empty,
}

Representation of a section of a MIME document.

MIME sections can be some text; a header and some text or data; or nested combinations. This parser may produce empty sections.

Variants

Plain

Fields of Plain

body: Vec<u8>
Multipart

Fields of Multipart

headers: Vec<Header>body: Vec<Box<Section>>
Empty

Trait Implementations

impl PartialEq<Section> for Section[src]

impl ToString for Section[src]

impl Debug for Section[src]

Auto Trait Implementations

impl Send for Section

impl Unpin for Section

impl Sync for Section

impl UnwindSafe for Section

impl RefUnwindSafe for Section

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]