pub trait Identifiable {
type Key;
const ID_COLUMN: &'static str;
// Required method
fn id(&self) -> Option<Self::Key>;
}Expand description
Trait for entities that have an identifiable key. This trait exposes the key type and column name so macros can introspect it.
Required Associated Constants§
Required Associated Types§
Required Methods§
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.