Function eu_vat_id::check [−][src]
pub fn check(vat_id: &str) -> bool
Check if a VAT ID has a valid syntax. It's an offline check, so it doesn't guarantee the VAT ID exists.
The function is case insensitive and expects a VAT ID beginning with the 2-letter EU state ISO code.
Examples
if eu_vat_id::check("IT00400770939") == true { println!("VAT ID is valid"); }