Struct rusty_nail::recipe::models::Ingredient
[−]
[src]
pub struct Ingredient { pub id: i32, pub name: String, pub description: String, pub available: bool, }
Fields
id: i32
name: String
description: String
available: bool
Trait Implementations
impl Debug for Ingredient
[src]
impl<'a, 'update> AsChangeset for &'update Ingredient
type Target = table
type Changeset = (Eq<name, &'update String>, Eq<description, &'update String>, Eq<available, &'update bool>)
fn as_changeset(self) -> Self::Changeset
impl HasTable for Ingredient
impl<'ident> Identifiable for &'ident Ingredient
impl<__DB, __ST> Queryable<__ST, __DB> for Ingredient where __DB: Backend + HasSqlType<__ST>,
(i32, String, String, bool): FromSqlRow<__ST, __DB>
(i32, String, String, bool): FromSqlRow<__ST, __DB>