pub struct AdminUser {
pub username: String,
pub session_id: String,
pub is_superuser: bool,
}Fields§
§username: String§session_id: String§is_superuser: booltrue = bypasses all permission checks (superuser access)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AdminUser
impl RefUnwindSafe for AdminUser
impl Send for AdminUser
impl Sync for AdminUser
impl Unpin for AdminUser
impl UnsafeUnpin for AdminUser
impl UnwindSafe for AdminUser
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