Struct rust_tdlib::types::PasswordState
source · pub struct PasswordState { /* private fields */ }
Expand description
Represents the current state of 2-step verification
Implementations§
source§impl PasswordState
impl PasswordState
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> PasswordStateBuilder
pub fn has_password(&self) -> bool
pub fn password_hint(&self) -> &String
pub fn has_recovery_email_address(&self) -> bool
pub fn has_passport_data(&self) -> bool
pub fn recovery_email_address_code_info( &self ) -> &Option<EmailAddressAuthenticationCodeInfo>
pub fn pending_reset_date(&self) -> i32
Trait Implementations§
source§impl AsRef<PasswordState> for PasswordState
impl AsRef<PasswordState> for PasswordState
source§fn as_ref(&self) -> &PasswordState
fn as_ref(&self) -> &PasswordState
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for PasswordState
impl Clone for PasswordState
source§fn clone(&self) -> PasswordState
fn clone(&self) -> PasswordState
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 PasswordState
impl Debug for PasswordState
source§impl Default for PasswordState
impl Default for PasswordState
source§fn default() -> PasswordState
fn default() -> PasswordState
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PasswordState
impl<'de> Deserialize<'de> for PasswordState
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