pub fn match_response(expected: models::Response, actual: models::Response) -> Vec<Mismatch> {
    let mut mismatches = vec![];

    info!("comparing to expected response: {:?}", expected);
    match_body(&expected, &actual, DiffConfig::AllowUnexpectedKeys, &mut mismatches, &expected.matching_rules);
    match_status(expected.status, actual.status, &mut mismatches);
    match_headers(expected.headers, actual.headers, &mut mismatches, &expected.matching_rules);

    mismatches
}
/// Matches the actual and expected responses.
Matches the actual and expected responses.
Matches the actual and expected responses .
pub fn match_response(expected: models::Response, actual: models::Response) -> Vec<Mismatch> {
    let mut mismatches = vec![];
    info!("comparing to expected response: {:?}", expected);
    match_body(&expected, &actual, DiffConfig::AllowUnexpectedKeys, &mut mismatches, &expected.matching_rules);
    match_status(expected.status, actual.status, &mut mismatches);
    match_headers(expected.headers, actual.headers, &mut mismatches, &expected.matching_rules);
    mismatches
}
pub fn match_response ( expected : models :: Response , actual : models :: Response ) -> Vec < Mismatch > { let mut mismatches = vec ! [ ] ; info ! ( " " expected ) ; match_body ( & expected , & actual , DiffConfig :: AllowUnexpectedKeys , & mut mismatches , & expected . matching_rules ) ; match_status ( expected . status , actual . status , & mut mismatches ) ; match_headers ( expected . headers , actual . headers , & mut mismatches , & expected . matching_rules ) ; mismatches }
Matches the actual and expected responses.
Matches the actual and expected responses .
expected
models::Response
actual
models::Response
expected
models::Response
actual
models::Response