pub struct UpdateUser {
pub email: Option<String>,
pub name: Option<String>,
pub image: Option<String>,
pub email_verified: Option<bool>,
pub username: Option<String>,
pub display_username: Option<String>,
pub role: Option<String>,
pub banned: Option<bool>,
pub ban_reason: Option<String>,
pub ban_expires: Option<DateTime<Utc>>,
pub two_factor_enabled: Option<bool>,
pub metadata: Option<Value>,
}Expand description
User update data
Fields§
§email: Option<String>§name: Option<String>§image: Option<String>§email_verified: Option<bool>§username: Option<String>§display_username: Option<String>§role: Option<String>§banned: Option<bool>§ban_reason: Option<String>§ban_expires: Option<DateTime<Utc>>§two_factor_enabled: Option<bool>§metadata: Option<Value>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<'de> Deserialize<'de> for UpdateUser
impl<'de> Deserialize<'de> for UpdateUser
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdateUser, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdateUser, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for UpdateUser
impl Serialize for UpdateUser
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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 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