pub struct Zone {
Show 20 fields pub id: ZoneIndex, pub osm_id: String, pub admin_level: Option<u32>, pub zone_type: Option<ZoneType>, pub name: String, pub loc_name: String, pub alt_name: String, pub label: String, pub international_labels: BTreeMap<String, String>, pub international_names: BTreeMap<String, String>, pub zip_codes: Vec<String>, pub center: Option<Coord>, pub boundary: Option<MultiPolygon<f64>>, pub bbox: Option<Rect<f64>>, pub tags: Tags, pub center_tags: Tags, pub parent: Option<ZoneIndex>, pub wikidata: Option<String>, pub is_generated: bool, pub country_code: Option<String>,
}

Fields

id: ZoneIndexosm_id: Stringadmin_level: Option<u32>zone_type: Option<ZoneType>name: Stringloc_name: Stringalt_name: Stringlabel: Stringinternational_labels: BTreeMap<String, String>international_names: BTreeMap<String, String>zip_codes: Vec<String>center: Option<Coord>boundary: Option<MultiPolygon<f64>>bbox: Option<Rect<f64>>tags: Tagscenter_tags: Tagsparent: Option<ZoneIndex>wikidata: Option<String>is_generated: boolcountry_code: Option<String>

Implementations

iter_hierarchy gives an iterator over the whole hierachy including self

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.