pub struct PasswordState {
pub has_password: bool,
pub password_hint: String,
pub has_recovery_email_address: bool,
pub has_passport_data: bool,
pub recovery_email_address_code_info: Option<EmailAddressAuthenticationCodeInfo>,
pub login_email_address_pattern: String,
pub pending_reset_date: i32,
}
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; may 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
recovery_email_address_code_info: Option<EmailAddressAuthenticationCodeInfo>
Information about the recovery email address to which the confirmation email was sent; may be null
login_email_address_pattern: String
Pattern of the email address set up for logging in
pending_reset_date: i32
If not 0, point in time (Unix timestamp) after which the 2-step verification password can be reset immediately using resetPassword
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 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
Source§impl PartialEq for PasswordState
impl PartialEq for PasswordState
Source§impl Serialize for PasswordState
impl Serialize for PasswordState
impl StructuralPartialEq for PasswordState
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