Skip to main content

deserialize_decimal_from_str

Function deserialize_decimal_from_str 

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

Deserializes an exact decimal from a numeric string.

ยงErrors

Returns an error if the JSON shape is unsupported or a value cannot be represented exactly.