pub trait FromValue: Sized {
// Required method
fn from_value(v: Value) -> Result<Self>;
}Expand description
Conversion out of a value read back from the database.
Required Methods§
Sourcefn from_value(v: Value) -> Result<Self>
fn from_value(v: Value) -> Result<Self>
Consume a Value and produce Self, or explain why not.
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 FromValue for NaiveDateTime
impl FromValue for NaiveDateTime
fn from_value(v: Value) -> Result<Self>
Source§impl<T: FromValue> FromValue for Option<T>
NULL reads as None; anything else delegates to T.
impl<T: FromValue> FromValue for Option<T>
NULL reads as None; anything else delegates to T.