Enum rust_tdlib::types::PassportElement
source · pub enum PassportElement {
Show 15 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§
source§impl AsRef<PassportElement> for PassportElement
impl AsRef<PassportElement> for PassportElement
source§fn as_ref(&self) -> &PassportElement
fn as_ref(&self) -> &PassportElement
source§impl Clone for PassportElement
impl Clone for PassportElement
source§fn clone(&self) -> PassportElement
fn clone(&self) -> PassportElement
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more