Struct humphrey_auth::user::User
source · pub struct User {
pub uid: String,
pub session: Option<Session>,
pub password_hash: String,
}
Expand description
Represents a user.
Fields§
§uid: String
The unique ID of the user.
session: Option<Session>
The user’s current session, if they have one.
password_hash: String
The Argon2 hashed password of the user.
Implementations§
Trait Implementations§
Auto Trait Implementations§
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
source§impl<T> HeaderLike for T
impl<T> HeaderLike for T
source§fn to_header(self) -> HeaderType
fn to_header(self) -> HeaderType
Consume the value and return the corresponding header type.