#[non_exhaustive]
pub enum Kind {
Passport,
DriverLicense,
IdentityCard,
InternalPassport,
}
Expand description
Represents possible element kinds for selfie 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.
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.
Implementations§
source§impl Kind
impl Kind
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
.