pub struct ItalySpecProvider;
Expand description

Methods collection provides special data for Italy (it)

Implementations§

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));
}

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more