pub trait Table {
type Row;
const NAME: &'static str;
const COLUMNS: &'static [&'static str];
const PRIMARY_KEY: Option<&'static str>;
}Expand description
Trait for table metadata.
Implemented by types generated from #[derive(Table)] to provide
table-level information.
Required Associated Constants§
Sourceconst PRIMARY_KEY: Option<&'static str>
const PRIMARY_KEY: Option<&'static str>
The primary key column name, if any.
Required Associated Types§
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.