#numbers #greek #tax #validation #identification #αφμ #afm

afm-rs

A Greek tax identification number (ΑΦΜ) validator

2个版本

0.1.1 2020年12月29日
0.1.0 2020年12月29日

#9 in #greek

MIT许可证

4KB
66 行代码(不含注释)

afm-rs

CI

A Greek tax identification number (ΑΦΜ) validator

用法

在您的 Cargo.toml 中将 afm-rs 添加到 [dependencies]

[dependencies]
afm-rs = "0.1.1"

使用验证器

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)

lib.rs:

A Greek tax identification number (ΑΦΜ) validator 更多信息请访问 ΑΦΜ.

无运行时依赖