pub trait PostgresColumn<'a>: SQLColumn<'a, PostgresValue<'a>> {
const SERIAL: bool = false;
const BIGSERIAL: bool = false;
const GENERATED_IDENTITY: bool = false;
const IDENTITY_ALWAYS: bool = true;
}Expand description
A column of a PostgreSQL table, with its auto-increment settings.
Implemented by #[PostgresTable] for every column type it generates.
Provided Associated Constants§
Sourceconst GENERATED_IDENTITY: bool = false
const GENERATED_IDENTITY: bool = false
true for a GENERATED ... AS IDENTITY column.
Sourceconst IDENTITY_ALWAYS: bool = true
const IDENTITY_ALWAYS: bool = true
true = GENERATED ALWAYS AS IDENTITY, false = GENERATED BY DEFAULT AS IDENTITY.
Only meaningful when GENERATED_IDENTITY is true.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".