pub struct EncryptedPassportElement {
pub kind: String,
pub data: Option<String>,
pub phone_number: Option<String>,
pub email: Option<String>,
pub files: Option<Vec<PassportFile>>,
pub front_side: Option<PassportFile>,
pub reverse_side: Option<PassportFile>,
pub selfie: Option<PassportFile>,
pub translation: Option<Vec<PassportFile>>,
pub hash: String,
}Expand description
An encrypted element containing Telegram Passport data.
Fields§
§kind: StringElement type (e.g. "passport", "email", "phone_number").
data: Option<String>Base64-encoded encrypted Telegram Passport element data.
phone_number: Option<String>User’s verified phone number.
email: Option<String>User’s verified email address.
files: Option<Vec<PassportFile>>Array of encrypted files with documents.
front_side: Option<PassportFile>Encrypted file with the front side of the document.
reverse_side: Option<PassportFile>Encrypted file with the reverse side of the document.
selfie: Option<PassportFile>Encrypted file with a selfie of the user holding the document.
translation: Option<Vec<PassportFile>>Array of encrypted files with translated versions of the document.
hash: StringBase64-encoded element hash for error validation.
Trait Implementations§
Source§impl Clone for EncryptedPassportElement
impl Clone for EncryptedPassportElement
Source§fn clone(&self) -> EncryptedPassportElement
fn clone(&self) -> EncryptedPassportElement
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EncryptedPassportElement
impl Debug for EncryptedPassportElement
Source§impl<'de> Deserialize<'de> for EncryptedPassportElement
impl<'de> Deserialize<'de> for EncryptedPassportElement
Source§fn 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
Auto Trait Implementations§
impl Freeze for EncryptedPassportElement
impl RefUnwindSafe for EncryptedPassportElement
impl Send for EncryptedPassportElement
impl Sync for EncryptedPassportElement
impl Unpin for EncryptedPassportElement
impl UnsafeUnpin for EncryptedPassportElement
impl UnwindSafe for EncryptedPassportElement
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more