pub fn parse_str_decimal( val: Option<&Value>, field: &str, ) -> Result<Decimal, HlError>
Parse a serde_json::Value as a Decimal.
serde_json::Value
Decimal
Accepts string-encoded decimals, JSON numbers, and handles None/Null.
None
Null