#[non_exhaustive]
pub enum Kind {
UtilityBill,
BankStatement,
RentalAgreement,
PassportRegistration,
TemporaryRegistration,
}
Expand description
Represents possible element kinds for file 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.
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_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
.