Trait dbgen::value::TryFromValue
source · pub trait TryFromValue<'s>: Sized {
const NAME: &'static str;
fn try_from_value(value: &'s Value) -> Option<Self>;
}
Expand description
Types which can be extracted out of a Value
.
Required Associated Constants
Required Methods
sourcefn try_from_value(value: &'s Value) -> Option<Self>
fn try_from_value(value: &'s Value) -> Option<Self>
Converts a Value
into the required type.