Enum pact_mock_server::matching::MatchResult[][src]

pub enum MatchResult {
    RequestMatch(HttpRequestHttpResponse),
    RequestMismatch(HttpRequestVec<Mismatch>),
    RequestNotFound(HttpRequest),
    MissingRequest(HttpRequest),
}
Expand description

Enum to define a match result

Variants

RequestMatch(HttpRequestHttpResponse)

Match result where the request was successfully matched

Tuple Fields of RequestMatch

0: HttpRequest1: HttpResponse
RequestMismatch(HttpRequestVec<Mismatch>)

Match result where there were a number of mismatches

Tuple Fields of RequestMismatch

0: HttpRequest1: Vec<Mismatch>
RequestNotFound(HttpRequest)

Match result where the request was not expected

Tuple Fields of RequestNotFound

0: HttpRequest
MissingRequest(HttpRequest)

Match result where an expected request was not received

Tuple Fields of MissingRequest

0: HttpRequest

Implementations

Returns the match key for this mismatch

Returns true if this match result is a RequestMatch

Returns true if this is an unexpected OPTIONS request

Converts this match result to a Value struct

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Wrap the input message T in a tonic::Request

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more