pub struct UpdateUser {
pub email: Option<String>,
pub display_name: Option<Option<String>>,
pub email_verified: Option<bool>,
pub role: Option<String>,
pub banned: Option<bool>,
pub banned_reason: Option<Option<String>>,
pub banned_until: Option<Option<NaiveDateTime>>,
pub updated_at: Option<NaiveDateTime>,
}Fields§
§email: Option<String>§display_name: Option<Option<String>>§email_verified: Option<bool>§role: Option<String>§banned: Option<bool>§banned_reason: Option<Option<String>>§banned_until: Option<Option<NaiveDateTime>>§updated_at: Option<NaiveDateTime>Trait Implementations§
Source§impl<'update> AsChangeset for &'update UpdateUser
impl<'update> AsChangeset for &'update UpdateUser
Source§type Changeset = <(Option<Grouped<Eq<email, <&'update String as AsExpression<<email as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<display_name, <&'update Option<String> as AsExpression<<display_name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<email_verified, <&'update bool as AsExpression<<email_verified as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<role, <&'update String as AsExpression<<role as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<banned, <&'update bool as AsExpression<<banned as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<banned_reason, <&'update Option<String> as AsExpression<<banned_reason as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<banned_until, <&'update Option<NaiveDateTime> as AsExpression<<banned_until as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<updated_at, <&'update NaiveDateTime as AsExpression<<updated_at as Expression>::SqlType>>::Expression>>>) as AsChangeset>::Changeset
type Changeset = <(Option<Grouped<Eq<email, <&'update String as AsExpression<<email as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<display_name, <&'update Option<String> as AsExpression<<display_name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<email_verified, <&'update bool as AsExpression<<email_verified as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<role, <&'update String as AsExpression<<role as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<banned, <&'update bool as AsExpression<<banned as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<banned_reason, <&'update Option<String> as AsExpression<<banned_reason as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<banned_until, <&'update Option<NaiveDateTime> as AsExpression<<banned_until as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<updated_at, <&'update NaiveDateTime as AsExpression<<updated_at as Expression>::SqlType>>::Expression>>>) as AsChangeset>::Changeset
The update statement this type represents
Source§fn as_changeset(self) -> <Self as AsChangeset>::Changeset
fn as_changeset(self) -> <Self as AsChangeset>::Changeset
Convert
self into the actual update statement being executedSource§impl AsChangeset for UpdateUser
impl AsChangeset for UpdateUser
Source§type Changeset = <(Option<Grouped<Eq<email, <String as AsExpression<<email as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<display_name, <Option<String> as AsExpression<<display_name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<email_verified, <bool as AsExpression<<email_verified as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<role, <String as AsExpression<<role as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<banned, <bool as AsExpression<<banned as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<banned_reason, <Option<String> as AsExpression<<banned_reason as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<banned_until, <Option<NaiveDateTime> as AsExpression<<banned_until as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<updated_at, <NaiveDateTime as AsExpression<<updated_at as Expression>::SqlType>>::Expression>>>) as AsChangeset>::Changeset
type Changeset = <(Option<Grouped<Eq<email, <String as AsExpression<<email as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<display_name, <Option<String> as AsExpression<<display_name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<email_verified, <bool as AsExpression<<email_verified as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<role, <String as AsExpression<<role as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<banned, <bool as AsExpression<<banned as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<banned_reason, <Option<String> as AsExpression<<banned_reason as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<banned_until, <Option<NaiveDateTime> as AsExpression<<banned_until as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<updated_at, <NaiveDateTime as AsExpression<<updated_at as Expression>::SqlType>>::Expression>>>) as AsChangeset>::Changeset
The update statement this type represents
Source§fn as_changeset(self) -> <Self as AsChangeset>::Changeset
fn as_changeset(self) -> <Self as AsChangeset>::Changeset
Convert
self into the actual update statement being executedSource§impl Clone for UpdateUser
impl Clone for UpdateUser
Source§fn clone(&self) -> UpdateUser
fn clone(&self) -> UpdateUser
Returns a duplicate 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 UpdateUser
impl Debug for UpdateUser
Source§impl<'de> Deserialize<'de> for UpdateUser
impl<'de> Deserialize<'de> for UpdateUser
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 Freeze for UpdateUser
impl RefUnwindSafe for UpdateUser
impl Send for UpdateUser
impl Sync for UpdateUser
impl Unpin for UpdateUser
impl UnsafeUnpin for UpdateUser
impl UnwindSafe for UpdateUser
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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