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 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 Default for UpdateUser
impl Default for UpdateUser
Source§fn default() -> UpdateUser
fn default() -> UpdateUser
Returns the “default value” for a type. Read more
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