Struct database::repository::models::NewUser
source · pub struct NewUser<'a> {
pub email: &'a str,
pub ouath_id: &'a str,
pub first_name: &'a str,
pub last_name: &'a str,
pub teams: &'a str,
}
Fields§
§email: &'a str
§ouath_id: &'a str
§first_name: &'a str
§last_name: &'a str
§teams: &'a str
Trait Implementations§
source§impl<'a, 'insert> Insertable<table> for &'insert NewUser<'a>
impl<'a, 'insert> Insertable<table> for &'insert NewUser<'a>
§type Values = <(Option<Grouped<Eq<email, <&'insert &'a str as AsExpression<<email as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<ouath_id, <&'insert &'a str as AsExpression<<ouath_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<first_name, <&'insert &'a str as AsExpression<<first_name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<last_name, <&'insert &'a str as AsExpression<<last_name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<teams, <&'insert &'a str as AsExpression<<teams as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
type Values = <(Option<Grouped<Eq<email, <&'insert &'a str as AsExpression<<email as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<ouath_id, <&'insert &'a str as AsExpression<<ouath_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<first_name, <&'insert &'a str as AsExpression<<first_name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<last_name, <&'insert &'a str as AsExpression<<last_name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<teams, <&'insert &'a str as AsExpression<<teams as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
The
VALUES
clause to insert these records Read moresource§fn values(
self
) -> <(Option<Eq<email, &'insert &'a str>>, Option<Eq<ouath_id, &'insert &'a str>>, Option<Eq<first_name, &'insert &'a str>>, Option<Eq<last_name, &'insert &'a str>>, Option<Eq<teams, &'insert &'a str>>) as Insertable<table>>::Values
fn values(
self
) -> <(Option<Eq<email, &'insert &'a str>>, Option<Eq<ouath_id, &'insert &'a str>>, Option<Eq<first_name, &'insert &'a str>>, Option<Eq<last_name, &'insert &'a str>>, Option<Eq<teams, &'insert &'a str>>) as Insertable<table>>::Values
Construct
Self::Values
Read more§fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>where
T: Table,
Self: Sized,
fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>where
T: Table,
Self: Sized,
Insert
self
into a given table. Read moresource§impl<'a> Insertable<table> for NewUser<'a>
impl<'a> Insertable<table> for NewUser<'a>
§type Values = <(Option<Grouped<Eq<email, <&'a str as AsExpression<<email as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<ouath_id, <&'a str as AsExpression<<ouath_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<first_name, <&'a str as AsExpression<<first_name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<last_name, <&'a str as AsExpression<<last_name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<teams, <&'a str as AsExpression<<teams as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
type Values = <(Option<Grouped<Eq<email, <&'a str as AsExpression<<email as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<ouath_id, <&'a str as AsExpression<<ouath_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<first_name, <&'a str as AsExpression<<first_name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<last_name, <&'a str as AsExpression<<last_name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<teams, <&'a str as AsExpression<<teams as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
The
VALUES
clause to insert these records Read moresource§fn values(
self
) -> <(Option<Eq<email, &'a str>>, Option<Eq<ouath_id, &'a str>>, Option<Eq<first_name, &'a str>>, Option<Eq<last_name, &'a str>>, Option<Eq<teams, &'a str>>) as Insertable<table>>::Values
fn values(
self
) -> <(Option<Eq<email, &'a str>>, Option<Eq<ouath_id, &'a str>>, Option<Eq<first_name, &'a str>>, Option<Eq<last_name, &'a str>>, Option<Eq<teams, &'a str>>) as Insertable<table>>::Values
Construct
Self::Values
Read more§fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>where
T: Table,
Self: Sized,
fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>where
T: Table,
Self: Sized,
Insert
self
into a given table. Read more