Trait tusk_rs::query::PostgresReadFields

source ·
pub trait PostgresReadFields {
    // Required method
    fn read_fields() -> &'static [&'static PostgresField];
}
Expand description

A trait for defining fields to read from in Postgres. This is required for all Tusk database operations.

This may be implemented by deriving PostgresJoin, which will read all fields in the struct.

For more control (for example to include expression columns), implement this manually. To learn more about manual implementation, read the documentation for PostgresField.

Required Methods§

source

fn read_fields() -> &'static [&'static PostgresField]

The fields to read.

Object Safety§

This trait is not object safe.

Implementors§