pub struct Device<'a> {
pub kind: Option<Text<'a>>,
pub brand: Option<Text<'a>>,
pub model: Option<Text<'a>>,
}Expand description
The device a user-agent string names.
PHP: Utopia\UserAgent\Device.
Fields§
§kind: Option<Text<'a>>Kind of device: desktop, smartphone, tablet, tv, console,
wearable or portable media player.
PHP: the type field.
brand: Option<Text<'a>>Manufacturer (Apple, Samsung).
model: Option<Text<'a>>Model (iPhone, iPad, Apple TV).
Implementations§
Trait Implementations§
impl<'a> Eq for Device<'a>
impl<'a> StructuralPartialEq for Device<'a>
Auto Trait Implementations§
impl<'a> Forget for Device<'a>
impl<'a> Freeze for Device<'a>
impl<'a> Move for Device<'a>
impl<'a> RefUnwindSafe for Device<'a>
impl<'a> Send for Device<'a>
impl<'a> Sync for Device<'a>
impl<'a> Unpin for Device<'a>
impl<'a> UnsafeUnpin for Device<'a>
impl<'a> UnwindSafe for Device<'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.