essential_builder_db

Function decode

source
pub fn decode<T>(value: &[u8]) -> Result<T, DecodeError>
where T: for<'de> Deserialize<'de>,
Expand description

Decodes the given blob into a value of type T.

This deserializes the bytes into a value of T with postcard.