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

The name of the type, used when an error happens.

Required Methods

Converts a Value into the required type.

Implementations on Foreign Types

Implementors