pub struct PassportCredential<E = ()> {
pub issuing_country: Option<EditableField<EditableFieldCountryCode, E>>,
pub passport_type: Option<EditableField<EditableFieldString, E>>,
pub passport_number: Option<EditableField<EditableFieldString, E>>,
pub national_identification_number: Option<EditableField<EditableFieldString, E>>,
pub nationality: Option<EditableField<EditableFieldString, E>>,
pub full_name: Option<EditableField<EditableFieldString, E>>,
pub birth_date: Option<EditableField<EditableFieldDate, E>>,
pub birth_place: Option<EditableField<EditableFieldString, E>>,
pub sex: Option<EditableField<EditableFieldString, E>>,
pub issue_date: Option<EditableField<EditableFieldDate, E>>,
pub expiry_date: Option<EditableField<EditableFieldDate, E>>,
pub issuing_authority: Option<EditableField<EditableFieldString, E>>,
}Expand description
A PassportCredential contains the details of a person’s passport. The fields reflect the relevant set of data elements defined by ICAO Doc 9303 Part 4.
Fields§
§issuing_country: Option<EditableField<EditableFieldCountryCode, E>>The passport’s issuing country. This MUST conform to the ISO 3166-1 alpha-2 format.
passport_type: Option<EditableField<EditableFieldString, E>>The passport’s document type. This MUST be a valid document code as defined in ICAO Doc 9303 Part 4.
passport_number: Option<EditableField<EditableFieldString, E>>The passport’s identifying number.
national_identification_number: Option<EditableField<EditableFieldString, E>>The person’s national identification number.
nationality: Option<EditableField<EditableFieldString, E>>The person’s nationality.
full_name: Option<EditableField<EditableFieldString, E>>The person’s full name.
birth_date: Option<EditableField<EditableFieldDate, E>>The person’s date of birth.
birth_place: Option<EditableField<EditableFieldString, E>>The person’s place of birth.
sex: Option<EditableField<EditableFieldString, E>>The person’s sex or gender.
issue_date: Option<EditableField<EditableFieldDate, E>>The date on which the passport was issued.
expiry_date: Option<EditableField<EditableFieldDate, E>>The date on which the passport expires.
The official body or government agency responsible for issuing the passport.
Trait Implementations§
Source§impl<E: Clone> Clone for PassportCredential<E>
impl<E: Clone> Clone for PassportCredential<E>
Source§fn clone(&self) -> PassportCredential<E>
fn clone(&self) -> PassportCredential<E>
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<E: Debug> Debug for PassportCredential<E>
impl<E: Debug> Debug for PassportCredential<E>
Source§impl<E: Default> Default for PassportCredential<E>
impl<E: Default> Default for PassportCredential<E>
Source§fn default() -> PassportCredential<E>
fn default() -> PassportCredential<E>
Returns the “default value” for a type. Read more
Source§impl<'de, E> Deserialize<'de> for PassportCredential<E>where
E: Deserialize<'de>,
impl<'de, E> Deserialize<'de> for PassportCredential<E>where
E: Deserialize<'de>,
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<E> Freeze for PassportCredential<E>
impl<E> RefUnwindSafe for PassportCredential<E>where
E: RefUnwindSafe,
impl<E> Send for PassportCredential<E>where
E: Send,
impl<E> Sync for PassportCredential<E>where
E: Sync,
impl<E> Unpin for PassportCredential<E>where
E: Unpin,
impl<E> UnwindSafe for PassportCredential<E>where
E: UnwindSafe,
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