pub fn rule_from_json(&mut self, key: &String, matcher_json: &Value, rule_logic: &RuleLogic) {
    match MatchingRule::from_json(matcher_json) {
      Some(matching_rule) => {
        let rules = self.rules.entry(key.clone()).or_insert(RuleList::default(rule_logic));
        rules.rules.push(matching_rule);
      },
      None => warn!("Could not parse matcher {:?}", matcher_json)
    }
  }
/// Adds a rule from the Value representation
Adds a rule from the Value representation
Adds a rule from the Value representation
pub fn rule_from_json(&mut self, key: &String, matcher_json: &Value, rule_logic: &RuleLogic) {
    match MatchingRule::from_json(matcher_json) {
      Some(matching_rule) => {
        let rules = self.rules.entry(key.clone()).or_insert(RuleList::default(rule_logic));
        rules.rules.push(matching_rule);
      },
      None => warn!("Could not parse matcher {:?}", matcher_json)
    }
  }
pub fn rule_from_json ( & mut self , key : & String , matcher_json : & Value , rule_logic : & RuleLogic ) { match MatchingRule :: from_json ( matcher_json ) { Some ( matching_rule ) => { let rules = self . rules . entry ( key . clone ( ) ) . or_insert ( RuleList :: default ( rule_logic ) ) ; rules . rules . push ( matching_rule ) ; } , None => warn ! ( " " matcher_json ) } }
Adds a rule from the Value representation
Adds a rule from the Value representation
&mut self
key
&String
matcher_json
&Value
rule_logic
&RuleLogic
&mut self
key
&String
matcher_json
&Value
rule_logic
&RuleLogic