pub struct EncryptedPassportElement {
pub type: PassportElementType,
pub data: String,
pub front_side: DatedFile,
pub reverse_side: Option<DatedFile>,
pub selfie: Option<DatedFile>,
pub translation: Vec<DatedFile>,
pub files: Vec<DatedFile>,
pub value: String,
pub hash: String,
}
Expand description
Contains information about an encrypted Telegram Passport element; for bots only
Fields§
§type: PassportElementType
Type of Telegram Passport element
data: String
Encrypted JSON-encoded data about the user
front_side: DatedFile
The front side of an identity document
reverse_side: Option<DatedFile>
The reverse side of an identity document; may be null
selfie: Option<DatedFile>
Selfie with the document; may be null
translation: Vec<DatedFile>
List of files containing a certified English translation of the document
files: Vec<DatedFile>
List of attached files
value: String
Unencrypted data, phone number or email address
hash: String
Hash of the entire element
Trait Implementations§
Source§impl Clone for EncryptedPassportElement
impl Clone for EncryptedPassportElement
Source§fn clone(&self) -> EncryptedPassportElement
fn clone(&self) -> EncryptedPassportElement
Returns a copy 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
Source§impl PartialEq for EncryptedPassportElement
impl PartialEq for EncryptedPassportElement
Source§impl Serialize for EncryptedPassportElement
impl Serialize for EncryptedPassportElement
impl StructuralPartialEq for EncryptedPassportElement
Auto Trait Implementations§
impl Freeze for EncryptedPassportElement
impl RefUnwindSafe for EncryptedPassportElement
impl Send for EncryptedPassportElement
impl Sync for EncryptedPassportElement
impl Unpin 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