fn u32_from_str<'de, D>(deserializer: D) -> Result<u32, D::Error>
    where D: Deserializer<'de>
{
    let s = String::deserialize(deserializer)?;
    u32::from_str(&s).map_err(de::Error::custom)
}
/// Convert string to u32 while deserializing
Convert string to u32 while deserializing
Convert string to u32 while deserializing
fn u32_from_str<'de, D>(deserializer: D) -> Result<u32, D::Error>
    where D: Deserializer<'de>
{
    let s = String::deserialize(deserializer)?;
    u32::from_str(&s).map_err(de::Error::custom)
}
fn u32_from_str < ' de , D > ( deserializer : D ) -> Result < u32 , D :: Error > where D : Deserializer < ' de > { let s = String :: deserialize ( deserializer ) ? ; u32 :: from_str ( & s ) . map_err ( de :: Error :: custom ) }
Convert string to u32 while deserializing
Convert string to u32 while deserializing
deserializer
D
deserializer
D