This simplifies conversions between JSON and Payload in both directions. It adds a new error variant (QdrantError::JsonToPayload) and replaces the convoluted and isolated error type we had for this before.
It also replaces the Payload::from_json_object I had added with Payload::try_from.
I've added documentation for this to clearly show how to convert between the types:
The change does not introduce any new problems with the top 12 crates using qdrant_client. It therefore seems good enough in terms of backwards compatibility.
All Submissions:
[x] Contributions should target the dev branch. Did you create your branch from dev?
[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
New Feature Submissions:
[x] Does your submission pass tests?
[x] Have you formatted your code locally using cargo +nightly fmt --all command prior to submission?
[x] Have you checked your code using cargo clippy --all --all-features command?
This simplifies conversions between JSON and Payload in both directions. It adds a new error variant (
QdrantError::JsonToPayload
) and replaces the convoluted and isolated error type we had for this before.It also replaces the
Payload::from_json_object
I had added withPayload::try_from
.I've added documentation for this to clearly show how to convert between the types:
The change does not introduce any new problems with the top 12 crates using
qdrant_client
. It therefore seems good enough in terms of backwards compatibility.All Submissions:
dev
branch. Did you create your branch fromdev
?New Feature Submissions:
cargo +nightly fmt --all
command prior to submission?cargo clippy --all --all-features
command?