pub enum PhoneNumberCodeType {
Change,
Verify,
ConfirmOwnership(PhoneNumberCodeTypeConfirmOwnership),
}Variants§
Change
Checks ownership of a new phone number to change the user’s authentication phone number; for official Android and iOS applications only.
Verify
Verifies ownership of a phone number to be added to the user’s Telegram Passport
ConfirmOwnership(PhoneNumberCodeTypeConfirmOwnership)
Confirms ownership of a phone number to prevent account deletion while handling links of the type internalLinkTypePhoneNumberConfirmation
Trait Implementations§
Source§impl Clone for PhoneNumberCodeType
impl Clone for PhoneNumberCodeType
Source§fn clone(&self) -> PhoneNumberCodeType
fn clone(&self) -> PhoneNumberCodeType
Returns a copy 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 PhoneNumberCodeType
impl Debug for PhoneNumberCodeType
Source§impl<'de> Deserialize<'de> for PhoneNumberCodeType
impl<'de> Deserialize<'de> for PhoneNumberCodeType
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
Source§impl PartialEq for PhoneNumberCodeType
impl PartialEq for PhoneNumberCodeType
Source§impl Serialize for PhoneNumberCodeType
impl Serialize for PhoneNumberCodeType
impl StructuralPartialEq for PhoneNumberCodeType
Auto Trait Implementations§
impl Freeze for PhoneNumberCodeType
impl RefUnwindSafe for PhoneNumberCodeType
impl Send for PhoneNumberCodeType
impl Sync for PhoneNumberCodeType
impl Unpin for PhoneNumberCodeType
impl UnwindSafe for PhoneNumberCodeType
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