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

    info!("comparing to expected {}", expected);
    debug!("     body: '{}'", expected.body.str_value());
    debug!("     matching_rules: {:?}", expected.matching_rules);
    debug!("     generators: {:?}", expected.generators);
    match_method(expected.method.clone(), actual.method.clone(), &mut mismatches);
    match_path(expected.path.clone(), actual.path.clone(), &mut mismatches, &expected.matching_rules);
    match_body(&expected, &actual, DiffConfig::NoUnexpectedKeys, &mut mismatches, &expected.matching_rules);
    match_query(expected.query, actual.query, &mut mismatches, &expected.matching_rules);
    match_headers(expected.headers, actual.headers, &mut mismatches, &expected.matching_rules);

    debug!("--> Mismatches: {:?}", mismatches);
    mismatches
}
/// Matches the expected and actual requests.
Matches the expected and actual requests.
Matches the expected and actual requests .
pub fn match_request(expected: models::Request, actual: models::Request) -> Vec<Mismatch> {
    let mut mismatches = vec![];
    info!("comparing to expected {}", expected);
    debug!("     body: '{}'", expected.body.str_value());
    debug!("     matching_rules: {:?}", expected.matching_rules);
    debug!("     generators: {:?}", expected.generators);
    match_method(expected.method.clone(), actual.method.clone(), &mut mismatches);
    match_path(expected.path.clone(), actual.path.clone(), &mut mismatches, &expected.matching_rules);
    match_body(&expected, &actual, DiffConfig::NoUnexpectedKeys, &mut mismatches, &expected.matching_rules);
    match_query(expected.query, actual.query, &mut mismatches, &expected.matching_rules);
    match_headers(expected.headers, actual.headers, &mut mismatches, &expected.matching_rules);
    debug!("--> Mismatches: {:?}", mismatches);
    mismatches
}
pub fn match_request ( expected : models :: Request , actual : models :: Request ) -> Vec < Mismatch > { let mut mismatches = vec ! [ ] ; info ! ( " " expected ) ; debug ! ( " " expected body str_value ( ) ) ; debug ! ( " " expected matching_rules ) ; debug ! ( " " expected generators ) ; match_method ( expected . method . clone ( ) , actual . method . clone ( ) , & mut mismatches ) ; match_path ( expected . path . clone ( ) , actual . path . clone ( ) , & mut mismatches , & expected . matching_rules ) ; match_body ( & expected , & actual , DiffConfig :: NoUnexpectedKeys , & mut mismatches , & expected . matching_rules ) ; match_query ( expected . query , actual . query , & mut mismatches , & expected . matching_rules ) ; match_headers ( expected . headers , actual . headers , & mut mismatches , & expected . matching_rules ) ; debug ! ( " " mismatches ) ; mismatches }
Matches the expected and actual requests.
Matches the expected and actual requests .
expected
models::Request
actual
models::Request
expected
models::Request
actual
models::Request