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