[][src]Trait diesel_crud::Load

pub trait Load<BaseConnection>: Sized where
    BaseConnection: Connection + 'static, 
{ type Item; type Query: LoadQuery<Self::Item, BaseConnection>; fn query(self) -> Self::Query; fn load(self, db: &Db<BaseConnection>) -> Result<Vec<Self::Item>, Error> { ... } }

Trait which is implemented by read operations.

Associated Types

type Item

type Query: LoadQuery<Self::Item, BaseConnection>

Loading content...

Required methods

fn query(self) -> Self::Query

Loading content...

Provided methods

fn load(self, db: &Db<BaseConnection>) -> Result<Vec<Self::Item>, Error>

Loading content...

Implementors

Loading content...