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
family
brand
model

Methods

impl DeviceParser

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

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

Trait Implementations

Derived Implementations

impl Debug for DeviceParser

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