opensearch_client/cluster/allocation_explain/
allocation_store.rs1use serde::{Deserialize, Serialize};
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct AllocationStore {
15 #[serde(rename = "in_sync")]
16 pub in_sync: bool,
17 #[serde(rename = "allocation_id")]
18 pub allocation_id: String,
19 #[serde(rename = "matching_size_in_bytes")]
20 pub matching_size_in_bytes: u32,
21 #[serde(rename = "store_exception")]
22 pub store_exception: String,
23 #[serde(rename = "found")]
24 pub found: bool,
25 #[serde(rename = "matching_sync_id")]
26 pub matching_sync_id: bool,
27}
28
29impl AllocationStore {
30 pub fn new(
31 in_sync: bool,
32 allocation_id: String,
33 matching_size_in_bytes: u32,
34 store_exception: String,
35 found: bool,
36 matching_sync_id: bool,
37 ) -> AllocationStore {
38 AllocationStore {
39 in_sync,
40 allocation_id,
41 matching_size_in_bytes,
42 store_exception,
43 found,
44 matching_sync_id,
45 }
46 }
47}