Struct google_gamesconfiguration1_configuration::GamesNumberFormatConfiguration
[−]
[src]
pub struct GamesNumberFormatConfiguration { pub currency_code: Option<String>, pub number_format_type: Option<String>, pub num_decimal_places: Option<i32>, pub suffix: Option<GamesNumberAffixConfiguration>, }
This is a JSON template for a number format resource.
This type is not used in any activity, and only used as part of another schema.
Fields
currency_code: Option<String>
The curreny code string. Only used for CURRENCY format type.
number_format_type: Option<String>
The formatting for the number.
Possible values are:
- "NUMERIC" - Numbers are formatted to have no digits or a fixed number of digits after the decimal point according to locale. An optional custom unit can be added.
- "TIME_DURATION" - Numbers are formatted to hours, minutes and seconds.
- "CURRENCY" - Numbers are formatted to currency according to locale.
num_decimal_places: Option<i32>
The number of decimal places for number. Only used for NUMERIC format type.
suffix: Option<GamesNumberAffixConfiguration>
An optional suffix for the NUMERIC format type. These strings follow the same plural rules as all Android string resources.
Trait Implementations
impl Default for GamesNumberFormatConfiguration
[src]
fn default() -> GamesNumberFormatConfiguration
Returns the "default value" for a type. Read more
impl Clone for GamesNumberFormatConfiguration
[src]
fn clone(&self) -> GamesNumberFormatConfiguration
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more