pub struct InputIdentityDocument {
pub number: String,
pub expiry_date: Date,
pub front_side: InputFile,
pub reverse_side: InputFile,
pub selfie: InputFile,
pub translation: Vec<InputFile>,
}
Expand description
An identity document to be saved to Telegram Passport
Fields§
§number: String
Document number; 1-24 characters
expiry_date: Date
Document expiry date, if available
front_side: InputFile
Front side of the document
reverse_side: InputFile
Reverse side of the document; only for driver license and identity card
selfie: InputFile
Selfie with the document, if available
translation: Vec<InputFile>
List of files containing a certified English translation of the document
Trait Implementations§
Source§impl Clone for InputIdentityDocument
impl Clone for InputIdentityDocument
Source§fn clone(&self) -> InputIdentityDocument
fn clone(&self) -> InputIdentityDocument
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 InputIdentityDocument
impl Debug for InputIdentityDocument
Source§impl<'de> Deserialize<'de> for InputIdentityDocument
impl<'de> Deserialize<'de> for InputIdentityDocument
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 InputIdentityDocument
impl RefUnwindSafe for InputIdentityDocument
impl Send for InputIdentityDocument
impl Sync for InputIdentityDocument
impl Unpin for InputIdentityDocument
impl UnwindSafe for InputIdentityDocument
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