Expand description
The crate provides function to encode data into SLK581 format.
The format allows encode given family name, given name, date of birth and sex into sequence
XXXZZDDMMYYYYN.
Where XXX encodes family name, ZZ encodes given name, DDMMYYYY encodes date of birth and
N encodes sex.
Enums§
Constants§
- FEMALE
- Female code
2 - INPUT_
DATE_ FORMAT - Supported input format of date of birth
YYYY-MM-DD - MALE
- Male code
1 - OUTPUT_
DATE_ FORMAT - Output format of date of birth
DDMMYYYY - TRANSGENDER
- Transgender code
3 - UNKNOWN_
CHARACTER_ IN_ NAME - Placeholder for missing character in given or family name
2 - UNKNOWN_
FAMILY_ NAME - Placeholder for unknown family name
999 - UNKNOWN_
GIVEN_ NAME - Placeholder for unknown given name
99 - UNKNOWN_
SEX - Placeholder for unknown sex
3
Functions§
- encode
- This function encodes given family name, given name, date of birth and sex in
XXXZZDDMMYYYYNsequence.