use std::fmt::Debug;
pub trait AttributeKind: Ord + Copy + Debug {}
impl<T: Ord + Copy + Debug> AttributeKind for T {}
#[non_exhaustive]
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
pub enum Attribute {
Name,
BirthName,
GivenName,
AdditionalGivenNames,
DateOfBirth,
MotherName,
MotherBirthName,
MotherGivenName,
MotherAdditionalGivenNames,
FatherName,
FatherBirthName,
FatherGivenName,
FatherAdditionalGivenNames,
MaritalStatus,
SpouseName,
SpouseBirthName,
SpouseGivenName,
SpouseAdditionalGivenNames,
DateOfMarriage,
NativeLanguage,
Race,
Ethnicity,
Religion,
CulturalIdentity,
Tribe,
Gender,
Sex,
BloodGroup,
RhesusFactor,
YDnaHaplogroup,
MtDnaHaplogroup,
EyeColor,
HairColor,
Height,
Weight,
FingerprintRightIndex,
FingerprintLeftIndex,
PalmPrintRight,
PalmPrintLeft,
IrisRight,
IrisLeft,
FacialGeometry,
VoicePrint,
Occupation,
Employer,
Industry,
EduInstitution,
FieldOfStudy,
EducationLevel,
CityOfBirth,
RegionOfBirth,
CountryOfBirth,
CityOfResidence,
RegionOfResidence,
CountryOfResidence,
Address,
Nationality,
SecondaryNationality,
TertiaryNationality,
PassportNumber,
IdentityNumber,
LicenseNumber,
}
#[cfg(test)]
mod tests {
use super::*;
fn assert_attribute_kind<K: AttributeKind>() {}
#[test]
fn attribute_implements_attribute_kind() {
assert_attribute_kind::<Attribute>();
}
#[test]
fn eq_and_copy_are_reflexive() {
let a = Attribute::Name;
let b = a;
assert_eq!(a, b);
}
}