Struct idcard::Identity[][src]

pub struct Identity { /* fields omitted */ }

Implementations

impl Identity[src]

pub fn new(number: &str) -> Identity[src]

pub fn number(&self) -> String[src]

pub fn birth_date(&self) -> Option<String>[src]

pub fn year(&self) -> Option<i32>[src]

pub fn month(&self) -> Option<i32>[src]

pub fn date(&self) -> Option<i32>[src]

pub fn age(&self) -> Option<u32>[src]

pub fn gender(&self) -> Option<Gender>[src]

pub fn province(&self) -> Option<String>[src]

pub fn region(&self) -> Option<String>[src]

pub fn constellation(&self) -> Option<String>[src]

pub fn chinese_era(&self) -> Option<String>[src]

pub fn chinese_zodiac(&self) -> Option<String>[src]

pub fn is_valid(&self) -> bool[src]

pub fn is_empty(&self) -> bool[src]

pub fn len(&self) -> usize[src]

Trait Implementations

impl Debug for Identity[src]

impl PartialEq<Identity> for Identity[src]

impl PartialOrd<Identity> for Identity[src]

impl StructuralPartialEq for Identity[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,