Enum iron::headers::Preference [] [src]

pub enum Preference {
    RespondAsync,
    ReturnRepresentation,
    ReturnMinimal,
    HandlingStrict,
    HandlingLeniant,
    Wait(u32),
    Extension(StringStringVec<(String, String)>),
}

Prefer contains a list of these preferences.

Variants

"respond-async"

"return=representation"

"return=minimal"

"handling=strict"

"handling=leniant"

"wait=delta"

Extension preferences. Always has a value, if none is specified it is just "". A preference can also have a list of parameters.

Trait Implementations

impl Debug for Preference

Formats the value using the given formatter.

impl Clone for Preference

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq<Preference> for Preference

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Display for Preference

Formats the value using the given formatter.

impl FromStr for Preference