Struct pact_matching::models::matchingrules::MatchingRules[][src]

pub struct MatchingRules {
    pub rules: HashMap<String, Category>,
}

Data structure for representing a collection of matchers

Fields

Categories of matching rules

Methods

impl MatchingRules
[src]

Create a empty set of matching rules

If the matching rules are empty (that is there are no rules assigned to any categories)

If the matching rules are not empty (that is there is at least one rule assigned to a category)

Adds the category to the map of rules

Returns all the category names in this rule set

Returns the category of rules for a given category name

If there is a matcher defined for the category and path

If there is a wildcard matcher defined for the category and path

Returns a Category filtered with all rules that match the given path.

Returns a list of rules from the body category that match the given path

Trait Implementations

impl PartialEq for MatchingRules
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for MatchingRules
[src]

Formats the value using the given formatter. Read more

impl Clone for MatchingRules
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for MatchingRules
[src]

impl Hash for MatchingRules
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations