Enum pact_matching::BodyMatchResult [−][src]
pub enum BodyMatchResult {
Ok,
BodyTypeMismatch {
expected_type: String,
actual_type: String,
message: String,
expected: Option<Bytes>,
actual: Option<Bytes>,
},
BodyMismatches(HashMap<String, Vec<Mismatch>>),
}
Expand description
Result of matching a request body
Variants
Matched OK
Mismatch in the content type of the body
Fields of BodyTypeMismatch
Mismatches with the body contents
Implementations
Returns all the mismatches
If all the things matched OK
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 BodyMatchResult
impl Send for BodyMatchResult
impl Sync for BodyMatchResult
impl Unpin for BodyMatchResult
impl UnwindSafe for BodyMatchResult
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Wrap the input message T
in a tonic::Request