pub trait Query: Serialize {
// Required methods
fn new(row: &PgRow) -> Self;
fn to_row(&self) -> Row;
fn headers() -> Row;
fn read_file(pg_statement_version: Option<PgStatsVersion>) -> String;
// Provided methods
fn description() -> String { ... }
fn to_json(&self) -> Value { ... }
}
Required Methods§
fn new(row: &PgRow) -> Self
fn to_row(&self) -> Row
fn headers() -> Row
fn read_file(pg_statement_version: Option<PgStatsVersion>) -> String
Provided 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.