Function pact_models::matchingrules::expressions::parse_matcher_def
source · [−]pub fn parse_matcher_def(v: &str) -> Result<MatchingRuleDefinition>
Expand description
Parse a matcher definition into a MatchingRuleDefinition containing the example value, matching rules and any generator. The following are examples of matching rule definitions:
matching(type,'Name')
- type matchermatching(number,100)
- number matchermatching(datetime, 'yyyy-MM-dd','2000-01-01')
- datetime matcher with format string