Enum awc::http::header::DispositionType [−][src]
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 RFC7578 to carry the field name and the file name.
Ext(String)
Tuple Fields
0: String
Extension type. Should be handled by recipients the same way as Attachment
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more