elastic / elasticsearch-rs

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

Add body field to builders that accept a body #3

Closed russcam closed 4 years ago

russcam commented 4 years ago

For APIs that accept a request body, the builder struct should expose a function for setting a body for the request. The input parameter should probably be a type that implements serde's Serialize trait, to allow a user to supply their own type for a request, or use serde's json! macro and serde_json::Value.

russcam commented 4 years ago

Working on this now

russcam commented 4 years ago

Implemented in 32e1e0401406882a9feb3daffc79ab3b5dbf8046