pub trait Entity:
for<'r> FromRow<'r, PgRow>
+ Send
+ Sync
+ Unpin
+ 'static {
type Id: EntityId;
const TABLE: &'static str;
const COLUMNS: &'static str;
const ID_COLUMN: &'static str;
// Required method
fn id(&self) -> &Self::Id;
}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.