Enum actix_web::http::header::DispositionType
source · pub enum DispositionType {
Inline,
Attachment,
FormData,
Ext(String),
}
Expand description
The implied disposition of the content of the HTTP body.
Variants§
Inline
Inline implies default processing.
Attachment
Attachment implies that the recipient should prompt the user to save the response locally, rather than process it normally (as per its media type).
FormData
Used in multipart/form-data as defined in RFC 7578 to carry the field name and optional filename.
Ext(String)
Extension type. Should be handled by recipients the same way as Attachment.
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 Display for DispositionType
impl Display for DispositionType
source§impl<'a> From<&'a str> for DispositionType
impl<'a> From<&'a str> for DispositionType
source§fn from(origin: &'a str) -> DispositionType
fn from(origin: &'a str) -> DispositionType
Converts to this type from the input type.
source§impl PartialEq<DispositionType> for DispositionType
impl PartialEq<DispositionType> 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 Eq for DispositionType
impl StructuralEq for DispositionType
impl StructuralPartialEq for DispositionType
Auto Trait Implementations§
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.