Struct rust_tdlib::types::SetAuthenticationPhoneNumber
source · pub struct SetAuthenticationPhoneNumber { /* private fields */ }
Expand description
Sets the phone number of the user and sends an authentication code to the user. Works only when the current authorization state is authorizationStateWaitPhoneNumber, or if there is no pending authentication query and the current authorization state is authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword
Implementations§
Trait Implementations§
source§impl AsRef<SetAuthenticationPhoneNumber> for SetAuthenticationPhoneNumber
impl AsRef<SetAuthenticationPhoneNumber> for SetAuthenticationPhoneNumber
source§fn as_ref(&self) -> &SetAuthenticationPhoneNumber
fn as_ref(&self) -> &SetAuthenticationPhoneNumber
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for SetAuthenticationPhoneNumber
impl Clone for SetAuthenticationPhoneNumber
source§fn clone(&self) -> SetAuthenticationPhoneNumber
fn clone(&self) -> SetAuthenticationPhoneNumber
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 SetAuthenticationPhoneNumber
impl Debug for SetAuthenticationPhoneNumber
source§impl Default for SetAuthenticationPhoneNumber
impl Default for SetAuthenticationPhoneNumber
source§fn default() -> SetAuthenticationPhoneNumber
fn default() -> SetAuthenticationPhoneNumber
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SetAuthenticationPhoneNumber
impl<'de> Deserialize<'de> for SetAuthenticationPhoneNumber
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