[][src]Enum mailparse::DispositionType

pub enum DispositionType {
    Inline,
    Attachment,
    FormData,
    Extension(String),
}

The possible disposition types in a Content-Disposition header. A more comprehensive list of IANA-recognized types can be found at https://www.iana.org/assignments/cont-disp/cont-disp.xhtml. This library only enumerates the types most commonly found in email messages, and provides the Extension value for holding all other types.

Variants

Inline

Default value, indicating the content is to be displayed inline as part of the enclosing document.

Attachment

A disposition indicating the content is not meant for inline display, but whose content can be accessed for use.

FormData

A disposition indicating the content contains a form submission.

Extension(String)

Extension type to hold any disposition not explicitly enumerated.

Trait Implementations

impl Clone for DispositionType[src]

impl Debug for DispositionType[src]

impl Default for DispositionType[src]

impl PartialEq<DispositionType> for DispositionType[src]

impl StructuralPartialEq for DispositionType[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.