pub struct SendPhoneNumberVerificationCode {
pub phone_number: String,
pub allow_flash_call: bool,
pub is_current_phone_number: bool,
}
Expand description
Sends a code to verify a phone number to be added to a user’s Telegram Passport
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 SendPhoneNumberVerificationCode
impl Clone for SendPhoneNumberVerificationCode
Source§fn clone(&self) -> SendPhoneNumberVerificationCode
fn clone(&self) -> SendPhoneNumberVerificationCode
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<'de> Deserialize<'de> for SendPhoneNumberVerificationCode
impl<'de> Deserialize<'de> for SendPhoneNumberVerificationCode
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 SendPhoneNumberVerificationCode
impl RefUnwindSafe for SendPhoneNumberVerificationCode
impl Send for SendPhoneNumberVerificationCode
impl Sync for SendPhoneNumberVerificationCode
impl Unpin for SendPhoneNumberVerificationCode
impl UnwindSafe for SendPhoneNumberVerificationCode
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