Enum mailparse::DispositionType [−][src]
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
InlineDefault value, indicating the content is to be displayed inline as part of the enclosing document.
AttachmentA disposition indicating the content is not meant for inline display, but whose content can be accessed for use.
FormDataA disposition indicating the content contains a form submission.
Extension(String)Extension type to hold any disposition not explicitly enumerated.
Trait Implementations
impl Debug for DispositionType[src]
impl Debug for DispositionTypefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for DispositionType[src]
impl Clone for DispositionTypefn clone(&self) -> DispositionType[src]
fn clone(&self) -> DispositionTypeReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl PartialEq for DispositionType[src]
impl PartialEq for DispositionTypefn eq(&self, other: &DispositionType) -> bool[src]
fn eq(&self, other: &DispositionType) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &DispositionType) -> bool[src]
fn ne(&self, other: &DispositionType) -> boolThis method tests for !=.
impl Default for DispositionType[src]
impl Default for DispositionTypeAuto Trait Implementations
impl Send for DispositionType
impl Send for DispositionTypeimpl Sync for DispositionType
impl Sync for DispositionType