[][src]Enum email::MimeMultipartType

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

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

Encrypted

Two entries, the first of which explains the decryption process for the second body part.

As defined by Section 2.2 of RFC 1847

Parallel

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

As defined by Section 5.1.6 of RFC 2046

Signed

Two entries, the first of which is the content, the second is a digital signature of the first, including MIME headers.

As defined by Section 2.1 of RFC 1847

Methods

impl MimeMultipartType[src]

pub fn from_content_type(ct: MimeContentType) -> Option<MimeMultipartType>[src]

Returns the appropriate MimeMultipartType for the given MimeContentType

pub fn to_content_type(self) -> MimeContentType[src]

Returns a MimeContentType that represents this multipart type.

Trait Implementations

impl Clone for MimeMultipartType[src]

impl Copy for MimeMultipartType[src]

impl Debug for MimeMultipartType[src]

impl Eq for MimeMultipartType[src]

impl PartialEq<MimeMultipartType> for MimeMultipartType[src]

impl StructuralEq for MimeMultipartType[src]

impl StructuralPartialEq for MimeMultipartType[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>,