Struct tdlib_types::types::PasswordState
source · pub struct PasswordState {
pub has_password: bool,
pub password_hint: String,
pub has_recovery_email_address: bool,
pub has_passport_data: bool,
pub unconfirmed_recovery_email_address_pattern: String,
}
Expand description
Represents the current state of 2-step verification
Fields
has_password: bool
True if a 2-step verification password is set
password_hint: String
Hint for the password; can be empty
has_recovery_email_address: bool
True if a recovery email is set
has_passport_data: bool
True if some Telegram Passport elements were saved
unconfirmed_recovery_email_address_pattern: String
Pattern of the email address to which the confirmation email was sent
Trait Implementations
sourceimpl Clone for PasswordState
impl Clone for PasswordState
sourcefn clone(&self) -> PasswordState
fn clone(&self) -> PasswordState
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 moresourceimpl Debug for PasswordState
impl Debug for PasswordState
sourceimpl<'de> Deserialize<'de> for PasswordState
impl<'de> Deserialize<'de> for PasswordState
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 PasswordState
impl Serialize for PasswordState
Auto Trait Implementations
impl RefUnwindSafe for PasswordState
impl Send for PasswordState
impl Sync for PasswordState
impl Unpin for PasswordState
impl UnwindSafe for PasswordState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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