pub fn to_vec<T>(value: &T) -> Result<Vec<u8>, Error>where T: Serialize + ?Sized,
SCALE-encode a value into a new Vec<u8>.
Vec<u8>