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]
Trait Implementations
impl Validate for TaxpayerIdentificationNumber
[src]
fn is_valid(&self) -> ValidResult
[src]
impl From<String> for TaxpayerIdentificationNumber
[src]
fn from(other: String) -> TaxpayerIdentificationNumber
[src]
Performs the conversion.