Macro pact_models::matchingrules
source · [−]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(s!("^[0-9]+$")) ] }
}