Trait ToJsonTreeValue

Source
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§

Source

fn to_json_tree_value(&self) -> JsonTreeValue<'_, Self>

Converts this JSON value to a JsonTreeValue.

Source

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

Implementors§