pub struct AuthorizationStateWaitEmailAddress {
pub allow_apple_id: bool,
pub allow_google_id: bool,
}
Expand description
TDLib needs the user’s email address to authorize. Call setAuthenticationEmailAddress to provide the email address, or directly call checkAuthenticationEmailCode with Apple ID/Google ID token if allowed
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
Trait Implementations§
Source§impl Clone for AuthorizationStateWaitEmailAddress
impl Clone for AuthorizationStateWaitEmailAddress
Source§fn clone(&self) -> AuthorizationStateWaitEmailAddress
fn clone(&self) -> AuthorizationStateWaitEmailAddress
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 AuthorizationStateWaitEmailAddress
impl Default for AuthorizationStateWaitEmailAddress
Source§fn default() -> AuthorizationStateWaitEmailAddress
fn default() -> AuthorizationStateWaitEmailAddress
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AuthorizationStateWaitEmailAddress
impl<'de> Deserialize<'de> for AuthorizationStateWaitEmailAddress
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 AuthorizationStateWaitEmailAddress
impl PartialEq for AuthorizationStateWaitEmailAddress
Source§fn eq(&self, other: &AuthorizationStateWaitEmailAddress) -> bool
fn eq(&self, other: &AuthorizationStateWaitEmailAddress) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for AuthorizationStateWaitEmailAddress
Auto Trait Implementations§
impl Freeze for AuthorizationStateWaitEmailAddress
impl RefUnwindSafe for AuthorizationStateWaitEmailAddress
impl Send for AuthorizationStateWaitEmailAddress
impl Sync for AuthorizationStateWaitEmailAddress
impl Unpin for AuthorizationStateWaitEmailAddress
impl UnwindSafe for AuthorizationStateWaitEmailAddress
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