Struct rust_tdlib::types::SetPassword
source · 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