Enum rust_tdlib::types::AuthenticationCodeType
source · pub enum AuthenticationCodeType {
Call(AuthenticationCodeTypeCall),
FlashCall(AuthenticationCodeTypeFlashCall),
MissedCall(AuthenticationCodeTypeMissedCall),
Sms(AuthenticationCodeTypeSms),
TelegramMessage(AuthenticationCodeTypeTelegramMessage),
// some variants omitted
}
Expand description
Provides information about the method by which an authentication code is delivered to the user
Variants§
Call(AuthenticationCodeTypeCall)
An authentication code is delivered via a phone call to the specified phone number
FlashCall(AuthenticationCodeTypeFlashCall)
An authentication code is delivered by an immediately canceled call to the specified phone number. The phone number that calls is the code that must be entered automatically
MissedCall(AuthenticationCodeTypeMissedCall)
An authentication code is delivered by an immediately canceled call to the specified phone number. The last digits of the phone number that calls are the code that must be entered manually by the user
Sms(AuthenticationCodeTypeSms)
An authentication code is delivered via an SMS message to the specified phone number
TelegramMessage(AuthenticationCodeTypeTelegramMessage)
An authentication code is delivered via a private Telegram message, which can be viewed from another active session
Implementations§
Trait Implementations§
source§impl AsRef<AuthenticationCodeType> for AuthenticationCodeType
impl AsRef<AuthenticationCodeType> for AuthenticationCodeType
source§fn as_ref(&self) -> &AuthenticationCodeType
fn as_ref(&self) -> &AuthenticationCodeType
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for AuthenticationCodeType
impl Clone for AuthenticationCodeType
source§fn clone(&self) -> AuthenticationCodeType
fn clone(&self) -> AuthenticationCodeType
Returns a copy 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 AuthenticationCodeType
impl Debug for AuthenticationCodeType
source§impl Default for AuthenticationCodeType
impl Default for AuthenticationCodeType
source§fn default() -> AuthenticationCodeType
fn default() -> AuthenticationCodeType
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AuthenticationCodeType
impl<'de> Deserialize<'de> for AuthenticationCodeType
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