[−][src]Enum pact_matching::Mismatch
Enum that defines the different types of mismatches that can occur.
Variants
Request Method mismatch
Request Path mismatch
Fields of PathMismatch
Response status mismatch
Request query mismatch
Fields of QueryMismatch
Header mismatch
Fields of HeaderMismatch
Mismatch in the content type of the body
Fields of BodyTypeMismatch
Body element mismatch
Fields of BodyMismatch
Message metadata mismatch
Fields of MetadataMismatch
Implementations
impl Mismatch
[src]
pub fn to_json(&self) -> Value
[src]
Converts the mismatch to a Value
struct.
pub fn mismatch_type(&self) -> String
[src]
Returns the type of the mismatch as a string
pub fn summary(&self) -> String
[src]
Returns a summary string for this mismatch
pub fn description(&self) -> String
[src]
Returns a formated string for this mismatch
pub fn ansi_description(&self) -> String
[src]
Returns a formatted string with ansi escape codes for this mismatch
Trait Implementations
impl Clone for Mismatch
[src]
impl Debug for Mismatch
[src]
impl Display for Mismatch
[src]
impl PartialEq<Mismatch> for Mismatch
[src]
Auto Trait Implementations
impl RefUnwindSafe for Mismatch
impl Send for Mismatch
impl Sync for Mismatch
impl Unpin for Mismatch
impl UnwindSafe for Mismatch
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,