validbr-0.2.1 doesn't have any documentation.
validbr
Providing data structures and utilities for Brazilian Registries. Validbr is currently capable of validating CPF and CNPJ, but is planned to support:
- RG (structure only)
- CNH (validation and structure)
- CEP (database)
- State and City (database)
Validation
validbr is capable of validating some Brazilian Registries types in regards of the number of these documents being valid, not in regards of them being registered in Brazilian Organizations. Currently there is no easy way of checking these values against Brazilian Organizations without paid services.
Databases
validbr will be frequently updated to keep CEP, State and City databases updated. We may add neighbourhood database in the future, initially they will not be supported because the huge amount of them.
Examples:
CPF
use Cpf;
let cpf = parse_str;
assert_eq!;
CNPJ
use Cnpj;
let cpf = parse_str;
assert_eq!;