Enum rtdlib::types::PassportElementType [−][src]
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
A Telegram Passport element containing the user’s address
Tuple Fields of Address
A Telegram Passport element containing the user’s bank statement
Tuple Fields of BankStatement
A Telegram Passport element containing the user’s driver license
Tuple Fields of DriverLicense
A Telegram Passport element containing the user’s email address
Tuple Fields of EmailAddress
A Telegram Passport element containing the user’s identity card
Tuple Fields of IdentityCard
A Telegram Passport element containing the user’s internal passport
Tuple Fields of InternalPassport
A Telegram Passport element containing the user’s passport
Tuple Fields of Passport
A Telegram Passport element containing the registration page of the user’s passport
Tuple Fields of PassportRegistration
A Telegram Passport element containing the user’s personal details
Tuple Fields of PersonalDetails
A Telegram Passport element containing the user’s phone number
Tuple Fields of PhoneNumber
A Telegram Passport element containing the user’s rental agreement
Tuple Fields of RentalAgreement
A Telegram Passport element containing the user’s temporary registration
Tuple Fields of TemporaryRegistration
A Telegram Passport element containing the user’s utility bill
Tuple Fields of UtilityBill
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 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