Skip to main content

ZeroRow

Trait ZeroRow 

Source
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§

Source

const TABLE: &'static str

The client name of the row’s table.

Required Associated Types§

Source

type Update: ColumnValues

What TypedTableMutator::update takes: the primary key, and the other columns to set.

Source

type Key: ColumnValues

What TypedTableMutator::delete takes: the primary key.

Required Methods§

Source

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".

Implementors§