Enum pact_mock_server::MatchResult [] [src]

pub enum MatchResult {
    RequestMatch(Interaction),
    RequestMismatch(InteractionVec<Mismatch>),
    RequestNotFound(Request),
    MissingRequest(Interaction),
}

Enum to define a match result

Variants

Match result where the request was sucessfully matched

Match result where there were a number of mismatches

Match result where the request was not expected

Match result where an expected request was not received

Methods

impl MatchResult
[src]

Returns the match key for this mismatch

Returns true if this match result is a RequestMatch

Converts this match result to a Value struct

Trait Implementations

impl Debug for MatchResult
[src]

Formats the value using the given formatter.

impl Clone for MatchResult
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for MatchResult
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.