Skip to content

Commit cacc3cd

Browse files
committed
[es] Generate client code
1 parent 7371329 commit cacc3cd

24 files changed

+48
-24
lines changed

elasticsearch/src/async_search.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
//! let you asynchronously execute a search request, monitor its progress, and retrieve
3131
//! partial results as they become available.
3232
33-
# ! [ allow ( unused_imports ) ]use crate::{
33+
#![allow(unused_imports)]
34+
use crate::{
3435
client::Elasticsearch,
3536
error::Error,
3637
http::{

elasticsearch/src/cat.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@
119119
//! ```
120120
//!
121121
122-
# ! [ allow ( unused_imports ) ]use crate::{
122+
#![allow(unused_imports)]
123+
use crate::{
123124
client::Elasticsearch,
124125
error::Error,
125126
http::{

elasticsearch/src/ccr.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
//! - Disaster recovery in case a primary cluster fails. A secondary cluster can serve as a hot backup
3333
//! - Geo-proximity so that reads can be served locally
3434
35-
# ! [ allow ( unused_imports ) ]use crate::{
35+
#![allow(unused_imports)]
36+
use crate::{
3637
client::Elasticsearch,
3738
error::Error,
3839
http::{

elasticsearch/src/cluster.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
//! [Manage settings](https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster.html),
3030
//! perform operations, and retrieve information about an Elasticsearch cluster.
3131
32-
# ! [ allow ( unused_imports ) ]use crate::{
32+
#![allow(unused_imports)]
33+
use crate::{
3334
client::Elasticsearch,
3435
error::Error,
3536
http::{

elasticsearch/src/dangling_indices.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
//!
3434
//! The dangling indices APIs can list, import and delete dangling indices.
3535
36-
# ! [ allow ( unused_imports ) ]use crate::{
36+
#![allow(unused_imports)]
37+
use crate::{
3738
client::Elasticsearch,
3839
error::Error,
3940
http::{

elasticsearch/src/enrich.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
//! as part of an [ingest pipeline](../ingest/index.html), to add data from your existing indices
3232
//! to incoming documents during ingest.
3333
34-
# ! [ allow ( unused_imports ) ]use crate::{
34+
#![allow(unused_imports)]
35+
use crate::{
3536
client::Elasticsearch,
3637
error::Error,
3738
http::{

elasticsearch/src/graph.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
//! indices, [inferring relationships across documents](https://www.elastic.co/what-is/elasticsearch-graph),
3131
//! and allowing the [exploration of such relationships](https://www.elastic.co/guide/en/elasticsearch/reference/master/graph-explore-api.html).
3232
33-
# ! [ allow ( unused_imports ) ]use crate::{
33+
#![allow(unused_imports)]
34+
use crate::{
3435
client::Elasticsearch,
3536
error::Error,
3637
http::{

elasticsearch/src/ilm.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
//! template used to create them. Update the policy to modify the lifecycle of both new
3535
//! and existing indices.
3636
37-
# ! [ allow ( unused_imports ) ]use crate::{
37+
#![allow(unused_imports)]
38+
use crate::{
3839
client::Elasticsearch,
3940
error::Error,
4041
http::{

elasticsearch/src/indices.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
//! [Manage individual indices](https://www.elastic.co/guide/en/elasticsearch/reference/master/indices.html),
3030
//! index settings, aliases, mappings, and index templates.
3131
32-
# ! [ allow ( unused_imports ) ]use crate::{
32+
#![allow(unused_imports)]
33+
use crate::{
3334
client::Elasticsearch,
3435
error::Error,
3536
http::{

elasticsearch/src/ingest.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
//! be conditionally executed, and failures within pipelines can be explicitly handled by defining
4343
//! processors to execute in the event of failure.
4444
45-
# ! [ allow ( unused_imports ) ]use crate::{
45+
#![allow(unused_imports)]
46+
use crate::{
4647
client::Elasticsearch,
4748
error::Error,
4849
http::{

0 commit comments

Comments
 (0)