pub struct OperatingSystem<'a> {
pub code: Option<Text<'a>>,
pub name: Option<Text<'a>>,
pub version: Option<Text<'a>>,
}Expand description
The operating system a user-agent string names; every field is None
when it names none.
PHP: Utopia\UserAgent\OperatingSystem.
Fields§
§code: Option<Text<'a>>Short code (WIN, IOS, UBT).
name: Option<Text<'a>>Display name (Windows, iOS, Ubuntu).
version: Option<Text<'a>>Version, when the string carries one (7, 17.4).
Implementations§
Trait Implementations§
Source§impl<'a> Clone for OperatingSystem<'a>
impl<'a> Clone for OperatingSystem<'a>
Source§impl<'a> Debug for OperatingSystem<'a>
impl<'a> Debug for OperatingSystem<'a>
Source§impl<'a> Default for OperatingSystem<'a>
impl<'a> Default for OperatingSystem<'a>
impl<'a> Eq for OperatingSystem<'a>
Source§impl<'a> PartialEq for OperatingSystem<'a>
impl<'a> PartialEq for OperatingSystem<'a>
impl<'a> StructuralPartialEq for OperatingSystem<'a>
Auto Trait Implementations§
impl<'a> Forget for OperatingSystem<'a>
impl<'a> Freeze for OperatingSystem<'a>
impl<'a> Move for OperatingSystem<'a>
impl<'a> RefUnwindSafe for OperatingSystem<'a>
impl<'a> Send for OperatingSystem<'a>
impl<'a> Sync for OperatingSystem<'a>
impl<'a> Unpin for OperatingSystem<'a>
impl<'a> UnsafeUnpin for OperatingSystem<'a>
impl<'a> UnwindSafe for OperatingSystem<'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.