pub fn to_vec<T>(value: &T) -> Result<Vec<u8>, Error<Infallible>>where T: Serialize + ?Sized,
alloc
Serialize value as messagepack byte vector