pub struct SendPhoneNumberConfirmationCode {
pub hash: String,
pub phone_number: String,
pub allow_flash_call: bool,
pub is_current_phone_number: bool,
}
Expand description
Sends phone number confirmation code. Should be called when user presses “https://t.me/confirmphone?phone=&hash=” or “tg://confirmphone?phone=&hash=******” link
Fields§
§hash: String
Value of the “hash” parameter from the link
phone_number: String
Value of the “phone” parameter from the link
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 SendPhoneNumberConfirmationCode
impl Clone for SendPhoneNumberConfirmationCode
Source§fn clone(&self) -> SendPhoneNumberConfirmationCode
fn clone(&self) -> SendPhoneNumberConfirmationCode
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 SendPhoneNumberConfirmationCode
impl<'de> Deserialize<'de> for SendPhoneNumberConfirmationCode
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 SendPhoneNumberConfirmationCode
impl RefUnwindSafe for SendPhoneNumberConfirmationCode
impl Send for SendPhoneNumberConfirmationCode
impl Sync for SendPhoneNumberConfirmationCode
impl Unpin for SendPhoneNumberConfirmationCode
impl UnwindSafe for SendPhoneNumberConfirmationCode
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