pub trait ToValue {
// Required methods
fn to_value(&self) -> Value;
fn column_type() -> ColumnType;
}Expand description
Trait for types that can be converted to a database Value
Required Methods§
Sourcefn column_type() -> ColumnType
fn column_type() -> ColumnType
Get the column type for this Rust type
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.