Struct keshvar::Subdivision
source · pub struct Subdivision { /* private fields */ }Expand description
A struct containing useful information about a subdivision.
Implementations§
source§impl Subdivision
impl Subdivision
pub fn country_alpha2(&self) -> Alpha2
sourcepub fn geo(&self) -> Option<SubdivisionGeo>
pub fn geo(&self) -> Option<SubdivisionGeo>
Enabled if geo feature is enabled.
pub fn comments(&self) -> Option<&str>
pub fn subdivision_type(&self) -> SubdivisionType
sourcepub fn translations(&self) -> &HashMap<&str, &str>
pub fn translations(&self) -> &HashMap<&str, &str>
Enabled if translations feature is enabled.
pub fn unofficial_name_list(&self) -> &[&str]
Trait Implementations§
source§impl Clone for Subdivision
impl Clone for Subdivision
source§fn clone(&self) -> Subdivision
fn clone(&self) -> Subdivision
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for Subdivision
impl Debug for Subdivision
source§impl Deserialize<'static> for Subdivision
impl Deserialize<'static> for Subdivision
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Subdivision
impl Send for Subdivision
impl Sync for Subdivision
impl Unpin for Subdivision
impl UnwindSafe for Subdivision
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more