rocket_db_pools::diesel::prelude

Trait 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 Constants§

Source

const NAME: &'static str

The name of this column

Required Associated Types§

Source

type Table: Table

The table which this column belongs to

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.

Implementors§