diff --git a/opensearch/src/lib.rs b/opensearch/src/lib.rs index 4e858eaa..0824a292 100644 --- a/opensearch/src/lib.rs +++ b/opensearch/src/lib.rs @@ -389,6 +389,7 @@ pub mod auth; pub mod cert; pub mod http; pub mod params; +pub mod models; // GENERATED-BEGIN:namespace-modules // Generated code - do not edit until the next GENERATED-END marker diff --git a/opensearch/src/models/mod.rs b/opensearch/src/models/mod.rs new file mode 100644 index 00000000..a158908e --- /dev/null +++ b/opensearch/src/models/mod.rs @@ -0,0 +1,25 @@ +use serde::Deserialize; + +#[derive(Deserialize, Debug)] +#[doc = "Cluster information"] +pub struct InfoResponse { + name : String, + cluster_name: String, + cluster_uuid: String, + version: OpenSearchVersionInfo, + #[serde(rename = "tagline")] + tag_line: String +} + +#[derive(Deserialize, Debug)] +pub struct OpenSearchVersionInfo { + distribution: String, + number: String, + build_type: String, + build_hash: String, + build_date: String, + build_snapshot: bool, + lucene_version: String, + minimum_wire_compatibility_version: String, + minimum_index_compatibility_version: String +} \ No newline at end of file