Function eu_vat_id::check_by_state[][src]

pub fn check_by_state(local_vat_id: &str, state: &str) -> bool

Same as check, but expects a "local" VAT ID, with the state ISO code specified separately

Examples

if eu_vat_id::check_by_state("00400770939", "IT") == true {
    println!("VAT ID is valid");
}