#[non_exhaustive]
pub enum Kind {
DriverLicense,
IdentityCard,
}
Expand description
Represents possible element kinds for reverse side 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.
DriverLicense
An error in the user’s driver license.
IdentityCard
An error in the user’s identity card.
Implementations§
source§impl Kind
impl Kind
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
.