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

/// RemoteStoreTranslogUploadTotalUploadsStats
/// The number of syncs to the remote translog store.


#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct RemoteStoreTranslogUploadTotalUploadsStats {  /// The number of successful upload syncs to the remote translog store.
    #[serde(rename = "succeeded")]
    pub succeeded: u32,  /// The number of failed upload syncs to the remote translog store.
    #[serde(rename = "failed")]
    pub failed: u32,  /// The number of upload syncs to the remote translog store that have started.
    #[serde(rename = "started")]
    pub started: u32,
}

impl RemoteStoreTranslogUploadTotalUploadsStats {
      /// The number of syncs to the remote translog store.
    pub fn new(succeeded: u32, failed: u32, started: u32) -> RemoteStoreTranslogUploadTotalUploadsStats {
        RemoteStoreTranslogUploadTotalUploadsStats {
            succeeded,
            failed,
            started,
        }
    }
}