Struct kenall_rs::model::PostalBlock[][src]

pub struct PostalBlock {
    pub jisx0402: String,
    pub old_code: String,
    pub postal_code: String,
    pub prefecture_kana: String,
    pub city_kana: String,
    pub town_kana: String,
    pub town_kana_raw: String,
    pub prefecture: String,
    pub city: String,
    pub town: String,
    pub koaza: String,
    pub kyoto_street: String,
    pub building: String,
    pub floor: String,
    pub town_partial: bool,
    pub town_addressed_koaza: bool,
    pub town_chome: bool,
    pub town_multi: bool,
    pub town_raw: String,
    pub corporation: Option<Corporation>,
}

Fields

jisx0402: String

JIS code

old_code: String

Old postal code (ex: 100)

postal_code: String

Latest postal code.7digits.(ex: 1008105)

prefecture_kana: String

Prefectures described with full width kana (ex: トウキョウト)

city_kana: String

City described with full width kana (ex: チヨダク)

town_kana: String

Town described with full width kana (ex: チヨダ) It has a know issue

town_kana_raw: String

Town on the postal code database that described by full width kana (ex: チヨダ)

prefecture: String

Prefecture (ex: 東京都)

city: String

Municipality

town: String

Based on a name of the town with brackets excluded and joined multiple lines

koaza: String

Koaza (ex: 2丁目)

kyoto_street: String

Kyoto specific street

building: String

Name of the building (ex: オフィスタワーX)

floor: String

Floor of the building (ex: 3階)

town_partial: bool

If the area of the town has more then 2 postal code, return true.

town_addressed_koaza: bool

Wide town area (大域) has multiple Koaza(小字) and each Koaza has specific house number, thus people can not specify the address from postcal code and an address.

town_chome: bool

Town area(町域) that owns district number(丁目)

town_multi: bool

In some case, single postal code has multiple wotn area(町域) and return true in that case

town_raw: String

Name of the town area on postcal code database

corporation: Option<Corporation>

If the data matches individual corporate number, an additional data will be returned.

Trait Implementations

impl Debug for PostalBlock[src]

impl<'de> Deserialize<'de> for PostalBlock[src]

impl PartialEq<PostalBlock> for PostalBlock[src]

impl StructuralPartialEq for PostalBlock[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T> Instrument for T[src]

impl<T> Instrument 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.