Struct rusty_nail::recipe::models::NewRecipeIngredient
[−]
[src]
pub struct NewRecipeIngredient { pub recipe_id: i32, pub ingredient_id: i32, pub amount: f32, }
Fields
recipe_id: i32
ingredient_id: i32
amount: f32
Trait Implementations
impl<'insert, DB> Insertable<table, DB> for &'insert NewRecipeIngredient where DB: Backend,
(ColumnInsertValue<recipe_id, AsExpr<&'insert i32, recipe_id>>, ColumnInsertValue<ingredient_id, AsExpr<&'insert i32, ingredient_id>>, ColumnInsertValue<amount, AsExpr<&'insert f32, amount>>): InsertValues<DB>
(ColumnInsertValue<recipe_id, AsExpr<&'insert i32, recipe_id>>, ColumnInsertValue<ingredient_id, AsExpr<&'insert i32, ingredient_id>>, ColumnInsertValue<amount, AsExpr<&'insert f32, amount>>): InsertValues<DB>
type Values = (ColumnInsertValue<recipe_id, AsExpr<&'insert i32, recipe_id>>, ColumnInsertValue<ingredient_id, AsExpr<&'insert i32, ingredient_id>>, ColumnInsertValue<amount, AsExpr<&'insert f32, amount>>)
fn values(self) -> Self::Values
impl<'insert, Op, Ret> IntoInsertStatement<table, Op, Ret> for &'insert NewRecipeIngredient
type InsertStatement = InsertStatement<table, Self, Op, Ret>
fn into_insert_statement(self,
target: table,
operator: Op,
returning: Ret)
-> Self::InsertStatement
target: table,
operator: Op,
returning: Ret)
-> Self::InsertStatement