pub trait ToJsonTreeValue {
// Required methods
fn to_json_tree_value(&self) -> JsonTreeValue<'_, Self>;
fn is_expandable(&self) -> bool;
}Expand description
A trait for types that can be converted to a JsonTreeValue.
Required Methods§
Sourcefn to_json_tree_value(&self) -> JsonTreeValue<'_, Self>
fn to_json_tree_value(&self) -> JsonTreeValue<'_, Self>
Converts this JSON value to a JsonTreeValue.
Sourcefn is_expandable(&self) -> bool
fn is_expandable(&self) -> bool
Returns whether this JSON value is expandable, i.e. whether it is an object or an array.
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 ToJsonTreeValue for Value
Available on crate feature serde_json only.
impl ToJsonTreeValue for Value
Available on crate feature
serde_json only.