pub struct User {Show 15 fields
pub id: Option<Uuid>,
pub object_type: Option<String>,
pub display: Option<String>,
pub url: Option<String>,
pub natural_slug: 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>>,
}Expand description
User : 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: Option<Uuid>§object_type: Option<String>§display: Option<String>Human friendly display value
url: Option<String>§natural_slug: 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>>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for User
impl<'de> Deserialize<'de> for User
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
impl StructuralPartialEq for User
Auto Trait Implementations§
impl Freeze for User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnsafeUnpin for User
impl UnwindSafe for User
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