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

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

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

type Table: Table[]

The table this type is associated with.

Required methods

fn table() -> Self::Table[]

Returns the table this type is associated with.

Implementations on Foreign Types

impl<'a, T: HasTable> HasTable for &'a T[src][]

type Table = T::Table

Implementors

impl HasTable for table

impl HasTable for table

impl HasTable for table

impl HasTable for table

impl HasTable for table

impl HasTable for table

impl HasTable for table

impl HasTable for table

impl HasTable for table

impl HasTable for table

impl HasTable for table