Enum rtdlib::types::AuthenticationCodeType [−][src]
pub enum AuthenticationCodeType {
Call(AuthenticationCodeTypeCall),
FlashCall(AuthenticationCodeTypeFlashCall),
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
An authentication code is delivered via a phone call to the specified phone number
Tuple Fields of Call
An authentication code is delivered by an immediately cancelled call to the specified phone number. The number from which the call was made is the code
Tuple Fields of FlashCall
An authentication code is delivered via an SMS message to the specified phone number
Tuple Fields of Sms
An authentication code is delivered via a private Telegram message, which can be viewed in another client
Tuple Fields of TelegramMessage
Implementations
pub fn on_telegram_message<F: FnOnce(&AuthenticationCodeTypeTelegramMessage)>(
&self,
fnc: F
) -> &Self
Trait Implementations
Performs the conversion.
fn deserialize<D>(deserializer: D) -> Result<AuthenticationCodeType, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<AuthenticationCodeType, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for AuthenticationCodeType
impl Send for AuthenticationCodeType
impl Sync for AuthenticationCodeType
impl Unpin for AuthenticationCodeType
impl UnwindSafe for AuthenticationCodeType
Blanket Implementations
Mutably borrows from an owned value. Read more