pub fn to_bytes<T>(ctxt: Context, value: &T) -> Result<Data<'static, 'static>>
Expand description
Serialize T
as a byte vector.
See Data::deserialize
documentation for an example of how to use this function.
pub fn to_bytes<T>(ctxt: Context, value: &T) -> Result<Data<'static, 'static>>
Serialize T
as a byte vector.
See Data::deserialize
documentation for an example of how to use this function.