Struct create_rust_app::auth::UserChangeset
source · pub struct UserChangeset {
pub email: String,
pub hash_password: String,
pub activated: bool,
}
Fields§
§email: String
§hash_password: String
§activated: bool
Trait Implementations§
source§impl<'update> AsChangeset for &'update UserChangeset
impl<'update> AsChangeset for &'update UserChangeset
§type Changeset = <(Grouped<Eq<email, <&'update String as AsExpression<<email as Expression>::SqlType>>::Expression>>, Grouped<Eq<hash_password, <&'update String as AsExpression<<hash_password as Expression>::SqlType>>::Expression>>, Grouped<Eq<activated, <&'update bool as AsExpression<<activated as Expression>::SqlType>>::Expression>>) as AsChangeset>::Changeset
type Changeset = <(Grouped<Eq<email, <&'update String as AsExpression<<email as Expression>::SqlType>>::Expression>>, Grouped<Eq<hash_password, <&'update String as AsExpression<<hash_password as Expression>::SqlType>>::Expression>>, Grouped<Eq<activated, <&'update bool as AsExpression<<activated as Expression>::SqlType>>::Expression>>) as AsChangeset>::Changeset
The update statement this type represents
source§fn as_changeset(self) -> Self::Changeset
fn as_changeset(self) -> Self::Changeset
Convert
self
into the actual update statement being executedsource§impl AsChangeset for UserChangeset
impl AsChangeset for UserChangeset
§type Changeset = <(Grouped<Eq<email, <String as AsExpression<<email as Expression>::SqlType>>::Expression>>, Grouped<Eq<hash_password, <String as AsExpression<<hash_password as Expression>::SqlType>>::Expression>>, Grouped<Eq<activated, <bool as AsExpression<<activated as Expression>::SqlType>>::Expression>>) as AsChangeset>::Changeset
type Changeset = <(Grouped<Eq<email, <String as AsExpression<<email as Expression>::SqlType>>::Expression>>, Grouped<Eq<hash_password, <String as AsExpression<<hash_password as Expression>::SqlType>>::Expression>>, Grouped<Eq<activated, <bool as AsExpression<<activated as Expression>::SqlType>>::Expression>>) as AsChangeset>::Changeset
The update statement this type represents
source§fn as_changeset(self) -> Self::Changeset
fn as_changeset(self) -> Self::Changeset
Convert
self
into the actual update statement being executedsource§impl Clone for UserChangeset
impl Clone for UserChangeset
source§fn clone(&self) -> UserChangeset
fn clone(&self) -> UserChangeset
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UserChangeset
impl Debug for UserChangeset
source§impl<'de> Deserialize<'de> for UserChangeset
impl<'de> Deserialize<'de> for UserChangeset
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for UserChangeset
impl Send for UserChangeset
impl Sync for UserChangeset
impl Unpin for UserChangeset
impl UnwindSafe for UserChangeset
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> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
fn into_sql<T>(self) -> Self::Expressionwhere Self: AsExpression<T> + Sized, T: SqlType + TypedExpressionType,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere &'a Self: AsExpression<T>, T: SqlType + TypedExpressionType,
Convert
&self
to an expression for Diesel’s query builder. Read more