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§
Source§impl Clone for PasswordState
impl Clone for PasswordState
Source§fn clone(&self) -> PasswordState
fn clone(&self) -> PasswordState
Returns a duplicate 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<'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
Auto Trait Implementations§
impl Freeze for PasswordState
impl RefUnwindSafe for PasswordState
impl Send for PasswordState
impl Sync for PasswordState
impl Unpin for PasswordState
impl UnwindSafe for PasswordState
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