pub struct UserAgent<'a> {
pub family: Cow<'a, str>,
pub major: Option<Cow<'a, str>>,
pub minor: Option<Cow<'a, str>>,
pub patch: Option<Cow<'a, str>>,
}Expand description
Describes the family as well as the major, minor, and patch versions of a user agent client.
Fields§
§family: Cow<'a, str>The family of the user agent client, for example Chrome.
major: Option<Cow<'a, str>>The major version of the user agent client.
minor: Option<Cow<'a, str>>The minor version of the user agent client.
patch: Option<Cow<'a, str>>The patch version of the user agent client.
Trait Implementations§
impl<'a> Eq for UserAgent<'a>
impl<'a> StructuralPartialEq for UserAgent<'a>
Auto Trait Implementations§
impl<'a> Freeze for UserAgent<'a>
impl<'a> RefUnwindSafe for UserAgent<'a>
impl<'a> Send for UserAgent<'a>
impl<'a> Sync for UserAgent<'a>
impl<'a> Unpin for UserAgent<'a>
impl<'a> UnsafeUnpin for UserAgent<'a>
impl<'a> UnwindSafe for UserAgent<'a>
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more