serdect::slice

Function deserialize_hex_or_bin_vec

Source
pub fn deserialize_hex_or_bin_vec<'de, D>(
    deserializer: D,
) -> Result<Vec<u8>, D::Error>
where D: Deserializer<'de>,
Expand description

Deserialize from hex when using human-readable formats or binary if the format is binary.