Enum pact_mock_server::matching::MatchResult [−][src]
pub enum MatchResult {
RequestMatch(HttpRequest, HttpResponse),
RequestMismatch(HttpRequest, Vec<Mismatch>),
RequestNotFound(HttpRequest),
MissingRequest(HttpRequest),
}
Expand description
Enum to define a match result
Variants
RequestMatch(HttpRequest, HttpResponse)
Match result where the request was successfully matched
Tuple Fields of RequestMatch
0: HttpRequest
1: HttpResponse
RequestMismatch(HttpRequest, Vec<Mismatch>)
Match result where there were a number of mismatches
Tuple Fields of RequestMismatch
0: HttpRequest
1: 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 true if this is an unexpected OPTIONS request
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for MatchResult
impl Send for MatchResult
impl Sync for MatchResult
impl Unpin for MatchResult
impl UnwindSafe for MatchResult
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
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