Struct idcard_cn::IdentityNumber[][src]

pub struct IdentityNumber { /* fields omitted */ }

第二代中华人民共和国身份证公民身份号码。包括身份证持有人出生时行政区划分代码(6位数字)、 出生日期(8位数字)、 当日出生顺序号(3位数字),以及一位的校验码。

结构中不需要存校验码,只有合法的身份号码才能被转换成该结构体。

Trait Implementations

impl Debug for IdentityNumber[src]

impl FromStr for IdentityNumber[src]

type Err = InvalidId

The associated error which can be returned from parsing.

impl PartialEq<IdentityNumber> for IdentityNumber[src]

impl StructuralPartialEq for IdentityNumber[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.