opensearch 2.4.0

Official OpenSearch Rust client
Documentation
/*
 * SPDX-License-Identifier: Apache-2.0
 *
 * The OpenSearch Contributors require contributions made to
 * this file be licensed under the Apache-2.0 license or a
 * compatible open source license.
 *
 * Modifications Copyright OpenSearch Contributors. See
 * GitHub history for details.
 */

#![allow(unused)]

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,
}