pub struct ContractVerifier;Expand description
Contract verifier
Implementations§
Source§impl ContractVerifier
impl ContractVerifier
Sourcepub fn verify_interaction(
interaction: &ContractInteraction,
actual_response: &ContractResponse,
) -> Result<(), ContractError>
pub fn verify_interaction( interaction: &ContractInteraction, actual_response: &ContractResponse, ) -> Result<(), ContractError>
Verify a contract interaction’s expected response against an actual response.
This checks only the response side (status, headers, body) of
interaction against actual_response; it never inspects, sends, or
otherwise uses interaction.request — issuing the real HTTP call
implied by interaction.request and capturing its response is the
caller’s responsibility, not this method’s. Pact-style provider
verification (replaying the request and asserting the response
contract) is only partially covered as a result.
Sourcepub fn verify_contract(
_contract: &Contract,
interactions_results: &[(ContractInteraction, ContractResponse)],
) -> Result<(), ContractError>
pub fn verify_contract( _contract: &Contract, interactions_results: &[(ContractInteraction, ContractResponse)], ) -> Result<(), ContractError>
Verify entire contract
Auto Trait Implementations§
impl Freeze for ContractVerifier
impl RefUnwindSafe for ContractVerifier
impl Send for ContractVerifier
impl Sync for ContractVerifier
impl Unpin for ContractVerifier
impl UnsafeUnpin for ContractVerifier
impl UnwindSafe for ContractVerifier
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
impl<R, D> DepsPresent<D> for R
Source§impl<T> Injectable for T
impl<T> Injectable for T
Source§fn type_id_of() -> TypeIdwhere
Self: Sized,
fn type_id_of() -> TypeIdwhere
Self: Sized,
Returns the TypeId of this type (for internal use)
Source§fn type_name_of() -> &'static strwhere
Self: Sized,
fn type_name_of() -> &'static strwhere
Self: Sized,
Returns the type name for debugging