pub struct NewItem {
pub user_id: i64,
pub type_id: i32,
pub properties: ItemPropertiesContainer,
}Fields§
§user_id: i64§type_id: i32§properties: ItemPropertiesContainerImplementations§
Trait Implementations§
Source§impl<'insert> Insertable<table> for &'insert NewItem
impl<'insert> Insertable<table> for &'insert NewItem
Source§type Values = <(Option<Grouped<Eq<user_id, <&'insert i64 as AsExpression<<user_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<type_id, <&'insert i32 as AsExpression<<type_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<properties, <&'insert ItemPropertiesContainer as AsExpression<<properties 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<type_id, <&'insert i32 as AsExpression<<type_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<properties, <&'insert ItemPropertiesContainer as AsExpression<<properties 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<type_id, &'insert i32>>, Option<Eq<properties, &'insert ItemPropertiesContainer>>) as Insertable<table>>::Values
fn values( self, ) -> <(Option<Eq<user_id, &'insert i64>>, Option<Eq<type_id, &'insert i32>>, Option<Eq<properties, &'insert ItemPropertiesContainer>>) 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 NewItem
impl Insertable<table> for NewItem
Source§type Values = <(Option<Grouped<Eq<user_id, <i64 as AsExpression<<user_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<type_id, <i32 as AsExpression<<type_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<properties, <ItemPropertiesContainer as AsExpression<<properties 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<type_id, <i32 as AsExpression<<type_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<properties, <ItemPropertiesContainer as AsExpression<<properties 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<type_id, i32>>, Option<Eq<properties, ItemPropertiesContainer>>) as Insertable<table>>::Values
fn values( self, ) -> <(Option<Eq<user_id, i64>>, Option<Eq<type_id, i32>>, Option<Eq<properties, ItemPropertiesContainer>>) 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 NewItem
Auto Trait Implementations§
impl Freeze for NewItem
impl RefUnwindSafe for NewItem
impl Send for NewItem
impl Sync for NewItem
impl Unpin for NewItem
impl UnwindSafe for NewItem
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