pub struct User {Show 18 fields
pub pk: i32,
pub username: String,
pub name: String,
pub is_active: Option<bool>,
pub last_login: Option<Option<String>>,
pub date_joined: String,
pub is_superuser: bool,
pub groups: Option<Vec<Uuid>>,
pub groups_obj: Option<Vec<UserGroup>>,
pub email: Option<String>,
pub avatar: String,
pub attributes: Option<HashMap<String, Value>>,
pub uid: String,
pub path: Option<String>,
pub type: Option<UserTypeEnum>,
pub uuid: Uuid,
pub password_change_date: String,
pub last_updated: String,
}
Expand description
User : User Serializer
Fields§
§pk: i32
§username: String
§name: String
User’s display name.
is_active: Option<bool>
Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
last_login: Option<Option<String>>
§date_joined: String
§is_superuser: bool
§groups: Option<Vec<Uuid>>
§groups_obj: Option<Vec<UserGroup>>
§email: Option<String>
§avatar: String
User’s avatar, either a http/https URL or a data URI
attributes: Option<HashMap<String, Value>>
§uid: String
§path: Option<String>
§type: Option<UserTypeEnum>
§uuid: Uuid
§password_change_date: String
§last_updated: String
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 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