Trait pact_models::generators::VariantMatcher
source · pub trait VariantMatcher: Debug {
// Required methods
fn find_matching_variant(
&self,
value: &Value,
variants: &Vec<(usize, MatchingRuleCategory, HashMap<DocPath, Generator>)>
) -> Option<(usize, HashMap<DocPath, Generator>)>;
fn boxed(&self) -> Box<dyn VariantMatcher + Send + Sync>;
}
Expand description
Trait to represent matching logic to find a matching variant for the Array Contains generator