pub trait EntityMeta:
Send
+ Sync
+ 'static {
type Id: Send + Sync + Clone + 'static;
// Required methods
fn table_name() -> &'static str;
fn id_value(&self) -> &Self::Id;
// Provided method
fn id_column() -> &'static str { ... }
}Required Associated Types§
Required Methods§
Provided 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.