pub trait Schema {
type Id: Send;
// Required methods
fn table_name() -> &'static str;
fn id(&self) -> Self::Id;
fn id_column() -> &'static str;
fn columns() -> &'static [&'static str];
}
Required Associated Types§
Required Methods§
fn table_name() -> &'static str
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.