Struct uap_rust::ua::UserAgentParser [] [src]

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

Fields

regex
family
major
minor
patch

Methods

impl UserAgentParser

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

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

Trait Implementations

Derived Implementations

impl Debug for UserAgentParser

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