Enum pact_verifier::FilterInfo [] [src]

pub enum FilterInfo {
    None,
    Description(String),
    State(String),
    DescriptionAndState(StringString),
}

Filter information used to filter the interactions that are verified

Variants

No filter, all interactions will be verified

Filter on the interaction description

Filter on the interaction provider state

Filter on both the interaction description and provider state

Methods

impl FilterInfo
[src]

If this filter is filtering on description

If this filter is filtering on provider state

Value of the state to filter

Value of the description to filter

If the filter matches the interaction provider state using a regular expression. If the filter value is the empty string, then it will match interactions with no provider state.

Panics

If the state filter value can't be parsed as a regular expression

If the filter matches the interaction description using a regular expression

Panics

If the description filter value can't be parsed as a regular expression