pub struct PactVerification {
pub passed: bool,
pub report: String,
}Expand description
Outcome of a Pact contract verification (PUT /mockserver/pact/verify).
The server replies 202 ACCEPTED when every interaction in the contract
matched an active expectation, or 406 NOT_ACCEPTABLE when verification
failed — in both cases the body is the same verification report JSON.
Fields§
§passed: booltrue when verification passed (202), false when it failed (406).
report: StringThe verification report JSON returned by the server (verbatim).
Trait Implementations§
Source§impl Clone for PactVerification
impl Clone for PactVerification
Source§fn clone(&self) -> PactVerification
fn clone(&self) -> PactVerification
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PactVerification
impl Debug for PactVerification
impl Eq for PactVerification
Source§impl PartialEq for PactVerification
impl PartialEq for PactVerification
Source§fn eq(&self, other: &PactVerification) -> bool
fn eq(&self, other: &PactVerification) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PactVerification
Auto Trait Implementations§
impl Freeze for PactVerification
impl RefUnwindSafe for PactVerification
impl Send for PactVerification
impl Sync for PactVerification
impl Unpin for PactVerification
impl UnsafeUnpin for PactVerification
impl UnwindSafe for PactVerification
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.