Function encode

Source
pub fn encode<T>(value: &T) -> Vec<u8> 
where T: Serialize,
Expand description

Encodes the given value into a blob.

This serializes the value using postcard.