Skip to main content

deserialize

Function deserialize 

Source
pub fn deserialize<'de, D: Deserializer<'de>>(
    deserializer: D,
) -> Result<Vec<u8>, D::Error>
Available on crate feature serde and (crate features alloc) only.
Expand description

Deserializes a hex string (human-readable) or raw bytes (binary formats) into a Vec<u8>.

Usually used via #[serde(with = "hex")].