pub trait DrizzleSQLiteColumn: FromSQLiteValue + Sized {
const SQL_TYPE: &'static str;
// Required method
fn to_sqlite_value(&self) -> SQLiteValue<'static>;
}Expand description
Marker trait for custom Rust types that map to a SQLite column.
Generated by #[derive(SQLiteEnum)]. The table macro uses this trait to
auto-detect enum types without requiring #[column(enum)].
§Associated Constants
SQL_TYPE: TheSQLitecolumn affinity ("TEXT"or"INTEGER")
§Required Methods
to_sqlite_value: Convert self to aSQLiteValuefor insertion/updates
Required Associated Constants§
Required Methods§
Sourcefn to_sqlite_value(&self) -> SQLiteValue<'static>
fn to_sqlite_value(&self) -> SQLiteValue<'static>
Convert self to a SQLiteValue for insertion/updates.
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.