pub struct AuthorizationStateWaitEmailCode {
pub allow_apple_id: bool,
pub allow_google_id: bool,
pub code_info: EmailAddressAuthenticationCodeInfo,
pub email_address_reset_state: Option<EmailAddressResetState>,
}
Expand description
TDLib needs the user’s authentication code sent to an email address to authorize. Call checkAuthenticationEmailCode to provide the code
Fields§
§allow_apple_id: bool
True, if authorization through Apple ID is allowed
allow_google_id: bool
True, if authorization through Google ID is allowed
code_info: EmailAddressAuthenticationCodeInfo
Information about the sent authentication code
email_address_reset_state: Option<EmailAddressResetState>
Reset state of the email address; may be null if the email address can’t be reset
Trait Implementations§
Source§impl Clone for AuthorizationStateWaitEmailCode
impl Clone for AuthorizationStateWaitEmailCode
Source§fn clone(&self) -> AuthorizationStateWaitEmailCode
fn clone(&self) -> AuthorizationStateWaitEmailCode
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 AuthorizationStateWaitEmailCode
impl Default for AuthorizationStateWaitEmailCode
Source§fn default() -> AuthorizationStateWaitEmailCode
fn default() -> AuthorizationStateWaitEmailCode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AuthorizationStateWaitEmailCode
impl<'de> Deserialize<'de> for AuthorizationStateWaitEmailCode
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 AuthorizationStateWaitEmailCode
impl PartialEq for AuthorizationStateWaitEmailCode
Source§fn eq(&self, other: &AuthorizationStateWaitEmailCode) -> bool
fn eq(&self, other: &AuthorizationStateWaitEmailCode) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for AuthorizationStateWaitEmailCode
Auto Trait Implementations§
impl Freeze for AuthorizationStateWaitEmailCode
impl RefUnwindSafe for AuthorizationStateWaitEmailCode
impl Send for AuthorizationStateWaitEmailCode
impl Sync for AuthorizationStateWaitEmailCode
impl Unpin for AuthorizationStateWaitEmailCode
impl UnwindSafe for AuthorizationStateWaitEmailCode
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