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
Ok
Matched OK
BodyTypeMismatch
Fields
expected_type: String
Expected content type
actual_type: String
Actual content type
message: String
Message
Mismatch in the content type of the body
BodyMismatches(HashMap<String, Vec<Mismatch>>)
Mismatches with the body contents
Implementations
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
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