pub trait Column {
type Table: Table;
type Type;
const NAME: &'static str;
const NULLABLE: bool;
const PRIMARY_KEY: bool;
}Expand description
Trait for column metadata.
Implemented by column types generated from #[derive(Table)] to provide
column-level information and enable type-safe queries.
Required Associated Constants§
Sourceconst PRIMARY_KEY: bool
const PRIMARY_KEY: bool
Whether this column is the primary key.
Required Associated Types§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".