pub trait PostgresTable {
// Required method
fn table_name() -> &'static str;
}Expand description
A trait for defining a table in Postgres. This is used for determining which table to read/write from. This is required for all Tusk database operations.
Required Methods§
Sourcefn table_name() -> &'static str
fn table_name() -> &'static str
The name of the table in Postgres.
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.