pub trait ColumnValue:
Sized
+ Send
+ Sync
+ 'static {
const TYPE: ColumnType;
const NULLABLE: bool = false;
// Required methods
fn into_value(self) -> Value;
fn from_value(value: Value) -> Result<Self, String>;
}Expand description
Rust types that map to one column.
Required Associated Constants§
const TYPE: ColumnType
Provided Associated Constants§
Required Methods§
fn into_value(self) -> Value
fn from_value(value: Value) -> Result<Self, String>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".