Function encode
Source pub fn encode<T: Model>(model: &T) -> Result<Vec<u8>>
Expand description
Allows to encode a native_model into a Vec<u8>.
See examples:
ยงErrors
The errors returned from this function depend on the Encode trait
implementor (the serializer), i.e. bincode_2.