Function deserialize
pub fn deserialize<'de, D, T>(deserializer: D) -> Result<T, D::Error>
where
D: Deserializer<'de>,
T: FromHex,
<T as FromHex>::Error: Display,
Deserializes a hex string into raw bytes.
Both, upper and lower case characters are valid in the input string and can
even be mixed (e.g. f9b4ca, F9B4CA and f9B4Ca are all valid strings).