Skip to main content

expect_type

Function expect_type 

Source
pub fn expect_type(
    object: &Map<String, Value>,
    expected: &str,
) -> Result<(), JsonError>
Expand description

Check that object’s type is expected.

§Errors

When it is absent or another type.