/// Serialize `BigInt` as a string
Serialize `BigInt` as a string
Serialize ` BigInt ` as a string
pub(crate) fn bigint_as_str<S>(value: &Option<BigInt>, serializer: S) -> Result<S::Ok, S::Error>
where
    S: serde::Serializer,
{
    if let Some(value) = value {
        serializer.serialize_str(&value.to_string())
    } else {
        serializer.serialize_unit()
    }
}
pub ( crate ) fn bigint_as_str < S > ( value : & Option < BigInt > , serializer : S ) -> Result < S :: Ok , S :: Error > where S : serde :: Serializer , { if let Some ( value ) = value { serializer . serialize_str ( & value . to_string ( ) ) } else { serializer . serialize_unit ( ) } }
Serialize `BigInt` as a string
Serialize ` BigInt ` as a string
value
&Option<BigInt>
serializer
S