pub fn match_message_contents(expected: &models::message::Message, actual: &models::message::Message, config: DiffConfig,
    mismatches: &mut Vec<Mismatch>, matchers: &MatchingRules) {
    if expected.mimetype() == actual.mimetype() {
        match_body_content(expected.mimetype(), &expected.contents, &actual.contents, config, mismatches, matchers)
    } else if expected.contents.is_present() {
        mismatches.push(Mismatch::BodyTypeMismatch { expected: expected.mimetype(),
            actual: actual.mimetype() });
    }
}
/// Matches the actual message contents to the expected one. This takes into account the content type of each.
Matches the actual message contents to the expected one. This takes into account the content type of each.
Matches the actual message contents to the expected one . This takes into account the content type of each .
pub fn match_message_contents(expected: &models::message::Message, actual: &models::message::Message, config: DiffConfig,
    mismatches: &mut Vec<Mismatch>, matchers: &MatchingRules) {
    if expected.mimetype() == actual.mimetype() {
        match_body_content(expected.mimetype(), &expected.contents, &actual.contents, config, mismatches, matchers)
    } else if expected.contents.is_present() {
        mismatches.push(Mismatch::BodyTypeMismatch { expected: expected.mimetype(),
            actual: actual.mimetype() });
    }
}
pub fn match_message_contents ( expected : & models :: message :: Message , actual : & models :: message :: Message , config : DiffConfig , mismatches : & mut Vec < Mismatch > , matchers : & MatchingRules ) { if expected . mimetype ( ) == actual . mimetype ( ) { match_body_content ( expected . mimetype ( ) , & expected . contents , & actual . contents , config , mismatches , matchers ) } else if expected . contents . is_present ( ) { mismatches . push ( Mismatch :: BodyTypeMismatch { expected : expected . mimetype ( ) , actual : actual . mimetype ( ) } ) ; } }
Matches the actual message contents to the expected one.
Matches the actual message contents to the expected one .
expected
&models::message::Message
actual
&models::message::Message
config
DiffConfig
mismatches
&mut Vec<Mismatch>
matchers
&MatchingRules
expected
&models::message::Message
actual
&models::message::Message
config
DiffConfig
mismatches
&mut Vec<Mismatch>
matchers
&MatchingRules