pub fn decode<T: Model>(data: Vec<u8>) -> Result<(T, u32)>
Allows to decode a native_model from a Vec<u8> and returns the version (u32). See examples:
native_model
Vec<u8>
u32