Struct uap_rust::os::OS
[−]
[src]
pub struct OS { pub family: String, pub major: Option<String>, pub minor: Option<String>, pub patch: Option<String>, pub patch_minor: Option<String>, }
OS
contains the operating system information from the user agent.
Example:
"Mozilla/5.0 (iPhone; CPU iPhone OS 5_1_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B206 Safari/7534.48.3" OS { family: "iOS", major: Some("5"), minor: Some("1"), patch: Some("1"), patch_minor: None }
Fields
family: String
major: Option<String>
minor: Option<String>
patch: Option<String>
patch_minor: Option<String>
Trait Implementations
impl Eq for OS
[src]
impl PartialEq for OS
[src]
fn eq(&self, __arg_0: &OS) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &OS) -> bool
This method tests for !=
.