to_data

Function to_data 

Source
pub fn to_data<T>(value: &T) -> Result<Data<'static>, Error<'static>>
where T: Serialize,
Expand description

Serialize T into Data.