elastic / elasticsearch-rs

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

Pass reference to Elasticsearch struct to builder structs #38

Closed russcam closed 4 years ago

russcam commented 4 years ago

This commit changes the api_generator to pass a reference to an instance of Elasticsearch struct to each builder struct. The reference has a lifetime of 'a, distinct from the lifetime 'b of the *Parts enum and references passed to builder struct functions.

Closes #36