pub struct User<L: AccessLevel> {
pub username: String<32>,
pub access_level: L,
}Expand description
User information.
Contains username, access level, and (when authentication enabled) password hash and salt. This type is always available, even when authentication feature is disabled.
Fields§
§username: String<32>Username (always present)
access_level: LUser’s access level (always present)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<L> Freeze for User<L>where
L: Freeze,
impl<L> RefUnwindSafe for User<L>where
L: RefUnwindSafe,
impl<L> Send for User<L>where
L: Send,
impl<L> Sync for User<L>where
L: Sync,
impl<L> Unpin for User<L>where
L: Unpin,
impl<L> UnsafeUnpin for User<L>where
L: UnsafeUnpin,
impl<L> UnwindSafe for User<L>where
L: UnwindSafe,
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