[][src]Enum mailparse::body::Body

pub enum Body<'a> {
    Base64(EncodedBody<'a>),
    QuotedPrintable(EncodedBody<'a>),
    SevenBit(TextBody<'a>),
    EightBit(TextBody<'a>),
    Binary(BinaryBody<'a>),
}

Represents the body of an email (or mail subpart)

Variants

Base64(EncodedBody<'a>)

A body with 'base64' Content-Transfer-Encoding.

QuotedPrintable(EncodedBody<'a>)

A body with 'quoted-printable' Content-Transfer-Encoding.

SevenBit(TextBody<'a>)

A body with '7bit' Content-Transfer-Encoding.

EightBit(TextBody<'a>)

A body with '8bit' Content-Transfer-Encoding.

Binary(BinaryBody<'a>)

A body with 'binary' Content-Transfer-Encoding.

Methods

impl<'a> Body<'a>[src]

pub fn new(
    body: &'a [u8],
    ctype: &'a ParsedContentType,
    transfer_encoding: &Option<String>
) -> Body<'a>
[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Body<'a>

impl<'a> Send for Body<'a>

impl<'a> Sync for Body<'a>

impl<'a> Unpin for Body<'a>

impl<'a> UnwindSafe for Body<'a>

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.