Struct government_id::tax_id::TaxpayerIdentificationNumber [] [src]

pub struct TaxpayerIdentificationNumber { /* fields omitted */ }

This structure describes taxpayer identification number and allows to obtain information about its properties. To check whether it is correct.

Examples

use government_id::*;
let tin: TaxpayerIdentificationNumber = "7827004526".to_owned().into();
assert!(tin.is_valid().unwrap());

Methods

impl TaxpayerIdentificationNumber
[src]

[src]

Creates a new TaxpayerIdentificationNumber

Trait Implementations

impl Validate for TaxpayerIdentificationNumber
[src]

impl From<String> for TaxpayerIdentificationNumber
[src]

[src]

Performs the conversion.