Function to_vec

Source
pub(crate) fn to_vec<T: Serialize>(value: &T) -> Result<Vec<u8>, Error>