deserialize_decimal_from_str

Function deserialize_decimal_from_str 

pub fn deserialize_decimal_from_str<'de, D>(
    deserializer: D,
) -> Result<Decimal, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,
Expand description

Deserializes a Decimal from a JSON string.

This is the strict form that requires the value to be a string, rejecting numeric JSON values to avoid precision loss.

ยงErrors

Returns an error if the string cannot be parsed as a valid decimal.