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
sourceimpl 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
sourceimpl AsRef<SetPassword> for SetPassword
impl AsRef<SetPassword> for SetPassword
sourcefn as_ref(&self) -> &SetPassword
fn as_ref(&self) -> &SetPassword
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for SetPassword
impl Clone for SetPassword
sourcefn clone(&self) -> SetPassword
fn clone(&self) -> SetPassword
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for SetPassword
impl Debug for SetPassword
sourceimpl Default for SetPassword
impl Default for SetPassword
sourcefn default() -> SetPassword
fn default() -> SetPassword
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for SetPassword
impl<'de> Deserialize<'de> for SetPassword
sourcefn 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
sourceimpl Serialize for SetPassword
impl Serialize for SetPassword
Auto Trait Implementations
impl RefUnwindSafe for SetPassword
impl Send for SetPassword
impl Sync for SetPassword
impl Unpin for SetPassword
impl UnwindSafe for SetPassword
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more