pub struct User {
pub id: i64,
pub uuid: String,
pub login: String,
pub name: String,
pub email: String,
pub apikey: String,
pub is_active: bool,
pub is_admin: bool,
pub created_at: String,
pub last_seen: Option<String>,
}Expand description
A user account.
Fields§
§id: i64Database ID.
uuid: StringUnique UUID.
login: StringLogin name.
name: StringDisplay name.
email: StringEmail address.
apikey: StringAPI key.
is_active: boolWhether the account is active.
is_admin: boolWhether the account has admin privileges.
created_at: StringAccount creation timestamp.
last_seen: Option<String>Last seen timestamp.
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
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