[−][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
Methods
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
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[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.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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>,