pub struct SetPassword {
pub old_password: String,
pub new_password: String,
pub new_hint: String,
pub set_recovery_email_address: bool,
pub new_recovery_email_address: String,
}
Expand description
Changes the password for the user. If a new recovery email address is specified, then the error EMAIL_UNCONFIRMED is returned and the password change will not be applied until the new recovery email address has been confirmed. The application should periodically call getPasswordState to check whether the new email address has been confirmed
Fields§
§old_password: String
Previous password of the user
new_password: String
New password of the user; may be empty to remove the password
new_hint: String
New password hint; may be empty
set_recovery_email_address: bool
Pass true if the recovery email address should be changed
new_recovery_email_address: String
New recovery email address; may be empty
Trait Implementations§
Source§impl Clone for SetPassword
impl Clone for SetPassword
Source§fn clone(&self) -> SetPassword
fn clone(&self) -> SetPassword
Returns a copy 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 SetPassword
impl Debug for SetPassword
Source§impl<'de> Deserialize<'de> for SetPassword
impl<'de> Deserialize<'de> for SetPassword
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 Method for SetPassword
impl Method for SetPassword
Auto Trait Implementations§
impl Freeze for SetPassword
impl RefUnwindSafe for SetPassword
impl Send for SetPassword
impl Sync for SetPassword
impl Unpin for SetPassword
impl UnwindSafe for SetPassword
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