pub struct NewPond {
pub user_id: i64,
pub capacity: i32,
}Fields§
§user_id: i64§capacity: i32Trait Implementations§
Source§impl<'insert> Insertable<table> for &'insert NewPond
impl<'insert> Insertable<table> for &'insert NewPond
Source§type Values = <(Option<Grouped<Eq<user_id, <&'insert i64 as AsExpression<<user_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<capacity, <&'insert i32 as AsExpression<<capacity as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
type Values = <(Option<Grouped<Eq<user_id, <&'insert i64 as AsExpression<<user_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<capacity, <&'insert i32 as AsExpression<<capacity as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
The
VALUES clause to insert these records Read moreSource§fn values(
self,
) -> <(Option<Eq<user_id, &'insert i64>>, Option<Eq<capacity, &'insert i32>>) as Insertable<table>>::Values
fn values( self, ) -> <(Option<Eq<user_id, &'insert i64>>, Option<Eq<capacity, &'insert i32>>) as Insertable<table>>::Values
Construct
Self::Values Read moreSource§fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
Insert
self into a given table. Read moreSource§impl Insertable<table> for NewPond
impl Insertable<table> for NewPond
Source§type Values = <(Option<Grouped<Eq<user_id, <i64 as AsExpression<<user_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<capacity, <i32 as AsExpression<<capacity as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
type Values = <(Option<Grouped<Eq<user_id, <i64 as AsExpression<<user_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<capacity, <i32 as AsExpression<<capacity as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
The
VALUES clause to insert these records Read moreSource§fn values(
self,
) -> <(Option<Eq<user_id, i64>>, Option<Eq<capacity, i32>>) as Insertable<table>>::Values
fn values( self, ) -> <(Option<Eq<user_id, i64>>, Option<Eq<capacity, i32>>) as Insertable<table>>::Values
Construct
Self::Values Read moreSource§fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
Insert
self into a given table. Read moreimpl UndecoratedInsertRecord<table> for NewPond
Auto Trait Implementations§
impl Freeze for NewPond
impl RefUnwindSafe for NewPond
impl Send for NewPond
impl Sync for NewPond
impl Unpin for NewPond
impl UnwindSafe for NewPond
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self to an expression for Diesel’s query builder. Read more