Enum rust_tdlib::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
Trait Implementations
sourceimpl AsRef<PassportElementType> for PassportElementType
 
impl AsRef<PassportElementType> for PassportElementType
sourcefn as_ref(&self) -> &PassportElementType
 
fn as_ref(&self) -> &PassportElementType
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for PassportElementType
 
impl Clone for PassportElementType
sourcefn clone(&self) -> PassportElementType
 
fn clone(&self) -> PassportElementType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for PassportElementType
 
impl Debug for PassportElementType
sourceimpl Default for PassportElementType
 
impl Default for PassportElementType
sourceimpl<'de> Deserialize<'de> for PassportElementType
 
impl<'de> Deserialize<'de> for PassportElementType
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
    __D: Deserializer<'de>, 
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
    __D: Deserializer<'de>, 
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for PassportElementType
 
impl Serialize for PassportElementType
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
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more