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§
Source§impl Clone for SetAuthenticationPhoneNumber
impl Clone for SetAuthenticationPhoneNumber
Source§fn clone(&self) -> SetAuthenticationPhoneNumber
fn clone(&self) -> SetAuthenticationPhoneNumber
Returns a duplicate 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<'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