pub trait PrimaryKeyTrait: IdenStatic + Iterable {
type ValueType: IntoValueTuple + TryFromU64 + Clone + Debug + Send + Sync;
// Required method
fn auto_increment() -> bool;
}Expand description
The primary key of an entity, derived on the PrimaryKey enum.
Required Associated Types§
Sourcetype ValueType: IntoValueTuple + TryFromU64 + Clone + Debug + Send + Sync
type ValueType: IntoValueTuple + TryFromU64 + Clone + Debug + Send + Sync
The Rust type of the key: the field type for a single column, a tuple of field types for a composite key.
Required Methods§
Sourcefn auto_increment() -> bool
fn auto_increment() -> bool
Whether the database generates the key, as with INTEGER PRIMARY KEY.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".