Crate codice_fiscale

Crate codice_fiscale 

Source
Expand description

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 and check.

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

Modules§

belfiore
This module contains Belfiore codes and it’s used to lookup municipality info

Structs§

BELFIORE_STORE
This is a static Belfiore codes DB
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§

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