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 moresource§impl Debug for Preference
impl Debug for Preference
source§impl Display for Preference
impl Display for Preference
source§impl FromStr for Preference
impl FromStr for Preference
source§impl PartialEq for Preference
impl PartialEq for Preference
impl StructuralPartialEq for Preference
Auto Trait Implementations§
impl Freeze for Preference
impl RefUnwindSafe for Preference
impl Send for Preference
impl Sync for Preference
impl Unpin for Preference
impl UnwindSafe for Preference
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)