pub fn decode_attribute(s: &str) -> Option<RequestSelector> {
    match s {
        "ip" => Some(RequestSelector::Ip),
        "path" => Some(RequestSelector::Path),
        "query" => Some(RequestSelector::Query),
        "uri" => Some(RequestSelector::Uri),
        "country" => Some(RequestSelector::Country),
        "method" => Some(RequestSelector::Method),
        "asn" => Some(RequestSelector::Asn),
        "company" => Some(RequestSelector::Company),
        "authority" => Some(RequestSelector::Authority),
        "tags" => Some(RequestSelector::Tags),
        _ => None,
    }
}
// all kind of selector related functions
all kind of selector related functions
all kind of selector related functions
pub fn decode_attribute(s: &str) -> Option<RequestSelector> {
    match s {
        "ip" => Some(RequestSelector::Ip),
        "path" => Some(RequestSelector::Path),
        "query" => Some(RequestSelector::Query),
        "uri" => Some(RequestSelector::Uri),
        "country" => Some(RequestSelector::Country),
        "method" => Some(RequestSelector::Method),
        "asn" => Some(RequestSelector::Asn),
        "company" => Some(RequestSelector::Company),
        "authority" => Some(RequestSelector::Authority),
        "tags" => Some(RequestSelector::Tags),
        _ => None,
    }
}
pub fn decode_attribute ( s : & str ) -> Option < RequestSelector > { match s { " " => Some ( RequestSelector :: Ip ) , " " => Some ( RequestSelector :: Path ) , " " => Some ( RequestSelector :: Query ) , " " => Some ( RequestSelector :: Uri ) , " " => Some ( RequestSelector :: Country ) , " " => Some ( RequestSelector :: Method ) , " " => Some ( RequestSelector :: Asn ) , " " => Some ( RequestSelector :: Company ) , " " => Some ( RequestSelector :: Authority ) , " " => Some ( RequestSelector :: Tags ) , _ => None , } }
all kind of selector related functions
all kind of selector related functions
s
&str