Struct uap_rust::device::DeviceParser [] [src]

pub struct DeviceParser {
    pub regex: Regex,
    pub family: Option<String>,
    pub brand: Option<String>,
    pub model: Option<String>,
}

Fields

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

Methods

impl DeviceParser
[src]

fn from_yaml(y: &Yaml) -> Option<DeviceParser>

fn parse(&self, agent: String) -> Option<Device>

Trait Implementations

impl Debug for DeviceParser
[src]

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

Formats the value using the given formatter.