Trait JsonValueCheck

Source
pub trait JsonValueCheck: JsonValueWrap
where Self: Sized,
{ // Required methods fn is_null(&self) -> bool; fn is_empty(&self) -> bool; // Provided methods fn is_boolean(&self) -> bool { ... } fn is_true(&self) -> bool { ... } fn is_false(&self) -> bool { ... } fn is_string(&self) -> bool { ... } fn is_array(&self) -> bool { ... } }
Expand description

Check the type of json value

Required Methods§

Source

fn is_null(&self) -> bool

Source

fn is_empty(&self) -> bool

Provided Methods§

Source

fn is_boolean(&self) -> bool

Source

fn is_true(&self) -> bool

Source

fn is_false(&self) -> bool

Source

fn is_string(&self) -> bool

Source

fn is_array(&self) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl JsonValueCheck for Value

Source§

fn is_null(&self) -> bool

Source§

fn is_empty(&self) -> bool

Implementors§