Enum email::MimeMultipartType [] [src]

pub enum MimeMultipartType {
    Mixed,
    Alternative,
    Digest,
    Parallel,
}

Marks the type of a multipart message

Variants

Mixed

Entries which are independent.

This value is the default.

As defined by Section 5.1.3 of RFC 2046

Alternative

Entries which are interchangeable, such that the system can choose whichever is "best" for its use.

As defined by Section 5.1.4 of RFC 2046

Digest

Entries are (typically) a collection of messages.

As defined by Section 5.1.5 of RFC 2046

Parallel

Entry order does not matter, and could be displayed simultaneously.

As defined by Section 5.1.6 of RFC 2046

Methods

impl MimeMultipartType

fn from_content_type(ct: MimeContentType) -> Option<MimeMultipartType>

Returns the appropriate MimeMultipartType for the given MimeContentType

fn to_content_type(&self) -> MimeContentType

Returns a MimeContentType that represents this multipart type.

Trait Implementations

Derived Implementations

impl Copy for MimeMultipartType

impl Clone for MimeMultipartType

fn clone(&self) -> MimeMultipartType

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

impl Debug for MimeMultipartType

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

impl PartialEq for MimeMultipartType

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

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

impl Eq for MimeMultipartType