Macro pact_models::matchingrules_list[][src]

macro_rules! matchingrules_list {
    ($name : expr ; $($subname : expr => [$($matcher : expr), *]), *) => { ... };
    ($name : expr ; [$($matcher : expr), *]) => { ... };
}
Expand description

Macro to ease constructing matching rules Example usage:

matchingrules_list! {
  "body"; "user_id" => [ MatchingRule::Regex(s!("^[0-9]+$")) ]
}