Struct pact_consumer::patterns::EachValue
source · pub struct EachValue { /* private fields */ }
Expand description
Apply an associated rule to each value of an Object
Implementations§
Trait Implementations§
source§impl Into<MatchingRule> for &EachValue
impl Into<MatchingRule> for &EachValue
source§fn into(self) -> MatchingRule
fn into(self) -> MatchingRule
Converts this type into the (usually inferred) input type.
source§impl Into<MatchingRule> for EachValue
impl Into<MatchingRule> for EachValue
source§fn into(self) -> MatchingRule
fn into(self) -> MatchingRule
Converts this type into the (usually inferred) input type.
source§impl Pattern for EachValue
impl Pattern for EachValue
§type Matches = Value
type Matches = Value
What type of data can this pattern be matched against? What kind of
example data does it generate?
source§fn to_example(&self) -> Self::Matches
fn to_example(&self) -> Self::Matches
Convert this
Matchable
into an example data value, stripping out
any special match rules.source§fn to_example_bytes(&self) -> Vec<u8> ⓘ
fn to_example_bytes(&self) -> Vec<u8> ⓘ
Convert this
Matchable
into an example data value as byte slice.source§fn extract_matching_rules(
&self,
path: DocPath,
rules_out: &mut MatchingRuleCategory,
)
fn extract_matching_rules( &self, path: DocPath, rules_out: &mut MatchingRuleCategory, )
Extract the matching rules from this
Matchable
, and insert them into
rules_out
, using path
as the base path. Read moreAuto Trait Implementations§
impl Freeze for EachValue
impl !RefUnwindSafe for EachValue
impl !Send for EachValue
impl !Sync for EachValue
impl Unpin for EachValue
impl !UnwindSafe for EachValue
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