pub struct User {
pub index: usize,
pub name: String,
pub username: String,
pub email: Option<String>,
pub password: String,
}
Expand description
A forge user
Fields§
§index: usize
Unique identifier of the user
name: String
User readable name of the user
username: String
Unique name readable name of the user
email: Option<String>
Mail of the user
password: String
Password of the user
Trait Implementations§
source§impl<'de> Deserialize<'de> for User
impl<'de> Deserialize<'de> for User
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<User> for User
impl PartialEq<User> for User
impl Eq for User
impl StructuralEq for User
impl StructuralPartialEq for User
Auto Trait Implementations§
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin 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