Struct pact_models::matchingrules::RuleList [−][src]
pub struct RuleList {
pub rules: Vec<MatchingRule>,
pub rule_logic: RuleLogic,
pub cascaded: bool,
}
Expand description
Data structure for representing a list of rules and the logic needed to combine them
Fields
rules: Vec<MatchingRule>
List of rules to apply
rule_logic: RuleLogic
Rule logic to use to evaluate multiple rules
cascaded: bool
If this rule list has matched the exact path or if it has cascaded (i.e. is a parent)
Implementations
Creates a new rule list with the single matching rule
If there is a type matcher defined for the rule list
If the values matcher is defined for the rule list
Add a matching rule to the rule list
If this rule list has matched the exact path or if it has cascaded (i.e. is a parent)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for RuleList
impl UnwindSafe for RuleList
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more