[][src]Function hex::serde::deserialize

pub fn deserialize<'de, D, T>(deserializer: D) -> Result<T, D::Error> where
    D: Deserializer<'de>,
    T: FromHex,
    <T as FromHex>::Error: Display
This is supported on feature="serde" only.

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).