The library should ideally support a Vec<u8> as payload. Unfortunately, with the current API this requires owning a KVPair, which is a bit awkward from a user perspective.
This problem manifests itself when you try to post JSON containing mixed types.
Consul actually supports binary data, as per the documentation https://www.consul.io/api/kv.html#create-update-key
The library should ideally support a
Vec<u8>
as payload. Unfortunately, with the current API this requires owning aKVPair
, which is a bit awkward from a user perspective.This problem manifests itself when you try to post JSON containing mixed types.