pub struct Browser {
pub name: String,
pub min_version: Option<u32>,
pub max_version: Option<u32>,
pub http_version: HttpVersion,
}Expand description
A browser the headers may come from, with optional bounds on its major version.
Fields§
§name: Stringchrome, firefox, safari or edge.
min_version: Option<u32>The lowest major version, inclusive.
max_version: Option<u32>The highest major version, inclusive.
http_version: HttpVersionThe HTTP version the browser speaks.
Implementations§
Trait Implementations§
impl Eq for Browser
impl StructuralPartialEq for Browser
Auto Trait Implementations§
impl Freeze for Browser
impl RefUnwindSafe for Browser
impl Send for Browser
impl Sync for Browser
impl Unpin for Browser
impl UnsafeUnpin for Browser
impl UnwindSafe for Browser
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.