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
Fields
§
expected: Box<dyn Interaction + RefUnwindSafe>
Expected Response/Message
§
actual: Box<dyn Interaction + RefUnwindSafe>
Actual Response/Message
Response mismatches
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 RefUnwindSafe for MismatchResult
impl !Send for MismatchResult
impl !Sync for MismatchResult
impl Unpin for MismatchResult
impl !UnwindSafe for MismatchResult
Blanket Implementations§
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> 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