Struct rust_iso3166::iso3166_2::Subdivision
source · pub struct Subdivision {
pub name: &'static str,
pub subdivision_type: &'static str,
pub code: &'static str,
pub country_name: &'static str,
pub country_code: &'static str,
pub region_code: &'static str,
}
Fields§
§name: &'static str
Name
subdivision_type: &'static str
Subdivision Type
code: &'static str
Code
country_name: &'static str
Country Name
country_code: &'static str
Country Code
region_code: &'static str
Region Code
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 Hash for Subdivision
impl Hash for Subdivision
source§impl Ord for Subdivision
impl Ord for Subdivision
source§fn cmp(&self, other: &Subdivision) -> Ordering
fn cmp(&self, other: &Subdivision) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for Subdivision
impl PartialEq for Subdivision
source§fn eq(&self, other: &Subdivision) -> bool
fn eq(&self, other: &Subdivision) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for Subdivision
impl PartialOrd for Subdivision
source§fn partial_cmp(&self, other: &Subdivision) -> Option<Ordering>
fn partial_cmp(&self, other: &Subdivision) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Subdivision
impl Eq for Subdivision
impl StructuralPartialEq for Subdivision
Auto Trait Implementations§
impl Freeze for Subdivision
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