Enum pact_ffi::models::expressions::MatchingRuleResult
source · pub enum MatchingRuleResult {
MatchingRule(u16, *const c_char, MatchingRule),
MatchingReference(*const c_char),
}
Expand description
The matching rule or reference from parsing the matching definition expression.
For matching rules, the ID corresponds to the following rules: | Rule | ID | | –– | – | | Equality | 1 | | Regex | 2 | | Type | 3 | | MinType | 4 | | MaxType | 5 | | MinMaxType | 6 | | Timestamp | 7 | | Time | 8 | | Date | 9 | | Include | 10 | | Number | 11 | | Integer | 12 | | Decimal | 13 | | Null | 14 | | ContentType | 15 | | ArrayContains | 16 | | Values | 17 | | Boolean | 18 | | StatusCode | 19 | | NotEmpty | 20 | | Semver | 21 | | EachKey | 22 | | EachValue | 23 |
Variants§
MatchingRule(u16, *const c_char, MatchingRule)
The matching rule from the expression.
MatchingReference(*const c_char)
A reference to a named item.
Trait Implementations§
source§impl Clone for MatchingRuleResult
impl Clone for MatchingRuleResult
source§fn clone(&self) -> MatchingRuleResult
fn clone(&self) -> MatchingRuleResult
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 moresource§impl Debug for MatchingRuleResult
impl Debug for MatchingRuleResult
source§impl PartialEq for MatchingRuleResult
impl PartialEq for MatchingRuleResult
source§fn eq(&self, other: &MatchingRuleResult) -> bool
fn eq(&self, other: &MatchingRuleResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for MatchingRuleResult
impl StructuralPartialEq for MatchingRuleResult
Auto Trait Implementations§
impl Freeze for MatchingRuleResult
impl RefUnwindSafe for MatchingRuleResult
impl !Send for MatchingRuleResult
impl !Sync for MatchingRuleResult
impl Unpin for MatchingRuleResult
impl UnwindSafe for MatchingRuleResult
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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