Skip to content
/ afm-rs Public

A validator for greek tax identification number (ΑΦΜ) for Rust

License

Notifications You must be signed in to change notification settings

zoispag/afm-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

afm-rs

CI

A validator for greek tax identification number (ΑΦΜ)

Usage

Add afm-rs under [dependencies] in your Cargo.toml:

[dependencies]
afm-rs = "0.1.1"

Use the validator:

use afm_rs;

// An invalid AFM
let (is_valid, err) = afm::validate("123456789");
assert!(!is_valid);
println!("{}", err);

// A valid AFM
let (is_valid, err) = afm::validate("997788278");
assert!(is_valid);
assert_eq!("", err)

About

A validator for greek tax identification number (ΑΦΜ) for Rust

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages