elastic / elasticsearch-rs

Official Elasticsearch Rust Client
https://www.elastic.co/guide/en/elasticsearch/client/rust-api/current/index.html
Apache License 2.0
12 stars 73 forks source link

[Feature] Generate Query params #4

Closed lloydmeta closed 5 years ago

lloydmeta commented 5 years ago

This update clients and connection to take an optional serializable Q instead of Option<&[(String, String)]>: This allows us to (1) let Reqwest do the serialising for us and (2) prevents us from . It then also moves to declaring and using function-local query param structs that derive(Serializable).

Note: there are some conflicts with master, but the client does compile on my fork.