[][src]Enum rust_tdlib::types::PassportElementType

pub enum PassportElementType {
    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
}

Contains the type of a Telegram Passport element

Variants

A Telegram Passport element containing the user's address

A Telegram Passport element containing the user's bank statement

A Telegram Passport element containing the user's driver license

A Telegram Passport element containing the user's email address

A Telegram Passport element containing the user's identity card

A Telegram Passport element containing the user's internal passport

A Telegram Passport element containing the user's passport

A Telegram Passport element containing the registration page of the user's passport

A Telegram Passport element containing the user's personal details

A Telegram Passport element containing the user's phone number

A Telegram Passport element containing the user's rental agreement

A Telegram Passport element containing the user's temporary registration

A Telegram Passport element containing the user's utility bill

Implementations

impl PassportElementType[src]

pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>[src]

Trait Implementations

impl AsRef<PassportElementType> for PassportElementType[src]

impl Clone for PassportElementType[src]

impl Debug for PassportElementType[src]

impl Default for PassportElementType[src]

impl<'de> Deserialize<'de> for PassportElementType[src]

impl RObject for PassportElementType[src]

impl Serialize for PassportElementType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,