pub enum Preference {
RespondAsync,
ReturnRepresentation,
ReturnMinimal,
HandlingStrict,
HandlingLeniant,
Wait(u32),
Extension(String, String, Vec<(String, String), Global>),
}
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), Global>)
Extension preferences. Always has a value, if none is specified it is just “”. A preference can also have a list of parameters.
Trait Implementations
sourceimpl Clone for Preference
impl Clone for Preference
sourcefn clone(&self) -> Preference
fn clone(&self) -> Preference
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Preference
impl Debug for Preference
sourceimpl Display for Preference
impl Display for Preference
sourceimpl FromStr for Preference
impl FromStr for Preference
sourceimpl PartialEq<Preference> for Preference
impl PartialEq<Preference> for Preference
sourcefn eq(&self, other: &Preference) -> bool
fn eq(&self, other: &Preference) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Preference) -> bool
fn ne(&self, other: &Preference) -> bool
This method tests for !=
.
impl StructuralPartialEq for Preference
Auto Trait Implementations
impl RefUnwindSafe for Preference
impl Send for Preference
impl Sync for Preference
impl Unpin for Preference
impl UnwindSafe for Preference
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
sourcefn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self
into a collection.
fn mapped<U, F, A>(self, f: F) -> SmallVec<A> where
F: FnMut(T) -> U,
A: Array<Item = U>,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more