pub struct User {
pub name: String,
pub password: String,
pub role: String,
}Expand description
A user with credentials and role assignment.
Fields§
§name: StringUsername.
password: StringPassword (plaintext — hashing is the deployer’s responsibility).
role: StringRole name.
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