pub enum Preference {
Html,
Json,
Either,
}Expand description
What a client asked for in Accept.
Variants§
Html
A page: text/html or application/xhtml+xml is listed, and not behind JSON.
Json
Data: JSON is listed, and not behind HTML.
Either
No preference: no header, only wildcards, a tie, or neither type listed.
Trait Implementations§
Source§impl Clone for Preference
impl Clone for Preference
impl Copy for Preference
Source§impl Debug for Preference
impl Debug for Preference
impl Eq for Preference
Source§impl PartialEq for Preference
impl PartialEq for Preference
impl StructuralPartialEq for Preference
Auto Trait Implementations§
impl Forget for Preference
impl Freeze for Preference
impl Move for Preference
impl RefUnwindSafe for Preference
impl Send for Preference
impl Sync for Preference
impl Unpin for Preference
impl UnsafeUnpin 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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.