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 for an unsupported JSON shape or a value that cannot be represented exactly.