pub struct UserInfo {
pub username: String,
pub policies: Vec<String>,
}Expand description
What may be said about a user to anyone allowed to manage it. A separate type from the stored record, so the password hash cannot end up in a response by someone serializing the wrong struct.
Fields§
§username: String§policies: Vec<String>Trait Implementations§
impl Eq for UserInfo
impl StructuralPartialEq for UserInfo
Auto Trait Implementations§
impl Freeze for UserInfo
impl RefUnwindSafe for UserInfo
impl Send for UserInfo
impl Sync for UserInfo
impl Unpin for UserInfo
impl UnsafeUnpin for UserInfo
impl UnwindSafe for UserInfo
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