pub(crate) fn parse_u64<'de, D>(deserializer: D) -> Result<u64, D::Error>
where
    D: Deserializer<'de>,
{
    String::deserialize(deserializer)?
        .parse::<u64>()
        .map_err(|e| D::Error::custom(format!("{}", e)))
}
/// Parse `u64` from a JSON string
Parse `u64` from a JSON string
Parse ` u64 ` from a JSON string
pub(crate) fn parse_u64<'de, D>(deserializer: D) -> Result<u64, D::Error>
where
    D: Deserializer<'de>,
{
    String::deserialize(deserializer)?
        .parse::<u64>()
        .map_err(|e| D::Error::custom(format!("{}", e)))
}
pub ( crate ) fn parse_u64 < ' de , D > ( deserializer : D ) -> Result < u64 , D :: Error > where D : Deserializer < ' de > , { String :: deserialize ( deserializer ) ? . parse :: < u64 > ( ) . map_err ( | e | D :: Error :: custom ( format ! ( " " e ) ) ) }
Parse `u64` from a JSON string
Parse ` u64 ` from a JSON string
deserializer
D
deserializer
D