Struct rusty_nail::recipe::models::NewIngredient [] [src]

pub struct NewIngredient<'a> {
    pub name: &'a str,
    pub description: &'a str,
    pub available: bool,
}

Fields

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>

impl<'a: 'insert, 'insert, Op, Ret> IntoInsertStatement<table, Op, Ret> for &'insert NewIngredient<'a>