/*
* 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::core;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Profile {
#[serde(rename = "shards")]
pub shards: Vec<core::search::ShardProfile>,
}
impl Profile {
pub fn new(shards: Vec<core::search::ShardProfile>) -> Profile {
Profile {
shards,
}
}
}