Struct uap_rust::device::Device [] [src]

pub struct Device {
    pub family: String,
    pub brand: Option<String>,
    pub model: Option<String>,
}

Device contains the device 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"
Device { family: "iPhone", brand: Some("Apple"), model: Some("iPhone") }

Fields

family: String brand: Option<String> model: Option<String>

Trait Implementations

impl Eq for Device
[src]

impl PartialEq for Device
[src]

fn eq(&self, __arg_0: &Device) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Device) -> bool

This method tests for !=.

impl Debug for Device
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.