Skip to main content

deserialize_decimal_from_json

Function deserialize_decimal_from_json 

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

Deserializes an exact decimal from a JSON number or numeric string.

ยงErrors

Returns an error for an unsupported JSON shape or a value that cannot be represented exactly.