#[non_exhaustive]
pub enum Kind {
Passport,
DriverLicense,
IdentityCard,
InternalPassport,
UtilityBill,
BankStatement,
RentalAgreement,
PassportRegistration,
TemporaryRegistration,
}
Expand description
Represents possible element kinds for translation error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
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.
UtilityBill
An error in the user’s utility bill.
BankStatement
An error in the user’s bank statement.
RentalAgreement
An error in the user’s rental agreement.
PassportRegistration
An error in the user’s passport registration.
TemporaryRegistration
An error in the user’s temporary registration.
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
.
sourcepub fn is_utility_bill(&self) -> bool
pub fn is_utility_bill(&self) -> bool
Returns true
if self
is of variant UtilityBill
.
sourcepub fn is_bank_statement(&self) -> bool
pub fn is_bank_statement(&self) -> bool
Returns true
if self
is of variant BankStatement
.
sourcepub fn is_rental_agreement(&self) -> bool
pub fn is_rental_agreement(&self) -> bool
Returns true
if self
is of variant RentalAgreement
.
sourcepub fn is_passport_registration(&self) -> bool
pub fn is_passport_registration(&self) -> bool
Returns true
if self
is of variant PassportRegistration
.
sourcepub fn is_temporary_registration(&self) -> bool
pub fn is_temporary_registration(&self) -> bool
Returns true
if self
is of variant TemporaryRegistration
.