Trait Load
diesel_crud
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.
type Item
type Query: LoadQuery<Self::Item, BaseConnection>
fn query(self) -> Self::Query
fn load(self, db: &Db<BaseConnection>) -> Result<Vec<Self::Item>, Error>