pub struct UserUpdate {
pub email: Option<String>,
pub first_name: Option<String>,
pub is_active: Option<bool>,
pub is_superuser: Option<bool>,
pub is_verified: Option<bool>,
pub last_name: Option<String>,
pub password: Option<String>,
}Expand description
UserUpdate
JSON schema
{
"title": "UserUpdate",
"type": "object",
"properties": {
"email": {
"title": "Email",
"type": [
"string",
"null"
],
"format": "email"
},
"first_name": {
"title": "First Name",
"type": [
"string",
"null"
]
},
"is_active": {
"title": "Is Active",
"type": [
"boolean",
"null"
]
},
"is_superuser": {
"title": "Is Superuser",
"type": [
"boolean",
"null"
]
},
"is_verified": {
"title": "Is Verified",
"type": [
"boolean",
"null"
]
},
"last_name": {
"title": "Last Name",
"type": [
"string",
"null"
]
},
"password": {
"title": "Password",
"type": [
"string",
"null"
]
}
}
}Fields§
§email: Option<String>§first_name: Option<String>§is_active: Option<bool>§is_superuser: Option<bool>§is_verified: Option<bool>§last_name: Option<String>§password: Option<String>Implementations§
Source§impl UserUpdate
impl UserUpdate
pub fn builder() -> UserUpdate
Trait Implementations§
Source§impl Clone for UserUpdate
impl Clone for UserUpdate
Source§fn clone(&self) -> UserUpdate
fn clone(&self) -> UserUpdate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UserUpdate
impl Debug for UserUpdate
Source§impl Default for UserUpdate
impl Default for UserUpdate
Source§impl<'de> Deserialize<'de> for UserUpdate
impl<'de> Deserialize<'de> for UserUpdate
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 From<&UserUpdate> for UserUpdate
impl From<&UserUpdate> for UserUpdate
Source§fn from(value: &UserUpdate) -> Self
fn from(value: &UserUpdate) -> Self
Converts to this type from the input type.
Source§impl From<UserUpdate> for UserUpdate
impl From<UserUpdate> for UserUpdate
Source§fn from(value: UserUpdate) -> Self
fn from(value: UserUpdate) -> Self
Converts to this type from the input type.
Source§impl Serialize for UserUpdate
impl Serialize for UserUpdate
Source§impl TryFrom<UserUpdate> for UserUpdate
impl TryFrom<UserUpdate> for UserUpdate
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: UserUpdate) -> Result<Self, ConversionError>
fn try_from(value: UserUpdate) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for UserUpdate
impl RefUnwindSafe for UserUpdate
impl Send for UserUpdate
impl Sync for UserUpdate
impl Unpin for UserUpdate
impl UnwindSafe for UserUpdate
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