Function zvariant::to_bytes

source ยท
pub fn to_bytes<T>(ctxt: Context, value: &T) -> Result<Data<'static, 'static>>
where T: ?Sized + Serialize + DynamicType,
Expand description

Serialize T as a byte vector.

See Data::deserialize documentation for an example of how to use this function.