opensearch_client/common/mapping/
property.rs1use crate::common;
12use serde::{Deserialize, Serialize};
13
14#[derive(
15 Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize, Default,
16)]
17pub enum Property {
18 #[default]
19 NestedPropertyValue,
20
21 FlatObjectPropertyValue,
22
23 IpPropertyValue,
24
25 ShortNumberPropertyValue,
26
27 RankFeaturePropertyValue,
28
29 DatePropertyValue,
30
31 AggregateMetricDoublePropertyValue,
32
33 IcuCollationKeywordPropertyValue,
34
35 Murmur3HashPropertyValue,
36
37 WildcardPropertyValue,
38
39 DoubleNumberPropertyValue,
40
41 HalfFloatNumberPropertyValue,
42
43 ScaledFloatNumberPropertyValue,
44
45 FloatNumberPropertyValue,
46
47 DoubleRangePropertyValue,
48
49 IntegerRangePropertyValue,
50
51 TextPropertyValue,
52
53 ConstantKeywordPropertyValue,
54
55 KeywordPropertyValue,
56
57 JoinPropertyValue,
58
59 PercolatorPropertyValue,
60
61 GeoShapePropertyValue,
62
63 SearchAsYouTypePropertyValue,
64
65 BooleanPropertyValue,
66
67 IntegerNumberPropertyValue,
68
69 HistogramPropertyValue,
70
71 LongRangePropertyValue,
72
73 ObjectPropertyValue,
74
75 DateRangePropertyValue,
76
77 ByteNumberPropertyValue,
78
79 LongNumberPropertyValue,
80
81 KnnVectorPropertyValue,
82
83 TokenCountPropertyValue,
84
85 FieldAliasPropertyValue,
86
87 BinaryPropertyValue,
88
89 DateNanosPropertyValue,
90
91 CompletionPropertyValue,
92
93 VersionPropertyValue,
94
95 RankFeaturesPropertyValue,
96
97 GeoPointPropertyValue,
98
99 UnsignedLongNumberPropertyValue,
100
101 MatchOnlyTextPropertyValue,
102
103 FloatRangePropertyValue,
104
105 IpRangePropertyValue,
106}
107
108impl std::fmt::Display for Property {
109 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
110 match self {
111 Self::NestedPropertyValue => write!(f, "0"),
112 Self::FlatObjectPropertyValue => write!(f, "0"),
113 Self::IpPropertyValue => write!(f, "0"),
114 Self::ShortNumberPropertyValue => write!(f, "0"),
115 Self::RankFeaturePropertyValue => write!(f, "0"),
116 Self::DatePropertyValue => write!(f, "0"),
117 Self::AggregateMetricDoublePropertyValue => write!(f, "0"),
118 Self::IcuCollationKeywordPropertyValue => write!(f, "0"),
119 Self::Murmur3HashPropertyValue => write!(f, "0"),
120 Self::WildcardPropertyValue => write!(f, "0"),
121 Self::DoubleNumberPropertyValue => write!(f, "0"),
122 Self::HalfFloatNumberPropertyValue => write!(f, "0"),
123 Self::ScaledFloatNumberPropertyValue => write!(f, "0"),
124 Self::FloatNumberPropertyValue => write!(f, "0"),
125 Self::DoubleRangePropertyValue => write!(f, "0"),
126 Self::IntegerRangePropertyValue => write!(f, "0"),
127 Self::TextPropertyValue => write!(f, "0"),
128 Self::ConstantKeywordPropertyValue => write!(f, "0"),
129 Self::KeywordPropertyValue => write!(f, "0"),
130 Self::JoinPropertyValue => write!(f, "0"),
131 Self::PercolatorPropertyValue => write!(f, "0"),
132 Self::GeoShapePropertyValue => write!(f, "0"),
133 Self::SearchAsYouTypePropertyValue => write!(f, "0"),
134 Self::BooleanPropertyValue => write!(f, "0"),
135 Self::IntegerNumberPropertyValue => write!(f, "0"),
136 Self::HistogramPropertyValue => write!(f, "0"),
137 Self::LongRangePropertyValue => write!(f, "0"),
138 Self::ObjectPropertyValue => write!(f, "0"),
139 Self::DateRangePropertyValue => write!(f, "0"),
140 Self::ByteNumberPropertyValue => write!(f, "0"),
141 Self::LongNumberPropertyValue => write!(f, "0"),
142 Self::KnnVectorPropertyValue => write!(f, "0"),
143 Self::TokenCountPropertyValue => write!(f, "0"),
144 Self::FieldAliasPropertyValue => write!(f, "0"),
145 Self::BinaryPropertyValue => write!(f, "0"),
146 Self::DateNanosPropertyValue => write!(f, "0"),
147 Self::CompletionPropertyValue => write!(f, "0"),
148 Self::VersionPropertyValue => write!(f, "0"),
149 Self::RankFeaturesPropertyValue => write!(f, "0"),
150 Self::GeoPointPropertyValue => write!(f, "0"),
151 Self::UnsignedLongNumberPropertyValue => write!(f, "0"),
152 Self::MatchOnlyTextPropertyValue => write!(f, "0"),
153 Self::FloatRangePropertyValue => write!(f, "0"),
154 Self::IpRangePropertyValue => write!(f, "0"),
155 }
156 }
157}