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