[−][src]Struct teloxide::types::EncryptedPassportElementDriverLicense
Fields (Non-exhaustive)
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.data: String
Base64-encoded encrypted Telegram Passport element data provided
by the user, available for personal_details
, passport
,
driver_license
, identity_card
, internal_passport
and
address
types. Can be decrypted and verified using the
accompanying EncryptedCredentials
.
front_side: PassportFile
Encrypted file with the front side of the document, provided by the
user. Available for passport
, driver_license
, identity_card
and internal_passport
. The file can be decrypted and verified
using the accompanying EncryptedCredentials
.
reverse_side: PassportFile
Encrypted file with the reverse side of the document, provided by
the user. Available for driver_license
and identity_card
. The
file can be decrypted and verified using the accompanying
EncryptedCredentials
.
selfie: PassportFile
Encrypted file with the selfie of the user holding a document,
provided by the user; available for passport
, driver_license
,
identity_card
and internal_passport
. The file can be decrypted
and verified using the accompanying EncryptedCredentials
.
translation: Option<Vec<PassportFile>>
Array of encrypted files with translated versions of documents
provided by the user. Available if requested for passport
,
driver_license
, identity_card
, internal_passport
,
utility_bill
, bank_statement
, rental_agreement
,
passport_registration
and temporary_registration
types. Files
can be decrypted and verified using the accompanying
EncryptedCredentials
.
Implementations
impl EncryptedPassportElementDriverLicense
[src]
pub fn new<S>(
data: S,
front_side: PassportFile,
reverse_side: PassportFile,
selfie: PassportFile
) -> Self where
S: Into<String>,
[src]
data: S,
front_side: PassportFile,
reverse_side: PassportFile,
selfie: PassportFile
) -> Self where
S: Into<String>,
pub fn data<S>(self, val: S) -> Self where
S: Into<String>,
[src]
S: Into<String>,
pub fn front_side(self, val: PassportFile) -> Self
[src]
pub fn reverse_side(self, val: PassportFile) -> Self
[src]
pub fn selfie(self, val: PassportFile) -> Self
[src]
pub fn translation<P>(self, val: P) -> Self where
P: Into<Vec<PassportFile>>,
[src]
P: Into<Vec<PassportFile>>,
Trait Implementations
impl Clone for EncryptedPassportElementDriverLicense
[src]
fn clone(&self) -> EncryptedPassportElementDriverLicense
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for EncryptedPassportElementDriverLicense
[src]
impl<'de> Deserialize<'de> for EncryptedPassportElementDriverLicense
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for EncryptedPassportElementDriverLicense
[src]
impl Hash for EncryptedPassportElementDriverLicense
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<EncryptedPassportElementDriverLicense> for EncryptedPassportElementDriverLicense
[src]
fn eq(&self, other: &EncryptedPassportElementDriverLicense) -> bool
[src]
fn ne(&self, other: &EncryptedPassportElementDriverLicense) -> bool
[src]
impl Serialize for EncryptedPassportElementDriverLicense
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for EncryptedPassportElementDriverLicense
[src]
impl StructuralPartialEq for EncryptedPassportElementDriverLicense
[src]
Auto Trait Implementations
impl RefUnwindSafe for EncryptedPassportElementDriverLicense
impl Send for EncryptedPassportElementDriverLicense
impl Sync for EncryptedPassportElementDriverLicense
impl Unpin for EncryptedPassportElementDriverLicense
impl UnwindSafe for EncryptedPassportElementDriverLicense
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<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[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>,