pub struct Country {
pub code: String,
pub currency_code: Option<String>,
pub currency_pos: Option<String>,
pub decimal_sep: Option<String>,
pub dimension_unit: Option<String>,
pub name: String,
pub num_decimals: Option<i32>,
pub states: Vec<State>,
pub thousand_sep: Option<String>,
pub weight_unit: Option<String>,
}
Fields§
§code: String
ISO3166 alpha-2 country code
currency_code: Option<String>
Default ISO4127 alpha-3 currency code for the country.
currency_pos: Option<String>
Currency symbol position for this country.
decimal_sep: Option<String>
Decimal separator for displayed prices for this country.
dimension_unit: Option<String>
The unit lengths are defined in for this country.
name: String
Full name of country.
num_decimals: Option<i32>
Number of decimal points shown in displayed prices for this country.
states: Vec<State>
List of states in this country. See Continents - Countries - States properties
thousand_sep: Option<String>
Thousands separator for displayed prices in this country.
weight_unit: Option<String>
The unit weights are defined in for this country.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Country
impl<'de> Deserialize<'de> for Country
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Country
impl RefUnwindSafe for Country
impl Send for Country
impl Sync for Country
impl Unpin for Country
impl UnwindSafe for Country
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