Crate codice_fiscale[][src]

This crate provides tools to manage the Italian codice fiscale, which (for anyone who doesn't live in Italy) is a code associated to every individual which helps with identification in public services.

We currently provide codice fiscale calculation. Check of the codice will be the next feature.

For anyone interested, here's an explanation (Italian language) on how the codice fiscale is calculated: https://it.wikipedia.org/wiki/Codice_fiscale#Generazione_del_codice_fiscale

Structs

CodiceFiscale

Codice fiscale calculation and parsing. The static method check() is most likely what you need.

PersonData

PersonData struct to pass to new() constructor for calculation of codice fiscale

Enums

Gender

Gender enum to specify gender in PersonData struct Italian government only accepts either male or female!