Trait diesel::query_source::Column

source ·
pub trait Column: Expression {
    type Table: Table;

    const NAME: &'static str;
}
Expand description

A column on a database table. Types which implement this trait should have been generated by the table! macro.

Required Associated Types§

source

type Table: Table

The table which this column belongs to

Required Associated Constants§

source

const NAME: &'static str

The name of this column

Object Safety§

This trait is not object safe.

Implementors§

impl Column for id

impl Column for name

impl Column for id

impl Column for title

impl Column for author_id

impl Column for book_id

impl Column for book_id

impl Column for content

impl Column for id