pub trait Table {
type Fields: Default;
const NAME: &'static str;
// Provided method
fn table() -> TableQuery<Self> { ... }
}
Required Associated Constants§
Required Associated Types§
Provided Methods§
fn table() -> TableQuery<Self>
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.