Struct uap_rust::os::OSParser [] [src]

pub struct OSParser {
    pub regex: Regex,
    pub family: Option<String>,
    pub major: Option<String>,
    pub minor: Option<String>,
    pub patch: Option<String>,
    pub patch_minor: Option<String>,
}

Fields

regex
family
major
minor
patch
patch_minor

Methods

impl OSParser

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

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

Trait Implementations

Derived Implementations

impl Debug for OSParser

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