pub trait ZeroRow: QueryElement {
type Update: ColumnValues;
type Key: ColumnValues;
const TABLE: &'static str;
// Required method
fn column_values(&self) -> Object;
}Expand description
A row struct of a table, as zero-rust codegen generates it: the
table’s columns as fields, and a field per relationship that a query
fills when it asks for it with related.
Required Associated Constants§
Required Associated Types§
Sourcetype Update: ColumnValues
type Update: ColumnValues
What TypedTableMutator::update takes: the primary key, and the
other columns to set.
Sourcetype Key: ColumnValues
type Key: ColumnValues
What TypedTableMutator::delete takes: the primary key.
Required Methods§
Sourcefn column_values(&self) -> Object
fn column_values(&self) -> Object
The row’s columns, by client column name.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".