Enum mailparse::DispositionType
source · 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)
Extension type to hold any disposition not explicitly enumerated.
Trait Implementations§
source§impl Clone for DispositionType
impl Clone for DispositionType
source§fn clone(&self) -> DispositionType
fn clone(&self) -> DispositionType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DispositionType
impl Debug for DispositionType
source§impl Default for DispositionType
impl Default for DispositionType
source§impl PartialEq for DispositionType
impl PartialEq for DispositionType
source§fn eq(&self, other: &DispositionType) -> bool
fn eq(&self, other: &DispositionType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DispositionType
Auto Trait Implementations§
impl Freeze for DispositionType
impl RefUnwindSafe for DispositionType
impl Send for DispositionType
impl Sync for DispositionType
impl Unpin for DispositionType
impl UnwindSafe for DispositionType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more