pub trait Field: Sized + Default {
// Required methods
fn put(&self) -> Value;
fn take(v: Option<&Value>) -> Self;
}Expand description
a value that maps to one JSON member
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<T: Field> Field for BTreeMap<String, T>
a map with string keys as a JSON object (members in key order)
impl<T: Field> Field for BTreeMap<String, T>
a map with string keys as a JSON object (members in key order)