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
sourceimpl Clone for DispositionType
impl Clone for DispositionType
sourcefn clone(&self) -> DispositionType
fn clone(&self) -> DispositionType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DispositionType
impl Debug for DispositionType
sourceimpl Display for DispositionType
impl Display for DispositionType
sourceimpl<'a> From<&'a str> for DispositionType
impl<'a> From<&'a str> for DispositionType
sourcefn from(origin: &'a str) -> DispositionType
fn from(origin: &'a str) -> DispositionType
Converts to this type from the input type.
sourceimpl PartialEq<DispositionType> for DispositionType
impl PartialEq<DispositionType> for DispositionType
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &DispositionType) -> bool
fn ne(&self, other: &DispositionType) -> bool
This method tests for !=
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more