Trait diesel::associations::HasTable[][src]

pub trait HasTable {
    type Table: Table;
    fn table() -> Self::Table;
}
Expand description

This trait indicates that a struct is associated with a single database table.

This trait is implemented by structs which implement Identifiable, as well as database tables themselves.

Associated Types

The table this type is associated with.

Required methods

Returns the table this type is associated with.

Implementations on Foreign Types

Implementors