encode_cbor

Function encode_cbor 

Source
pub fn encode_cbor<T>(obj: &T) -> Result<Vec<u8>, Error>
where T: Serialize,
Expand description

Encodes a serializable object into CBOR format.

This function is a thin wrapper around ciborium::ser::into_writer.