diff options
| author | diogo464 <[email protected]> | 2025-12-05 10:42:16 +0000 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2025-12-05 10:42:16 +0000 |
| commit | 1d2ee64d0ec917a2c2b66f8d58e1f37dd174a89d (patch) | |
| tree | 0d6b32aa4b5a061f77dc64db72d741183364b9ce /src/constants.rs | |
| parent | 89f230e2a6b4405432f913973b0768a4301cbc4d (diff) | |
added monetary constants
Diffstat (limited to 'src/constants.rs')
| -rw-r--r-- | src/constants.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/constants.rs b/src/constants.rs index b05d94c..0803bdb 100644 --- a/src/constants.rs +++ b/src/constants.rs | |||
| @@ -124,6 +124,23 @@ pub const HA_UNIT_DISTANCE_CENTIMETER: &str = "cm"; | |||
| 124 | pub const HA_UNIT_DISTANCE_METER: &str = "m"; | 124 | pub const HA_UNIT_DISTANCE_METER: &str = "m"; |
| 125 | pub const HA_UNIT_DISTANCE_KILOMETER: &str = "km"; | 125 | pub const HA_UNIT_DISTANCE_KILOMETER: &str = "km"; |
| 126 | 126 | ||
| 127 | pub const HA_UNIT_CURRENCY_USD: &str = "USD"; | ||
| 128 | pub const HA_UNIT_CURRENCY_EUR: &str = "EUR"; | ||
| 129 | pub const HA_UNIT_CURRENCY_GBP: &str = "GBP"; | ||
| 130 | pub const HA_UNIT_CURRENCY_JPY: &str = "JPY"; | ||
| 131 | pub const HA_UNIT_CURRENCY_CNY: &str = "CNY"; | ||
| 132 | pub const HA_UNIT_CURRENCY_CAD: &str = "CAD"; | ||
| 133 | pub const HA_UNIT_CURRENCY_AUD: &str = "AUD"; | ||
| 134 | pub const HA_UNIT_CURRENCY_CHF: &str = "CHF"; | ||
| 135 | pub const HA_UNIT_CURRENCY_INR: &str = "INR"; | ||
| 136 | pub const HA_UNIT_CURRENCY_BRL: &str = "BRL"; | ||
| 137 | |||
| 138 | pub const HA_UNIT_CURRENCY_DOLLAR: &str = "$"; | ||
| 139 | pub const HA_UNIT_CURRENCY_EURO: &str = "€"; | ||
| 140 | pub const HA_UNIT_CURRENCY_POUND: &str = "£"; | ||
| 141 | pub const HA_UNIT_CURRENCY_YEN: &str = "¥"; | ||
| 142 | pub const HA_UNIT_CURRENCY_CENT: &str = "¢"; | ||
| 143 | |||
| 127 | pub const HA_ENTITY_CATEGORY_CONFIG: &str = "config"; | 144 | pub const HA_ENTITY_CATEGORY_CONFIG: &str = "config"; |
| 128 | pub const HA_ENTITY_CATEGORY_DIAGNOSTIC: &str = "diagnostic"; | 145 | pub const HA_ENTITY_CATEGORY_DIAGNOSTIC: &str = "diagnostic"; |
| 129 | 146 | ||
