[][src]Enum email::mimeheaders::MimeContentTransferEncoding

pub enum MimeContentTransferEncoding {
    Identity,
    QuotedPrintable,
    Base64,
}

Special header type for the Content-Transfer-Encoding header.

Variants

Identity

Message content is not encoded in any way.

QuotedPrintable

Content transfered using the quoted-printable encoding.

This encoding is defined in RFC 2045 Section 6.7

Base64

Content transfered as BASE64

This encoding is defined in RFC 2045 Section 6.8

Methods

impl MimeContentTransferEncoding[src]

pub fn decode(self, input: &str) -> Option<Vec<u8>>[src]

Decode the input string with this transfer encoding.

Note that this will return a clone of the input's bytes if the transfer encoding is the Identity encoding. [unstable]

Trait Implementations

impl Clone for MimeContentTransferEncoding[src]

impl Copy for MimeContentTransferEncoding[src]

impl Debug for MimeContentTransferEncoding[src]

impl Eq for MimeContentTransferEncoding[src]

impl FromHeader for MimeContentTransferEncoding[src]

impl PartialEq<MimeContentTransferEncoding> for MimeContentTransferEncoding[src]

impl StructuralEq for MimeContentTransferEncoding[src]

impl StructuralPartialEq for MimeContentTransferEncoding[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,