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
sourceimpl AsRef<SetAuthenticationPhoneNumber> for SetAuthenticationPhoneNumber
impl AsRef<SetAuthenticationPhoneNumber> for SetAuthenticationPhoneNumber
sourcefn as_ref(&self) -> &SetAuthenticationPhoneNumber
fn as_ref(&self) -> &SetAuthenticationPhoneNumber
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for SetAuthenticationPhoneNumber
impl Clone for SetAuthenticationPhoneNumber
sourcefn clone(&self) -> SetAuthenticationPhoneNumber
fn clone(&self) -> SetAuthenticationPhoneNumber
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for SetAuthenticationPhoneNumber
impl Debug for SetAuthenticationPhoneNumber
sourceimpl Default for SetAuthenticationPhoneNumber
impl Default for SetAuthenticationPhoneNumber
sourcefn default() -> SetAuthenticationPhoneNumber
fn default() -> SetAuthenticationPhoneNumber
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for SetAuthenticationPhoneNumber
impl<'de> Deserialize<'de> for SetAuthenticationPhoneNumber
sourcefn 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 RefUnwindSafe for SetAuthenticationPhoneNumber
impl Send for SetAuthenticationPhoneNumber
impl Sync for SetAuthenticationPhoneNumber
impl Unpin for SetAuthenticationPhoneNumber
impl UnwindSafe for SetAuthenticationPhoneNumber
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more