Enum pact_verifier::MismatchResult
source · pub enum MismatchResult {
Mismatches {
mismatches: Vec<Mismatch>,
expected: Box<dyn Interaction + RefUnwindSafe>,
actual: Box<dyn Interaction + RefUnwindSafe>,
interaction_id: Option<String>,
},
Error(String, Option<String>),
}
Expand description
Result of performing a match
Variants§
Mismatches
Response mismatches
Fields
§
expected: Box<dyn Interaction + RefUnwindSafe>
Expected Response/Message
§
actual: Box<dyn Interaction + RefUnwindSafe>
Actual Response/Message
Error(String, Option<String>)
Error occurred
Implementations§
source§impl MismatchResult
impl MismatchResult
sourcepub fn interaction_id(&self) -> Option<String>
pub fn interaction_id(&self) -> Option<String>
Return the interaction ID associated with the error, if any
Trait Implementations§
source§impl Clone for MismatchResult
impl Clone for MismatchResult
source§impl Debug for MismatchResult
impl Debug for MismatchResult
source§impl From<&MismatchResult> for VerificationMismatchResult
impl From<&MismatchResult> for VerificationMismatchResult
source§fn from(result: &MismatchResult) -> Self
fn from(result: &MismatchResult) -> Self
Converts to this type from the input type.
source§impl From<ProviderStateError> for MismatchResult
impl From<ProviderStateError> for MismatchResult
source§fn from(error: ProviderStateError) -> Self
fn from(error: ProviderStateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MismatchResult
impl RefUnwindSafe for MismatchResult
impl !Send for MismatchResult
impl !Sync for MismatchResult
impl Unpin for MismatchResult
impl !UnwindSafe for MismatchResult
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<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