[][src]Function assert_json_diff::assert_json_include_no_panic

pub fn assert_json_include_no_panic(
    actual: &Value,
    expected: &Value
) -> Result<(), String>

Does the same as assert_json_include! but doesn't panic.

Instead it returns a Result where the error is the message that would be passed to panic!. This is might be useful if you want to control how failures are reported and don't want to deal with panics.