pub trait JsonValueCheck: JsonValueWrapwhere
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§
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
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.