pub struct NewUser<'a> {
pub name: &'a str,
pub email: &'a str,
pub password_hash: &'a str,
}Expand description
ユーザー作成用の構造体
Fields§
§name: &'a str§email: &'a str§password_hash: &'a strTrait Implementations§
Source§impl<'a, 'insert> Insertable<table> for &'insert NewUser<'a>
impl<'a, 'insert> Insertable<table> for &'insert NewUser<'a>
Source§type Values = <(Option<Grouped<Eq<name, <&'insert &'a str as AsExpression<<name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<email, <&'insert &'a str as AsExpression<<email as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<password_hash, <&'insert &'a str as AsExpression<<password_hash as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
type Values = <(Option<Grouped<Eq<name, <&'insert &'a str as AsExpression<<name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<email, <&'insert &'a str as AsExpression<<email as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<password_hash, <&'insert &'a str as AsExpression<<password_hash as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
The
VALUES clause to insert these records Read moreSource§fn values(
self,
) -> <(Option<Eq<name, &'insert &'a str>>, Option<Eq<email, &'insert &'a str>>, Option<Eq<password_hash, &'insert &'a str>>) as Insertable<table>>::Values
fn values( self, ) -> <(Option<Eq<name, &'insert &'a str>>, Option<Eq<email, &'insert &'a str>>, Option<Eq<password_hash, &'insert &'a str>>) as Insertable<table>>::Values
Construct
Self::Values Read more§fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>where
T: Table,
Self: Sized,
fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>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>
Source§type Values = <(Option<Grouped<Eq<name, <&'a str as AsExpression<<name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<email, <&'a str as AsExpression<<email as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<password_hash, <&'a str as AsExpression<<password_hash as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
type Values = <(Option<Grouped<Eq<name, <&'a str as AsExpression<<name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<email, <&'a str as AsExpression<<email as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<password_hash, <&'a str as AsExpression<<password_hash as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
The
VALUES clause to insert these records Read moreSource§fn values(
self,
) -> <(Option<Eq<name, &'a str>>, Option<Eq<email, &'a str>>, Option<Eq<password_hash, &'a str>>) as Insertable<table>>::Values
fn values( self, ) -> <(Option<Eq<name, &'a str>>, Option<Eq<email, &'a str>>, Option<Eq<password_hash, &'a str>>) as Insertable<table>>::Values
Construct
Self::Values Read more§fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>where
T: Table,
Self: Sized,
fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>where
T: Table,
Self: Sized,
Insert
self into a given table. Read moreimpl<'a> UndecoratedInsertRecord<table> for NewUser<'a>
Auto Trait Implementations§
impl<'a> Freeze for NewUser<'a>
impl<'a> RefUnwindSafe for NewUser<'a>
impl<'a> Send for NewUser<'a>
impl<'a> Sync for NewUser<'a>
impl<'a> Unpin for NewUser<'a>
impl<'a> UnwindSafe for NewUser<'a>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more