pub trait PrimaryKeyField {
type Pk: PrimaryKey;
}Expand description
The key type of a primary key field type: FieldUuid -> Uuid, FieldAutoInt and
FieldInt -> i32, FieldAutoBigInt and FieldBigInt -> i64.
Used by #[derive(Model)] to set Model::Pk.
Required Associated Types§
type Pk: PrimaryKey
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".