pub struct PartialUser {
pub pk: i32,
pub username: String,
pub name: String,
pub is_active: Option<bool>,
pub last_login: Option<Option<String>>,
pub email: Option<String>,
pub attributes: Option<HashMap<String, Value>>,
pub uid: String,
}Expand description
PartialUser : Partial User Serializer, does not include child relations.
Fields§
§pk: i32§username: StringRequired. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
name: StringUser’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>>§email: Option<String>§attributes: Option<HashMap<String, Value>>§uid: StringImplementations§
Source§impl PartialUser
impl PartialUser
Trait Implementations§
Source§impl Clone for PartialUser
impl Clone for PartialUser
Source§fn clone(&self) -> PartialUser
fn clone(&self) -> PartialUser
Returns a duplicate of the value. Read more
1.0.0 · 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 PartialUser
impl Debug for PartialUser
Source§impl Default for PartialUser
impl Default for PartialUser
Source§fn default() -> PartialUser
fn default() -> PartialUser
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PartialUser
impl<'de> Deserialize<'de> for PartialUser
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
Source§impl PartialEq for PartialUser
impl PartialEq for PartialUser
Source§impl Serialize for PartialUser
impl Serialize for PartialUser
impl StructuralPartialEq for PartialUser
Auto Trait Implementations§
impl Freeze for PartialUser
impl RefUnwindSafe for PartialUser
impl Send for PartialUser
impl Sync for PartialUser
impl Unpin for PartialUser
impl UnsafeUnpin for PartialUser
impl UnwindSafe for PartialUser
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