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 serde::{Deserialize, Serialize};




#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct IndicesVersions {
    #[serde(rename = "total_primary_bytes")]
    pub total_primary_bytes: u32,
    #[serde(rename = "index_count")]
    pub index_count: u32,
    #[serde(rename = "version")]
    pub version: String,
    #[serde(rename = "primary_shard_count")]
    pub primary_shard_count: u32,
}

impl IndicesVersions {
    
    pub fn new(total_primary_bytes: u32, index_count: u32, version: String, primary_shard_count: u32) -> IndicesVersions {
        IndicesVersions {
            total_primary_bytes,
            index_count,
            version,
            primary_shard_count,
        }
    }
}