Enum pact_verifier::FilterInfo
source · pub enum FilterInfo {
None,
Description(String),
State(String),
DescriptionAndState(String, String),
}
Expand description
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
Implementations§
source§impl FilterInfo
impl FilterInfo
sourcepub fn has_description(&self) -> bool
pub fn has_description(&self) -> bool
If this filter is filtering on description
sourcepub fn description(&self) -> String
pub fn description(&self) -> String
Value of the description to filter
sourcepub fn match_state(&self, interaction: &dyn Interaction) -> bool
pub fn match_state(&self, interaction: &dyn 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
sourcepub fn match_description(&self, interaction: &dyn Interaction) -> bool
pub fn match_description(&self, interaction: &dyn 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
Trait Implementations§
source§impl Clone for FilterInfo
impl Clone for FilterInfo
source§fn clone(&self) -> FilterInfo
fn clone(&self) -> FilterInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for FilterInfo
impl RefUnwindSafe for FilterInfo
impl Send for FilterInfo
impl Sync for FilterInfo
impl Unpin for FilterInfo
impl UnwindSafe for FilterInfo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request