Enum edge::header::Preference [] [src]

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

Prefer contains a list of these preferences.

Variants

RespondAsync

"respond-async"

ReturnRepresentation

"return=representation"

ReturnMinimal

"return=minimal"

HandlingStrict

"handling=strict"

HandlingLeniant

"handling=leniant"

Wait

"wait=delta"

Extension

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 Display for Preference

fn fmt(&self, f: &mut Formatter) -> Result<(), Error>

impl FromStr for Preference

type Err = Option<u32::Err>

fn from_str(s: &str) -> Result<Preference, Option<u32::Err>>

Derived Implementations

impl Debug for Preference

fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>

impl Clone for Preference

fn clone(&self) -> Preference

1.0.0fn clone_from(&mut self, source: &Self)

impl PartialEq<Preference> for Preference

fn eq(&self, __arg_0: &Preference) -> bool

fn ne(&self, __arg_0: &Preference) -> bool