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

References for builder fields, fns and API enum tuple structs #25

Closed russcam closed 4 years ago

russcam commented 4 years ago

This commit changes the builder struct field values, associated fns and enum tuple structs to accept references rather than owned types. In addition, string slices are accepted now rather than String.

This change requires explicit lifetimes on all builder structs and enums that contain a tuple struct variant.

Closes #22