pub fn deserialize<'de, D>(deserializer: D) -> Result<Vec<u8>, D::Error>
    where
        D: Deserializer<'de>,
    {
        let string = Option::<String>::deserialize(deserializer)?.unwrap_or_default();
        base64::decode(&string).map_err(serde::de::Error::custom)
    }
/// Deserialize Option<base64string> into Vec<u8> or null
Deserialize Option into Vec or null
Deserialize Option into Vec or null
pub fn deserialize<'de, D>(deserializer: D) -> Result<Vec<u8>, D::Error>
    where
        D: Deserializer<'de>,
    {
        let string = Option::<String>::deserialize(deserializer)?.unwrap_or_default();
        base64::decode(&string).map_err(serde::de::Error::custom)
    }
pub fn deserialize < ' de , D > ( deserializer : D ) -> Result < Vec < u8 > , D :: Error > where D : Deserializer < ' de > , { let string = Option :: < String > :: deserialize ( deserializer ) ? . unwrap_or_default ( ) ; base64 :: decode ( & string ) . map_err ( serde :: de :: Error :: custom ) }
Deserialize Option<base64string> into Vec<u8> or null
Deserialize Option<base64string > into Vec<u8 > or null
deserializer
D