Skip to content

A validator for greek social security number (AMKA) for Rust

License

Notifications You must be signed in to change notification settings

zoispag/amka-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

amka-rs

CI

A validator for greek social security number (AMKA)

Usage

Add amka under [dependencies] in your Cargo.toml:

[dependencies]
amka = "1.1.0"

Use the validator:

use amka;

// An invalid AMKA
let (is_valid, err) = amka::validate("09095986680");
assert!(!is_valid);
println!("{}", err);

// An valid AMKA
let (is_valid, err) = amka::validate("09095986684");
assert!(is_valid);
assert_eq!("", err)

About

A validator for greek social security number (AMKA) for Rust

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages