Struct rusty_nail::recipe::models::RecipeIngredient
[−]
[src]
pub struct RecipeIngredient { pub id: i32, pub recipe_id: i32, pub ingredient_id: i32, pub amount: f32, }
Fields
id: i32
recipe_id: i32
ingredient_id: i32
amount: f32
Trait Implementations
impl Debug for RecipeIngredient
[src]
impl<'a, 'update> AsChangeset for &'update RecipeIngredient
type Target = table
type Changeset = (Eq<recipe_id, &'update i32>, Eq<ingredient_id, &'update i32>, Eq<amount, &'update f32>)
fn as_changeset(self) -> Self::Changeset
impl BelongsTo<Recipe> for RecipeIngredient
type ForeignKey = i32
type ForeignKeyColumn = recipe_id
fn foreign_key(&self) -> Option<&i32>
fn foreign_key_column() -> Self::ForeignKeyColumn
impl BelongsTo<Ingredient> for RecipeIngredient
type ForeignKey = i32
type ForeignKeyColumn = ingredient_id
fn foreign_key(&self) -> Option<&i32>
fn foreign_key_column() -> Self::ForeignKeyColumn
impl HasTable for RecipeIngredient
impl<'ident> Identifiable for &'ident RecipeIngredient
impl<__DB, __ST> Queryable<__ST, __DB> for RecipeIngredient where __DB: Backend + HasSqlType<__ST>,
(i32, i32, i32, f32): FromSqlRow<__ST, __DB>
(i32, i32, i32, f32): FromSqlRow<__ST, __DB>