Module double_option_float

Module double_option_float 

Source
Expand description

Combination of the serde rules from rust_decimal::serde::float and serde_with::rust::double_option.

This is necessary because it is not possible to apply multiple #[serde(with = ...)] attributes:

  • #[serde(with = "serde_with::rust::double_option")]
  • #[serde(with = "rust_decimal::serde::float")]

Functionsยง

deserialize
Double-option float-form decimal deserializer.
serialize
Double-option float-form decimal serializer.