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