pub trait HasSelectModel {
type SelectModel;
const COLUMN_COUNT: usize;
}Expand description
The select model and column count of a table.
Generated by #[SQLiteTable], #[PostgresTable] and #[MySQLTable].
SELECT * from the table decodes into SelectModel.
Required Associated Constants§
Sourceconst COLUMN_COUNT: usize
const COLUMN_COUNT: usize
Number of columns in the table.
Required Associated Types§
Sourcetype SelectModel
type SelectModel
The struct a SELECT * row decodes into.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".