pub fn decode<'de, T: Serialize + Deserialize<'de>>(
bytes: &'de [u8],
limits: Limits,
) -> Result<T, Error>Expand description
Decode a complete canonical payload; allocation admission precedes visitor calls. Borrowed bytes and strings may refer directly to the input for its lifetime. Canonical verification and conservative resource charges also apply to borrowed values.