Enum rtdlib::types::PassportElementType
source · [−]pub enum PassportElementType {
Show 13 variants
Address(PassportElementTypeAddress),
BankStatement(PassportElementTypeBankStatement),
DriverLicense(PassportElementTypeDriverLicense),
EmailAddress(PassportElementTypeEmailAddress),
IdentityCard(PassportElementTypeIdentityCard),
InternalPassport(PassportElementTypeInternalPassport),
Passport(PassportElementTypePassport),
PassportRegistration(PassportElementTypePassportRegistration),
PersonalDetails(PassportElementTypePersonalDetails),
PhoneNumber(PassportElementTypePhoneNumber),
RentalAgreement(PassportElementTypeRentalAgreement),
TemporaryRegistration(PassportElementTypeTemporaryRegistration),
UtilityBill(PassportElementTypeUtilityBill),
// some variants omitted
}
Expand description
Contains the type of a Telegram Passport element
Variants
Address(PassportElementTypeAddress)
A Telegram Passport element containing the user’s address
BankStatement(PassportElementTypeBankStatement)
A Telegram Passport element containing the user’s bank statement
DriverLicense(PassportElementTypeDriverLicense)
A Telegram Passport element containing the user’s driver license
EmailAddress(PassportElementTypeEmailAddress)
A Telegram Passport element containing the user’s email address
IdentityCard(PassportElementTypeIdentityCard)
A Telegram Passport element containing the user’s identity card
InternalPassport(PassportElementTypeInternalPassport)
A Telegram Passport element containing the user’s internal passport
Passport(PassportElementTypePassport)
A Telegram Passport element containing the user’s passport
PassportRegistration(PassportElementTypePassportRegistration)
A Telegram Passport element containing the registration page of the user’s passport
PersonalDetails(PassportElementTypePersonalDetails)
A Telegram Passport element containing the user’s personal details
PhoneNumber(PassportElementTypePhoneNumber)
A Telegram Passport element containing the user’s phone number
RentalAgreement(PassportElementTypeRentalAgreement)
A Telegram Passport element containing the user’s rental agreement
TemporaryRegistration(PassportElementTypeTemporaryRegistration)
A Telegram Passport element containing the user’s temporary registration
UtilityBill(PassportElementTypeUtilityBill)
A Telegram Passport element containing the user’s utility bill
Implementations
pub fn on_bank_statement<F: FnOnce(&PassportElementTypeBankStatement)>(
&self,
fnc: F
) -> &Self
pub fn on_driver_license<F: FnOnce(&PassportElementTypeDriverLicense)>(
&self,
fnc: F
) -> &Self
pub fn on_internal_passport<F: FnOnce(&PassportElementTypeInternalPassport)>(
&self,
fnc: F
) -> &Self
pub fn on_passport_registration<F: FnOnce(&PassportElementTypePassportRegistration)>(
&self,
fnc: F
) -> &Self
pub fn on_personal_details<F: FnOnce(&PassportElementTypePersonalDetails)>(
&self,
fnc: F
) -> &Self
pub fn on_rental_agreement<F: FnOnce(&PassportElementTypeRentalAgreement)>(
&self,
fnc: F
) -> &Self
pub fn on_temporary_registration<F: FnOnce(&PassportElementTypeTemporaryRegistration)>(
&self,
fnc: F
) -> &Self
pub fn passport_registration<T: AsRef<PassportElementTypePassportRegistration>>(
t: T
) -> Self
pub fn temporary_registration<T: AsRef<PassportElementTypeTemporaryRegistration>>(
t: T
) -> Self
Trait Implementations
Performs the conversion.
fn deserialize<D>(deserializer: D) -> Result<PassportElementType, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<PassportElementType, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for PassportElementType
impl Send for PassportElementType
impl Sync for PassportElementType
impl Unpin for PassportElementType
impl UnwindSafe for PassportElementType
Blanket Implementations
Mutably borrows from an owned value. Read more