pub struct BulkWritableUserRequest {Show 13 fields
pub id: Uuid,
pub password: Option<Option<String>>,
pub last_login: Option<Option<String>>,
pub is_superuser: Option<bool>,
pub username: String,
pub first_name: Option<String>,
pub last_name: Option<String>,
pub email: Option<String>,
pub is_staff: Option<bool>,
pub is_active: Option<bool>,
pub date_joined: Option<String>,
pub config_data: Option<Option<Value>>,
pub groups: Option<Vec<ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
}Expand description
BulkWritableUserRequest : Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
Fields§
§id: Uuid§password: Option<Option<String>>§last_login: Option<Option<String>>§is_superuser: Option<bool>Designates that this user has all permissions without explicitly assigning them.
username: StringRequired. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
first_name: Option<String>§last_name: Option<String>§email: Option<String>§is_staff: Option<bool>Designates whether the user can log into this admin site.
is_active: Option<bool>Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
date_joined: Option<String>§config_data: Option<Option<Value>>§groups: Option<Vec<ApprovalWorkflowStageResponseApprovalWorkflowStage>>The groups this user belongs to. A user will get all permissions granted to each of their groups.
Implementations§
Source§impl BulkWritableUserRequest
impl BulkWritableUserRequest
Sourcepub fn new(id: Uuid, username: String) -> BulkWritableUserRequest
pub fn new(id: Uuid, username: String) -> BulkWritableUserRequest
Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
Trait Implementations§
Source§impl Clone for BulkWritableUserRequest
impl Clone for BulkWritableUserRequest
Source§fn clone(&self) -> BulkWritableUserRequest
fn clone(&self) -> BulkWritableUserRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more