pub struct User {
pub id: String,
pub email: String,
pub webid: String,
pub name: Option<String>,
pub password_hash: String,
}Expand description
User record. password_hash is an Argon2id PHC string.
Fields§
§id: StringStable internal identifier.
email: StringPrimary email (case-normalised before storage).
webid: StringSolid WebID URL — what the access-token webid claim surfaces.
name: Option<String>Display name (free-form).
password_hash: StringArgon2id PHC-encoded password hash.
Trait Implementations§
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