pub trait Entity:
Sized
+ Send
+ Sync
+ 'static {
type Id: FromDatabaseValue + Into<Value> + Send + Sync + Clone;
// Required methods
fn table_name() -> &'static str;
fn id(&self) -> Self::Id;
// Provided method
fn id_column() -> &'static str { ... }
}Expand description
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.