pub struct UpdateUser {
pub username: Option<String>,
pub email: Option<String>,
pub first_name: Option<String>,
pub last_name: Option<String>,
pub is_superuser: Option<bool>,
pub is_staff: Option<bool>,
pub is_active: Option<bool>,
pub groups: Option<Vec<GroupId>>,
}Fields§
§username: Option<String>Username.
email: Option<String>Email address.
first_name: Option<String>First name of the user.
last_name: Option<String>Last name of the user.
is_superuser: Option<bool>Whether the user is a superuser.
is_staff: Option<bool>Whether the user is a staff member.
is_active: Option<bool>Whether the user is active.
groups: Option<Vec<GroupId>>Groups the user belongs to.
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 (const: unstable) · 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 Serialize for UpdateUser
impl Serialize for UpdateUser
impl UpdateDtoObject for UpdateUser
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