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