serialize

Function serialize 

Source
pub fn serialize<T>(value: &T) -> Result<Vec<u8>>
where T: Serialize,