pub struct AuthorizationStateWaitPassword {
pub password_hint: String,
pub has_recovery_email_address: bool,
pub has_passport_data: bool,
pub recovery_email_address_pattern: String,
}
Expand description
The user has been authorized, but needs to enter a 2-step verification password to start using the application. Call checkAuthenticationPassword to provide the password, or requestAuthenticationPasswordRecovery to recover the password, or deleteAccount to delete the account after a week
Fields§
§password_hint: String
Hint for the password; may be empty
has_recovery_email_address: bool
True, if a recovery email address has been set up
has_passport_data: bool
True, if some Telegram Passport elements were saved
recovery_email_address_pattern: String
Pattern of the email address to which the recovery email was sent; empty until a recovery email has been sent
Trait Implementations§
Source§impl Clone for AuthorizationStateWaitPassword
impl Clone for AuthorizationStateWaitPassword
Source§fn clone(&self) -> AuthorizationStateWaitPassword
fn clone(&self) -> AuthorizationStateWaitPassword
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 Default for AuthorizationStateWaitPassword
impl Default for AuthorizationStateWaitPassword
Source§fn default() -> AuthorizationStateWaitPassword
fn default() -> AuthorizationStateWaitPassword
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AuthorizationStateWaitPassword
impl<'de> Deserialize<'de> for AuthorizationStateWaitPassword
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 AuthorizationStateWaitPassword
impl PartialEq for AuthorizationStateWaitPassword
Source§fn eq(&self, other: &AuthorizationStateWaitPassword) -> bool
fn eq(&self, other: &AuthorizationStateWaitPassword) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for AuthorizationStateWaitPassword
Auto Trait Implementations§
impl Freeze for AuthorizationStateWaitPassword
impl RefUnwindSafe for AuthorizationStateWaitPassword
impl Send for AuthorizationStateWaitPassword
impl Sync for AuthorizationStateWaitPassword
impl Unpin for AuthorizationStateWaitPassword
impl UnwindSafe for AuthorizationStateWaitPassword
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