pub trait ColumnTypeOf {
// Required method
fn column_type() -> ColumnType;
// Provided methods
fn nullable() -> bool { ... }
fn choices() -> Option<Vec<&'static str>> { ... }
}Expand description
Maps a Rust field type to a SQL column type.
Required Methods§
fn column_type() -> ColumnType
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".