pub struct NetherlandsSpecProvider;Expand description
Methods collection provides special data for Netherlands (nl)
Implementationsยง
Sourceยงimpl NetherlandsSpecProvider
impl NetherlandsSpecProvider
Sourcepub fn bsn() -> u32
pub fn bsn() -> u32
Generate a random, but valid Burgerservicenummer
Examples found in repository?
examples/specs.rs (line 12)
4fn main() {
5 println!("Denmark CPR: {}", DenmarkSpecProvider::cpr());
6
7 println!("Fedex code: {}", USASpecProvider::tracking_number(TrackingService::FEDEX));
8 println!("SSN code: {}", USASpecProvider::ssn());
9
10 println!("Italy fiscal code: {}", ItalySpecProvider::fiscal_code(Some(Gender::MALE)));
11
12 println!("Netherlands BSN: {}", NetherlandsSpecProvider::bsn());
13
14 println!("Poland NIP: {}", PolandSpecProvider::nip());
15 println!("Poland PESEL: {}", PolandSpecProvider::pesel(None, None));
16 println!("Poland REGON: {}", PolandSpecProvider::regon());
17
18 println!("Brazil CPF: {}", BrazilSpecProvider::cpf(true));
19 println!("Brazil CNPJ: {}", BrazilSpecProvider::cnpj(true));
20
21 println!("Russian sentence: {}", RussiaSpecProvider::generate_sentence());
22 println!("Russian patronymic: {}", RussiaSpecProvider::patronymic(Some(Gender::FEMALE)));
23 println!("Russian seriens and number: {}", RussiaSpecProvider::series_and_number(None));
24 println!("Russian SNILS: {}", RussiaSpecProvider::snils());
25 println!("Russian OGRN: {}", RussiaSpecProvider::ogrn());
26 println!("Russian BIC: {}", RussiaSpecProvider::bic());
27 println!("Russian KPP: {}", RussiaSpecProvider::kpp());
28
29 println!("Ukrainian patronymic: {}", RussiaSpecProvider::patronymic(None));
30}Sourcepub fn burgerservicenummer() -> u32
pub fn burgerservicenummer() -> u32
Generate a random, but valid Burgerservicenummer | An allias for .bsn()
Auto Trait Implementationsยง
impl Freeze for NetherlandsSpecProvider
impl RefUnwindSafe for NetherlandsSpecProvider
impl Send for NetherlandsSpecProvider
impl Sync for NetherlandsSpecProvider
impl Unpin for NetherlandsSpecProvider
impl UnwindSafe for NetherlandsSpecProvider
Blanket Implementationsยง
Sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more