Enum rtdlib::types::PassportElement[][src]

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

Returns one of the available Telegram Passport elements

Tuple Fields of GetPassportElement

0: GetPassportElement
Address

A Telegram Passport element containing the user’s address

Tuple Fields of Address

0: PassportElementAddress
BankStatement

A Telegram Passport element containing the user’s bank statement

Tuple Fields of BankStatement

0: PassportElementBankStatement
DriverLicense

A Telegram Passport element containing the user’s driver license

Tuple Fields of DriverLicense

0: PassportElementDriverLicense
EmailAddress

A Telegram Passport element containing the user’s email address

Tuple Fields of EmailAddress

0: PassportElementEmailAddress
IdentityCard

A Telegram Passport element containing the user’s identity card

Tuple Fields of IdentityCard

0: PassportElementIdentityCard
InternalPassport

A Telegram Passport element containing the user’s internal passport

Tuple Fields of InternalPassport

0: PassportElementInternalPassport
Passport

A Telegram Passport element containing the user’s passport

Tuple Fields of Passport

0: PassportElementPassport
PassportRegistration

A Telegram Passport element containing the user’s passport registration pages

Tuple Fields of PassportRegistration

0: PassportElementPassportRegistration
PersonalDetails

A Telegram Passport element containing the user’s personal details

Tuple Fields of PersonalDetails

0: PassportElementPersonalDetails
PhoneNumber

A Telegram Passport element containing the user’s phone number

Tuple Fields of PhoneNumber

0: PassportElementPhoneNumber
RentalAgreement

A Telegram Passport element containing the user’s rental agreement

Tuple Fields of RentalAgreement

0: PassportElementRentalAgreement
TemporaryRegistration

A Telegram Passport element containing the user’s temporary registration

Tuple Fields of TemporaryRegistration

0: PassportElementTemporaryRegistration
UtilityBill

A Telegram Passport element containing the user’s utility bill

Tuple Fields of UtilityBill

0: PassportElementUtilityBill
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

Tuple Fields of SetPassportElement

0: SetPassportElement

Implementations

Trait Implementations

Performs the conversion.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Return td type to json string

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.