pub trait PrimaryKey:
Copy
+ Eq
+ Hash
+ Send
+ Sync
+ 'static
+ QueryValue<Self>
+ FromDatabaseValue {
// Required method
fn generated_value() -> Option<DatabaseValue>;
}Expand description
Supported model keys, including their automatic INSERT value.
Required Methods§
fn generated_value() -> Option<DatabaseValue>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".