Skip to main content

deserialize_optional_decimal_from_json

Function deserialize_optional_decimal_from_json 

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

Deserializes an optional 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.