Struct warlocks_cauldron::ItalySpecProvider
source · pub struct ItalySpecProvider;Expand description
Methods collection provides special data for Italy (it)
Implementations§
source§impl ItalySpecProvider
impl ItalySpecProvider
sourcepub fn fiscal_code(gender: Option<Gender>) -> String
pub fn fiscal_code(gender: Option<Gender>) -> String
Return a random fiscal code
Examples found in repository?
examples/specs.rs (line 10)
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
fn main() {
println!("Denmark CPR: {}", DenmarkSpecProvider::cpr());
println!("Fedex code: {}", USASpecProvider::tracking_number(TrackingService::FEDEX));
println!("SSN code: {}", USASpecProvider::ssn());
println!("Italy fiscal code: {}", ItalySpecProvider::fiscal_code(Some(Gender::MALE)));
println!("Netherlands BSN: {}", NetherlandsSpecProvider::bsn());
println!("Poland NIP: {}", PolandSpecProvider::nip());
println!("Poland PESEL: {}", PolandSpecProvider::pesel(None, None));
println!("Poland REGON: {}", PolandSpecProvider::regon());
println!("Brazil CPF: {}", BrazilSpecProvider::cpf(true));
println!("Brazil CNPJ: {}", BrazilSpecProvider::cnpj(true));
println!("Russian sentence: {}", RussiaSpecProvider::generate_sentence());
println!("Russian patronymic: {}", RussiaSpecProvider::patronymic(Some(Gender::FEMALE)));
println!("Russian seriens and number: {}", RussiaSpecProvider::series_and_number(None));
println!("Russian SNILS: {}", RussiaSpecProvider::snils());
println!("Russian OGRN: {}", RussiaSpecProvider::ogrn());
println!("Russian BIC: {}", RussiaSpecProvider::bic());
println!("Russian KPP: {}", RussiaSpecProvider::kpp());
println!("Ukrainian patronymic: {}", RussiaSpecProvider::patronymic(None));
}