Trait tusk_rs::query::PostgresTable
source · 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.
Object Safety§
This trait is not object safe.