pub struct UserRead {
pub email: String,
pub first_name: String,
pub id: i64,
pub is_active: bool,
pub is_superuser: bool,
pub is_verified: bool,
pub last_name: String,
}Expand description
UserRead
JSON schema
{
"title": "UserRead",
"type": "object",
"required": [
"email",
"first_name",
"id",
"last_name"
],
"properties": {
"email": {
"title": "Email",
"type": "string",
"format": "email"
},
"first_name": {
"title": "First Name",
"type": "string"
},
"id": {
"title": "Id",
"type": "integer"
},
"is_active": {
"title": "Is Active",
"default": true,
"type": "boolean"
},
"is_superuser": {
"title": "Is Superuser",
"default": false,
"type": "boolean"
},
"is_verified": {
"title": "Is Verified",
"default": false,
"type": "boolean"
},
"last_name": {
"title": "Last Name",
"type": "string"
}
}
}Fields§
§email: String§first_name: String§id: i64§is_active: bool§is_superuser: bool§is_verified: bool§last_name: StringImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UserRead
impl<'de> Deserialize<'de> for UserRead
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
Auto Trait Implementations§
impl Freeze for UserRead
impl RefUnwindSafe for UserRead
impl Send for UserRead
impl Sync for UserRead
impl Unpin for UserRead
impl UnwindSafe for UserRead
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