Struct rusty_nail::recipe::models::NewIngredient
[−]
[src]
pub struct NewIngredient<'a> { pub name: &'a str, pub description: &'a str, pub available: bool, }
Fields
name: &'a str
description: &'a str
available: bool
Trait Implementations
impl<'a, 'insert, DB> Insertable<table, DB> for &'insert NewIngredient<'a> where DB: Backend,
(ColumnInsertValue<name, AsExpr<&'insert &'a str, name>>, ColumnInsertValue<description, AsExpr<&'insert &'a str, description>>, ColumnInsertValue<available, AsExpr<&'insert bool, available>>): InsertValues<DB>
(ColumnInsertValue<name, AsExpr<&'insert &'a str, name>>, ColumnInsertValue<description, AsExpr<&'insert &'a str, description>>, ColumnInsertValue<available, AsExpr<&'insert bool, available>>): InsertValues<DB>
type Values = (ColumnInsertValue<name, AsExpr<&'insert &'a str, name>>, ColumnInsertValue<description, AsExpr<&'insert &'a str, description>>, ColumnInsertValue<available, AsExpr<&'insert bool, available>>)
fn values(self) -> Self::Values
impl<'a: 'insert, 'insert, Op, Ret> IntoInsertStatement<table, Op, Ret> for &'insert NewIngredient<'a>
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