pub trait FromValue: Sized {
// Required method
fn from_value(val: Value) -> Result<Self>;
}Expand description
Converts a libsql::Value into a concrete Rust type.
This trait mirrors the sealed FromValue inside libsql, providing the same
conversions for use with ColumnMap::get.
Implemented for: String, i32, i64, u32, u64, f64, bool,
Vec<u8>, Option<T> (where T: FromValue), and libsql::Value.
Required Methods§
Sourcefn from_value(val: Value) -> Result<Self>
fn from_value(val: Value) -> Result<Self>
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.