pub fn serialize<S>(
    value: &Option<Decimal>,
    serializer: S
) -> Result<S::Ok, S::Error>
where S: Serializer,
Available on crate feature serde and (crate features serde-with-str or serde-with-float or serde-with-arbitrary-precision) and crate feature serde-with-float only.