pub struct Client<'a> {
pub kind: Option<Text<'a>>,
pub code: Option<Text<'a>>,
pub name: Option<Text<'a>>,
pub version: Option<Text<'a>>,
pub engine: Option<Text<'a>>,
pub engine_version: Option<Text<'a>>,
}Expand description
The client a user-agent string names: a browser, an HTTP library or a native app.
PHP: Utopia\UserAgent\Client.
Fields§
§kind: Option<Text<'a>>Kind of client: browser, library or mobile app.
PHP: the type field.
code: Option<Text<'a>>Short code of a browser (CH, FF); libraries and apps have none.
name: Option<Text<'a>>Display name (Chrome, curl, or a native app’s bundle identifier).
version: Option<Text<'a>>Version of the client.
engine: Option<Text<'a>>Rendering engine (Blink, WebKit, Gecko, Trident, Presto).
engine_version: Option<Text<'a>>Version of the rendering engine.
Implementations§
Trait Implementations§
impl<'a> Eq for Client<'a>
impl<'a> StructuralPartialEq for Client<'a>
Auto Trait Implementations§
impl<'a> Forget for Client<'a>
impl<'a> Freeze for Client<'a>
impl<'a> Move for Client<'a>
impl<'a> RefUnwindSafe for Client<'a>
impl<'a> Send for Client<'a>
impl<'a> Sync for Client<'a>
impl<'a> Unpin for Client<'a>
impl<'a> UnsafeUnpin for Client<'a>
impl<'a> UnwindSafe for Client<'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,
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.