pub struct SetPassword { /* private fields */ }
Expand description
Changes the password for the current user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed
Implementations§
Source§impl SetPassword
impl SetPassword
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> SetPasswordBuilder
pub fn old_password(&self) -> &String
pub fn new_password(&self) -> &String
pub fn new_hint(&self) -> &String
pub fn set_recovery_email_address(&self) -> bool
pub fn new_recovery_email_address(&self) -> &String
Trait Implementations§
Source§impl AsRef<SetPassword> for SetPassword
impl AsRef<SetPassword> for SetPassword
Source§fn as_ref(&self) -> &SetPassword
fn as_ref(&self) -> &SetPassword
Converts this type into a shared reference of the (usually inferred) input type.
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 Default for SetPassword
impl Default for SetPassword
Source§fn default() -> SetPassword
fn default() -> SetPassword
Returns the “default value” for a type. Read more
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
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