pub fn cbor_serialize<'a, T: ?Sized + Serialize>( object: &T, buffer: &'a mut [u8], ) -> Result<&'a [u8]>