opensearch_client/common/
remote_store_stats.rs1use crate::common;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
18pub struct RemoteStoreStats {
19 #[serde(rename = "upload")]
21 pub upload: common::RemoteStoreUploadStats,
22 #[serde(rename = "download")]
24 pub download: common::RemoteStoreDownloadStats,
25}
26
27impl RemoteStoreStats {
28 pub fn new(
30 upload: common::RemoteStoreUploadStats,
31 download: common::RemoteStoreDownloadStats,
32 ) -> RemoteStoreStats {
33 RemoteStoreStats { upload, download }
34 }
35}