Struct pact_matching::CommonMismatch
source · pub struct CommonMismatch {
pub path: String,
/* private fields */
}
Expand description
Store common mismatch information so it can be converted to different type of mismatches
Fields§
§path: String
path expression to where the mismatch occurred
Implementations§
source§impl CommonMismatch
impl CommonMismatch
sourcepub fn to_body_mismatch(&self) -> Mismatch
pub fn to_body_mismatch(&self) -> Mismatch
Convert common mismatch to body mismatch
sourcepub fn to_query_mismatch(&self) -> Mismatch
pub fn to_query_mismatch(&self) -> Mismatch
Convert common mismatch to query mismatch
sourcepub fn to_header_mismatch(&self) -> Mismatch
pub fn to_header_mismatch(&self) -> Mismatch
Convert common mismatch to header mismatch
Trait Implementations§
source§impl Clone for CommonMismatch
impl Clone for CommonMismatch
source§fn clone(&self) -> CommonMismatch
fn clone(&self) -> CommonMismatch
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 CommonMismatch
impl Debug for CommonMismatch
source§impl Display for CommonMismatch
impl Display for CommonMismatch
source§impl From<Mismatch> for CommonMismatch
impl From<Mismatch> for CommonMismatch
source§impl Ord for CommonMismatch
impl Ord for CommonMismatch
source§fn cmp(&self, other: &CommonMismatch) -> Ordering
fn cmp(&self, other: &CommonMismatch) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for CommonMismatch
impl PartialEq for CommonMismatch
source§fn eq(&self, other: &CommonMismatch) -> bool
fn eq(&self, other: &CommonMismatch) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CommonMismatch
impl PartialOrd for CommonMismatch
source§fn partial_cmp(&self, other: &CommonMismatch) -> Option<Ordering>
fn partial_cmp(&self, other: &CommonMismatch) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for CommonMismatch
Auto Trait Implementations§
impl Freeze for CommonMismatch
impl RefUnwindSafe for CommonMismatch
impl Send for CommonMismatch
impl Sync for CommonMismatch
impl Unpin for CommonMismatch
impl UnwindSafe for CommonMismatch
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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