pub struct UpdateUserPassword {
pub current_password: Option<String>,
pub current_pw: Option<String>,
pub new_pw: Option<String>,
pub reset_password: Option<bool>,
}
Expand description
The update user password request body.
JSON schema
{
"description": "The update user password request body.",
"type": "object",
"properties": {
"CurrentPassword": {
"description": "Gets or sets the current sha1-hashed password.",
"type": [
"string",
"null"
]
},
"CurrentPw": {
"description": "Gets or sets the current plain text password.",
"type": [
"string",
"null"
]
},
"NewPw": {
"description": "Gets or sets the new plain text password.",
"type": [
"string",
"null"
]
},
"ResetPassword": {
"description": "Gets or sets a value indicating whether to reset
the password.",
"type": "boolean"
}
},
"additionalProperties": false
}
Fields§
§current_password: Option<String>
Gets or sets the current sha1-hashed password.
current_pw: Option<String>
Gets or sets the current plain text password.
new_pw: Option<String>
Gets or sets the new plain text password.
reset_password: Option<bool>
Gets or sets a value indicating whether to reset the password.
Implementations§
Source§impl UpdateUserPassword
impl UpdateUserPassword
pub fn builder() -> UpdateUserPassword
Trait Implementations§
Source§impl Clone for UpdateUserPassword
impl Clone for UpdateUserPassword
Source§fn clone(&self) -> UpdateUserPassword
fn clone(&self) -> UpdateUserPassword
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 UpdateUserPassword
impl Debug for UpdateUserPassword
Source§impl<'de> Deserialize<'de> for UpdateUserPassword
impl<'de> Deserialize<'de> for UpdateUserPassword
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<&UpdateUserPassword> for UpdateUserPassword
impl From<&UpdateUserPassword> for UpdateUserPassword
Source§fn from(value: &UpdateUserPassword) -> Self
fn from(value: &UpdateUserPassword) -> Self
Converts to this type from the input type.
Source§impl From<UpdateUserPassword> for UpdateUserPassword
impl From<UpdateUserPassword> for UpdateUserPassword
Source§fn from(value: UpdateUserPassword) -> Self
fn from(value: UpdateUserPassword) -> Self
Converts to this type from the input type.
Source§impl Serialize for UpdateUserPassword
impl Serialize for UpdateUserPassword
Source§impl TryFrom<UpdateUserPassword> for UpdateUserPassword
impl TryFrom<UpdateUserPassword> for UpdateUserPassword
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: UpdateUserPassword) -> Result<Self, ConversionError>
fn try_from(value: UpdateUserPassword) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for UpdateUserPassword
impl RefUnwindSafe for UpdateUserPassword
impl Send for UpdateUserPassword
impl Sync for UpdateUserPassword
impl Unpin for UpdateUserPassword
impl UnwindSafe for UpdateUserPassword
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