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

Macro to ease constructing matching rules Example usage:

matchingrules! {
  "query" => { "user_id" => [ MatchingRule::Regex("^[0-9]+$".to_string()) ] }
};