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




#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ShardClusterManagerThrottlingStatsDetail {
    #[serde(rename = "throttled_tasks_per_task_type")]
    pub throttled_tasks_per_task_type: serde_json::Value,
    #[serde(rename = "total_throttled_tasks")]
    pub total_throttled_tasks: u32,
}

impl ShardClusterManagerThrottlingStatsDetail {
    
    pub fn new(throttled_tasks_per_task_type: serde_json::Value, total_throttled_tasks: u32) -> ShardClusterManagerThrottlingStatsDetail {
        ShardClusterManagerThrottlingStatsDetail {
            throttled_tasks_per_task_type,
            total_throttled_tasks,
        }
    }
}