pub struct CreateUser {
pub username: String,
pub email: String,
pub first_name: String,
pub last_name: String,
pub is_superuser: bool,
pub is_staff: bool,
pub is_active: bool,
pub groups: Vec<GroupId>,
}Fields§
§username: StringUsername.
email: StringEmail address.
first_name: StringFirst name of the user.
last_name: StringLast name of the user.
is_superuser: boolWhether the user is a superuser.
is_staff: boolWhether the user is a staff member.
is_active: boolWhether the user is active.
groups: Vec<GroupId>Groups the user belongs to.
Trait Implementations§
Source§impl Clone for CreateUser
impl Clone for CreateUser
Source§fn clone(&self) -> CreateUser
fn clone(&self) -> CreateUser
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 CreateUser
impl Debug for CreateUser
Source§impl Default for CreateUser
impl Default for CreateUser
Source§fn default() -> CreateUser
fn default() -> CreateUser
Returns the “default value” for a type. Read more
Source§impl Serialize for CreateUser
impl Serialize for CreateUser
impl CreateDtoObject for CreateUser
Auto Trait Implementations§
impl Freeze for CreateUser
impl RefUnwindSafe for CreateUser
impl Send for CreateUser
impl Sync for CreateUser
impl Unpin for CreateUser
impl UnsafeUnpin for CreateUser
impl UnwindSafe for CreateUser
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