[][src]Enum yukikaze::header::ContentDisposition

pub enum ContentDisposition {
    Inline,
    Attachment(Filename),
    FormData(Option<String>, Filename),
}

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.

Variants

Inline

Tells that content should be displayed inside web page.

Attachment(Filename)

Tells that content should be downloaded.

FormData(Option<String>, Filename)

Tells that content is field of form with name and filename

Note

This is an extension that can be used only inside of multipart body, it is not expected value for header.

Trait Implementations

impl Debug for ContentDisposition[src]

impl Display for ContentDisposition[src]

impl FromStr for ContentDisposition[src]

type Err = ParseError

The associated error which can be returned from parsing.

Auto Trait Implementations

impl Sync for ContentDisposition

impl Send for ContentDisposition

impl Unpin for ContentDisposition

impl UnwindSafe for ContentDisposition

impl RefUnwindSafe for ContentDisposition

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self