pub struct User {
pub name: String,
pub last_login: bool,
}Expand description
A user of the device.
Fields§
§name: StringThe login name.
last_login: boolWhether this user logged in last.
Trait Implementations§
impl Eq for User
impl StructuralPartialEq for User
Auto Trait Implementations§
impl Forget for User
impl Freeze for User
impl Move 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