is_integer

Function is_integer 

Source
pub fn is_integer() -> JsonPredicateMatcher<impl Fn(&Value) -> bool, &'static str, &'static str>
Expand description

Matches JSON numbers that are integers.

ยงExamples

assert_that!(j!(42), json::is_integer());
assert_that!(j!(3.14), not(json::is_integer()));