[][src]Enum rust_tdlib::types::PassportElement

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

Contains information about a Telegram Passport element

Variants

GetPassportElement(GetPassportElement)

Returns one of the available Telegram Passport elements

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 user's passport registration pages

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

SetPassportElement(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

Implementations

impl PassportElement[src]

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

Trait Implementations

impl AsRef<PassportElement> for PassportElement[src]

impl Clone for PassportElement[src]

impl Debug for PassportElement[src]

impl Default for PassportElement[src]

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

impl RObject for PassportElement[src]

impl Serialize for PassportElement[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>,