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
Auto Trait Implementations§
impl Freeze for SetAuthenticationPhoneNumber
impl RefUnwindSafe for SetAuthenticationPhoneNumber
impl Send for SetAuthenticationPhoneNumber
impl Sync for SetAuthenticationPhoneNumber
impl Unpin for SetAuthenticationPhoneNumber
impl UnwindSafe for SetAuthenticationPhoneNumber
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