pub struct InputIdentityDocument {
pub number: String,
pub expiration_date: Option<Date>,
pub front_side: InputFile,
pub reverse_side: Option<InputFile>,
pub selfie: Option<InputFile>,
pub translation: Vec<InputFile>,
}
Expand description
An identity document to be saved to Telegram Passport
Fields§
§number: String
Document number; 1-24 characters
expiration_date: Option<Date>
Document expiration date; pass null if not applicable
front_side: InputFile
Front side of the document
reverse_side: Option<InputFile>
Reverse side of the document; only for driver license and identity card; pass null otherwise
selfie: Option<InputFile>
Selfie with the document; pass null if unavailable
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
Source§impl PartialEq for InputIdentityDocument
impl PartialEq for InputIdentityDocument
Source§impl Serialize for InputIdentityDocument
impl Serialize for InputIdentityDocument
impl StructuralPartialEq for InputIdentityDocument
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