Struct tdlib_types::methods::SetAuthenticationPhoneNumber
source · pub struct SetAuthenticationPhoneNumber {
pub phone_number: String,
pub allow_flash_call: bool,
pub is_current_phone_number: bool,
}
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
Fields
phone_number: String
The phone number of the user, in international format
allow_flash_call: bool
Pass true if the authentication code may be sent via flash call to the specified phone number
is_current_phone_number: bool
Pass true if the phone number is used on the current device. Ignored if allow_flash_call is false
Trait Implementations
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 moresourceimpl Debug for SetAuthenticationPhoneNumber
impl Debug for SetAuthenticationPhoneNumber
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
sourceimpl Method for SetAuthenticationPhoneNumber
impl Method for SetAuthenticationPhoneNumber
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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