pub trait TryFromValue: Sized {
type Error: Error + 'static;
// Required method
fn try_from_value(value: Option<Value>) -> Result<Self, Self::Error>;
}Expand description
Column values can be converted to types implementing this trait.
This trait is implemented for primitive Rust types, String and chrono date and time types.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.