Enum rust_tdlib::types::PassportElement [−][src]
Contains information about a Telegram Passport element
Variants
GetPassportElement(GetPassportElement)Returns one of the available Telegram Passport elements
Address(PassportElementAddress)A Telegram Passport element containing the user's address
BankStatement(PassportElementBankStatement)A Telegram Passport element containing the user's bank statement
DriverLicense(PassportElementDriverLicense)A Telegram Passport element containing the user's driver license
EmailAddress(PassportElementEmailAddress)A Telegram Passport element containing the user's email address
IdentityCard(PassportElementIdentityCard)A Telegram Passport element containing the user's identity card
InternalPassport(PassportElementInternalPassport)A Telegram Passport element containing the user's internal passport
Passport(PassportElementPassport)A Telegram Passport element containing the user's passport
PassportRegistration(PassportElementPassportRegistration)A Telegram Passport element containing the user's passport registration pages
PersonalDetails(PassportElementPersonalDetails)A Telegram Passport element containing the user's personal details
PhoneNumber(PassportElementPhoneNumber)A Telegram Passport element containing the user's phone number
RentalAgreement(PassportElementRentalAgreement)A Telegram Passport element containing the user's rental agreement
TemporaryRegistration(PassportElementTemporaryRegistration)A Telegram Passport element containing the user's temporary registration
UtilityBill(PassportElementUtilityBill)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]
Trait Implementations
impl AsRef<PassportElement> for PassportElement[src]
fn as_ref(&self) -> &PassportElement[src]
impl Clone for PassportElement[src]
fn clone(&self) -> PassportElement[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for PassportElement[src]
impl Default for PassportElement[src]
impl<'de> Deserialize<'de> for PassportElement[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Serialize for PassportElement[src]
Auto Trait Implementations
impl RefUnwindSafe for PassportElement[src]
impl Send for PassportElement[src]
impl Sync for PassportElement[src]
impl Unpin for PassportElement[src]
impl UnwindSafe for PassportElement[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,