pub fn replace_placeholders_with_formatting(
input: &str,
device_tags: &HashMap<String, DeviceTag>,
country_code: &str,
format: &NumberFormat,
) -> String
Expand description
Replaces placeholders in a string with values from device tags and applies number formatting when needed
ยงArguments
input
- Input string with placeholdersdevice_tags
- Map of device tagscountry_code
- Country code for number formattingformat
- Number format to apply to tag values