pub fn deserialize_optional_decimal<'de, D>(
deserializer: D,
) -> Result<Option<Decimal>, D::Error>where
D: Deserializer<'de>,Expand description
Deserializes an optional Decimal from a string field.
Returns None if the string is empty or “0”, otherwise parses to Decimal.