Struct pact_matching::RequestMatchResult [−][src]
pub struct RequestMatchResult {
pub method: Option<Mismatch>,
pub path: Option<Vec<Mismatch>>,
pub body: BodyMatchResult,
pub query: HashMap<String, Vec<Mismatch>>,
pub headers: HashMap<String, Vec<Mismatch>>,
}
Expand description
Result of matching a request
Fields
method: Option<Mismatch>
Method match result
path: Option<Vec<Mismatch>>
Path match result
body: BodyMatchResult
Body match result
query: HashMap<String, Vec<Mismatch>>
Query parameter result
headers: HashMap<String, Vec<Mismatch>>
Headers result
Implementations
Returns all the mismatches
If all the things matched OK
If there was a mismatch with the method or path
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 RequestMatchResult
impl Send for RequestMatchResult
impl Sync for RequestMatchResult
impl Unpin for RequestMatchResult
impl UnwindSafe for RequestMatchResult
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