pub trait SqlDataType<D: Dialect> {
// Required method
fn sql_type() -> ColumnType<D>;
}Expand description
Provide SQL data types in given dialect corresponding to Rust types.
Required Methods§
Sourcefn sql_type() -> ColumnType<D>
fn sql_type() -> ColumnType<D>
Gets ColumnType for given Dialect corresponding to 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.