pub trait FieldValue: Sized {
// Required methods
fn kind() -> FieldKind;
fn to_value(&self) -> Value;
fn from_value(value: Value) -> Self;
}Expand description
A Rust type a field can have.
Required Methods§
Sourcefn from_value(value: Value) -> Self
fn from_value(value: Value) -> Self
From what a record holds. What cannot be read gives the type’s empty value.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".