Trait pact_models::generators::VariantMatcher [−][src]
pub trait VariantMatcher: Debug { fn find_matching_variant(
&self,
value: &Value,
variants: &Vec<(usize, MatchingRuleCategory, HashMap<String, Generator>)>
) -> Option<(usize, HashMap<String, Generator>)>; fn boxed(&self) -> Box<dyn VariantMatcher>; }
Expand description
Trait to represent matching logic to find a matching variant for the Array Contains generator
Required methods
Finds the matching variant for the given value
fn boxed(&self) -> Box<dyn VariantMatcher>
fn boxed(&self) -> Box<dyn VariantMatcher>
Clones this matcher and returns it in a box