Enum hyper::header::Preference
source · pub enum Preference {
RespondAsync,
ReturnRepresentation,
ReturnMinimal,
HandlingStrict,
HandlingLeniant,
Wait(u32),
Extension(String, String, Vec<(String, String)>),
}
Expand description
Prefer contains a list of these preferences.
Variants§
RespondAsync
“respond-async”
ReturnRepresentation
“return=representation”
ReturnMinimal
“return=minimal”
HandlingStrict
“handling=strict”
HandlingLeniant
“handling=leniant”
Wait(u32)
“wait=delta”
Extension(String, String, Vec<(String, String)>)
Extension preferences. Always has a value, if none is specified it is just “”. A preference can also have a list of parameters.
Trait Implementations§
source§impl Clone for Preference
impl Clone for Preference
source§fn clone(&self) -> Preference
fn clone(&self) -> Preference
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more