A validator for greek tax identification number (ΑΦΜ)
Add afm-rs
under [dependencies]
in your Cargo.toml
:
toml
[dependencies]
afm-rs = "0.1.0"
Use the validator:
```rust use afm-rs;
// An invalid AFM let (isvalid, err) = afm::validate("123456789"); assert!(!isvalid); println!("{}", err);
// A valid AFM let (isvalid, err) = afm::validate("997788278"); assert!(isvalid); assert_eq!("", err) ```