1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
* 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 IndexSettingBlocks {
/// Certain APIs may return values, including numbers such as epoch timestamps, as strings. This setting captures
/// this behavior while keeping the semantics of the field type.
///
/// Depending on the target language, code generators can keep the union or remove it and leniently parse
/// strings to the target type.
#[serde(rename = "metadata", default, skip_serializing_if = "Option::is_none")]
pub metadata: Option<common::StringifiedBoolean>,
/// Certain APIs may return values, including numbers such as epoch timestamps, as strings. This setting captures
/// this behavior while keeping the semantics of the field type.
///
/// Depending on the target language, code generators can keep the union or remove it and leniently parse
/// strings to the target type.
#[serde(rename = "read_only", default, skip_serializing_if = "Option::is_none")]
pub read_only: Option<common::StringifiedBoolean>,
/// Certain APIs may return values, including numbers such as epoch timestamps, as strings. This setting captures
/// this behavior while keeping the semantics of the field type.
///
/// Depending on the target language, code generators can keep the union or remove it and leniently parse
/// strings to the target type.
#[serde(
rename = "read_only_allow_delete",
default,
skip_serializing_if = "Option::is_none"
)]
pub read_only_allow_delete: Option<common::StringifiedBoolean>,
/// Certain APIs may return values, including numbers such as epoch timestamps, as strings. This setting captures
/// this behavior while keeping the semantics of the field type.
///
/// Depending on the target language, code generators can keep the union or remove it and leniently parse
/// strings to the target type.
#[serde(rename = "write", default, skip_serializing_if = "Option::is_none")]
pub write: Option<common::StringifiedBoolean>,
/// Certain APIs may return values, including numbers such as epoch timestamps, as strings. This setting captures
/// this behavior while keeping the semantics of the field type.
///
/// Depending on the target language, code generators can keep the union or remove it and leniently parse
/// strings to the target type.
#[serde(rename = "read", default, skip_serializing_if = "Option::is_none")]
pub read: Option<common::StringifiedBoolean>,
}
impl IndexSettingBlocks {
pub fn new() -> IndexSettingBlocks {
IndexSettingBlocks {
metadata: None,
read_only: None,
read_only_allow_delete: None,
write: None,
read: None,
}
}
}