pub fn match_body(expected: &dyn models::HttpPart, actual: &dyn models::HttpPart, config: DiffConfig,
    mismatches: &mut Vec<Mismatch>, matchers: &MatchingRules) {
    debug!("expected content type = '{}', actual content type = '{}'", expected.content_type(),
           actual.content_type());
    if expected.content_type() == actual.content_type() {
        match_body_content(expected.content_type(), expected.body(), actual.body(), config, mismatches, matchers)
    } else if expected.body().is_present() {
        mismatches.push(Mismatch::BodyTypeMismatch { expected: expected.content_type(),
            actual: actual.content_type() });
    }
}
/// Matches the actual body to the expected one. This takes into account the content type of each.
Matches the actual body to the expected one. This takes into account the content type of each.
Matches the actual body to the expected one . This takes into account the content type of each .
pub fn match_body(expected: &dyn models::HttpPart, actual: &dyn models::HttpPart, config: DiffConfig,
    mismatches: &mut Vec<Mismatch>, matchers: &MatchingRules) {
    debug!("expected content type = '{}', actual content type = '{}'", expected.content_type(),
           actual.content_type());
    if expected.content_type() == actual.content_type() {
        match_body_content(expected.content_type(), expected.body(), actual.body(), config, mismatches, matchers)
    } else if expected.body().is_present() {
        mismatches.push(Mismatch::BodyTypeMismatch { expected: expected.content_type(),
            actual: actual.content_type() });
    }
}
pub fn match_body ( expected : & dyn models :: HttpPart , actual : & dyn models :: HttpPart , config : DiffConfig , mismatches : & mut Vec < Mismatch > , matchers : & MatchingRules ) { debug ! ( " " expected content_type ( ) actual content_type ( ) ) ; if expected . content_type ( ) == actual . content_type ( ) { match_body_content ( expected . content_type ( ) , expected . body ( ) , actual . body ( ) , config , mismatches , matchers ) } else if expected . body ( ) . is_present ( ) { mismatches . push ( Mismatch :: BodyTypeMismatch { expected : expected . content_type ( ) , actual : actual . content_type ( ) } ) ; } }
Matches the actual body to the expected one.
Matches the actual body to the expected one .
expected
&dyn models::HttpPart
actual
&dyn models::HttpPart
config
DiffConfig
mismatches
&mut Vec<Mismatch>
matchers
&MatchingRules
expected
&dyn models::HttpPart
actual
&dyn models::HttpPart
config
DiffConfig
mismatches
&mut Vec<Mismatch>
matchers
&MatchingRules