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