Enum rust_tdlib::types::PassportElement [−][src]
pub enum PassportElement {}Show variants
GetPassportElement(GetPassportElement), Address(PassportElementAddress), BankStatement(PassportElementBankStatement), DriverLicense(PassportElementDriverLicense), EmailAddress(PassportElementEmailAddress), IdentityCard(PassportElementIdentityCard), InternalPassport(PassportElementInternalPassport), Passport(PassportElementPassport), PassportRegistration(PassportElementPassportRegistration), PersonalDetails(PassportElementPersonalDetails), PhoneNumber(PassportElementPhoneNumber), RentalAgreement(PassportElementRentalAgreement), TemporaryRegistration(PassportElementTemporaryRegistration), UtilityBill(PassportElementUtilityBill), SetPassportElement(SetPassportElement), // some variants omitted
Expand description
Contains information about a Telegram Passport element
Variants
GetPassportElement(GetPassportElement)
Returns one of the available Telegram Passport elements
Address(PassportElementAddress)
A Telegram Passport element containing the user’s address
BankStatement(PassportElementBankStatement)
A Telegram Passport element containing the user’s bank statement
DriverLicense(PassportElementDriverLicense)
A Telegram Passport element containing the user’s driver license
EmailAddress(PassportElementEmailAddress)
A Telegram Passport element containing the user’s email address
IdentityCard(PassportElementIdentityCard)
A Telegram Passport element containing the user’s identity card
InternalPassport(PassportElementInternalPassport)
A Telegram Passport element containing the user’s internal passport
Passport(PassportElementPassport)
A Telegram Passport element containing the user’s passport
PassportRegistration(PassportElementPassportRegistration)
A Telegram Passport element containing the user’s passport registration pages
PersonalDetails(PassportElementPersonalDetails)
A Telegram Passport element containing the user’s personal details
PhoneNumber(PassportElementPhoneNumber)
A Telegram Passport element containing the user’s phone number
RentalAgreement(PassportElementRentalAgreement)
A Telegram Passport element containing the user’s rental agreement
TemporaryRegistration(PassportElementTemporaryRegistration)
A Telegram Passport element containing the user’s temporary registration
UtilityBill(PassportElementUtilityBill)
A Telegram Passport element containing the user’s utility bill
SetPassportElement(SetPassportElement)
Adds an element to the user’s Telegram Passport. May return an error with a message “PHONE_VERIFICATION_NEEDED” or “EMAIL_VERIFICATION_NEEDED” if the chosen phone number or the chosen email address must be verified first
Implementations
Trait Implementations
Performs the conversion.
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for PassportElement
impl Send for PassportElement
impl Sync for PassportElement
impl Unpin for PassportElement
impl UnwindSafe for PassportElement
Blanket Implementations
Mutably borrows from an owned value. Read more