pub enum Preference {
RespondAsync,
ReturnRepresentation,
ReturnMinimal,
HandlingStrict,
HandlingLenient,
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”
HandlingLenient
“handling=lenient”
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
)