pub enum ContentDisposition {
Inline,
Attachment(Filename),
}
Expand description
A Content-Disposition
header, defined in RFC6266.
The Content-Disposition response header field is used to convey additional information about how to process the response payload, and also can be used to attach additional metadata, such as the filename to use when saving the response payload locally.
FormData
is not included as it is not supposed to be used
Variants§
Inline
Tells that content should be displayed inside web page.
Attachment(Filename)
Tells that content should be downloaded.
Trait Implementations§
Source§impl Debug for ContentDisposition
impl Debug for ContentDisposition
Auto Trait Implementations§
impl Freeze for ContentDisposition
impl RefUnwindSafe for ContentDisposition
impl Send for ContentDisposition
impl Sync for ContentDisposition
impl Unpin for ContentDisposition
impl UnwindSafe for ContentDisposition
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