[][src]Enum pact_verifier::FilterInfo

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

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(StringString)

Filter on both the interaction description and provider state

Implementations

impl FilterInfo[src]

pub fn has_description(&self) -> bool[src]

If this filter is filtering on description

pub fn has_state(&self) -> bool[src]

If this filter is filtering on provider state

pub fn state(&self) -> String[src]

Value of the state to filter

pub fn description(&self) -> String[src]

Value of the description to filter

pub fn match_state(&self, interaction: &dyn Interaction) -> bool[src]

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

pub fn match_description(&self, interaction: &dyn Interaction) -> bool[src]

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

Trait Implementations

impl Clone for FilterInfo[src]

impl Debug for FilterInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,