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

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

fn decode(&self, input: &String) -> Option<Vec<u8>>

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 FromHeader for MimeContentTransferEncoding

fn from_header(value: String) -> ParsingResult<MimeContentTransferEncoding>

Derived Implementations

impl Copy for MimeContentTransferEncoding

impl Clone for MimeContentTransferEncoding

fn clone(&self) -> MimeContentTransferEncoding

fn clone_from(&mut self, source: &Self)

impl Eq for MimeContentTransferEncoding

impl PartialEq for MimeContentTransferEncoding

fn eq(&self, __arg_0: &MimeContentTransferEncoding) -> bool

fn ne(&self, __arg_0: &MimeContentTransferEncoding) -> bool

impl Debug for MimeContentTransferEncoding

fn fmt(&self, __arg_0: &mut Formatter) -> Result