Enum pact_verifier::FilterInfo
[−]
[src]
pub enum FilterInfo { None, Description(String), State(String), DescriptionAndState(String, String), }
Filter information used to filter the interactions that are verified
Variants
None
No filter, all interactions will be verified
Description(String)
Filter on the interaction description
State(String)
Filter on the interaction provider state
DescriptionAndState(String, String)
Filter on both the interaction description and provider state
Methods
impl FilterInfo
[src]
fn has_description(&self) -> bool
If this filter is filtering on description
fn has_state(&self) -> bool
If this filter is filtering on provider state
fn state(&self) -> String
Value of the state to filter
fn description(&self) -> String
Value of the description to filter
fn match_state(&self, interaction: &Interaction) -> bool
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
fn match_description(&self, interaction: &Interaction) -> bool
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