Skip to main content

deserialize_optional_decimal_token_borrowed

Function deserialize_optional_decimal_token_borrowed 

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

Deserializes an Option<Decimal> as deserialize_optional_decimal_token does, borrowing the token from the input instead of copying it.

Requires borrowed input, as described for deserialize_decimal_token_borrowed.

ยงErrors

Returns an error if the deserializer cannot lend the token, or for any token that deserialize_optional_decimal_token rejects.