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
sourceimpl 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
sourceimpl Clone for FilterInfo
impl Clone for FilterInfo
sourcefn clone(&self) -> FilterInfo
fn clone(&self) -> FilterInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for FilterInfo
impl Send for FilterInfo
impl Sync for FilterInfo
impl Unpin for FilterInfo
impl UnwindSafe for FilterInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message T
in a tonic::Request
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more