Enum mailparse::DispositionType[][src]

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

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)

Tuple Fields

0: String

Extension type to hold any disposition not explicitly enumerated.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.