#[non_exhaustive]
pub enum Kind {
PersonalDetails,
Passport,
DriverLicense,
IdentityCard,
InternalPassport,
Address,
}
Expand description
Represents possible element kinds for data error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
PersonalDetails
An error in the user’s personal details.
Passport
An error in the user’s passport.
DriverLicense
An error in the user’s driver license.
IdentityCard
An error in the user’s identity card.
InternalPassport
An error in the user’s internal passport.
Address
An error in the user’s address.
Implementations§
source§impl Kind
impl Kind
sourcepub fn is_personal_details(&self) -> bool
pub fn is_personal_details(&self) -> bool
Returns true
if self
is of variant PersonalDetails
.
sourcepub fn is_passport(&self) -> bool
pub fn is_passport(&self) -> bool
Returns true
if self
is of variant Passport
.
sourcepub fn is_driver_license(&self) -> bool
pub fn is_driver_license(&self) -> bool
Returns true
if self
is of variant DriverLicense
.
sourcepub fn is_identity_card(&self) -> bool
pub fn is_identity_card(&self) -> bool
Returns true
if self
is of variant IdentityCard
.
sourcepub fn is_internal_passport(&self) -> bool
pub fn is_internal_passport(&self) -> bool
Returns true
if self
is of variant InternalPassport
.
sourcepub fn is_address(&self) -> bool
pub fn is_address(&self) -> bool
Returns true
if self
is of variant Address
.