opensearch-client 0.3.1

Strongly typed OpenSearch Client
Documentation
/*
 * opensearch-client
 *
 * Rust Client for OpenSearch
 *
 * The version of the OpenAPI document: 3.1.0
 * Contact: alberto.paro@gmail.com
 * Generated by Paro OpenAPI Generator
 */

use crate::indices;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, Serialize, Deserialize)]
pub struct GetIndexTemplateResponse {
    #[serde(rename = "index_templates")]
    pub index_templates: Vec<indices::get_index_template::IndexTemplateItem>,
}

impl GetIndexTemplateResponse {
    pub fn new(
        index_templates: Vec<indices::get_index_template::IndexTemplateItem>,
    ) -> GetIndexTemplateResponse {
        GetIndexTemplateResponse { index_templates }
    }
}