Skip to main content

deserialize

Function deserialize 

Source
pub fn deserialize<T: DeserializeOwned>(
    bytes: &[u8],
) -> Result<T, CachekitError>
Expand description

Deserialize bytes from MessagePack into T under the decode bounds: cachekit-core’s structural walk (depth ≤ MAX_DECODE_DEPTH, no overclaim) runs before anything is decoded, and bytes must hold exactly one document — trailing bytes are rejected, as in interop mode (crate::interop::deserialize).