pub fn to_vec<T: Serialize>(value: &T) -> SerResult<Vec<u8>>
Convenient function to get encoded value as bytes