8 8 | impl From<crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained>
|
9 9 | for crate::constrained::MaybeConstrained<crate::model::ConstrainedUnion>
|
10 10 | {
|
11 11 | fn from(
|
12 12 | value: crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained,
|
13 13 | ) -> Self {
|
14 14 | Self::Unconstrained(value)
|
15 15 | }
|
16 16 | }
|
17 17 |
|
18 - | pub(crate) mod map_of_enum_string_unconstrained {
|
18 + | pub(crate) mod map_of_length_string_unconstrained {
|
19 19 |
|
20 20 | #[derive(Debug, Clone)]
|
21 - | pub(crate) struct MapOfEnumStringUnconstrained(
|
21 + | pub(crate) struct MapOfLengthStringUnconstrained(
|
22 22 | pub(crate) std::collections::HashMap<::std::string::String, ::std::string::String>,
|
23 23 | );
|
24 24 |
|
25 - | impl From<MapOfEnumStringUnconstrained>
|
25 + | impl From<MapOfLengthStringUnconstrained>
|
26 26 | for crate::constrained::MaybeConstrained<
|
27 - | crate::constrained::map_of_enum_string_constrained::MapOfEnumStringConstrained,
|
27 + | crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained,
|
28 28 | >
|
29 29 | {
|
30 - | fn from(value: MapOfEnumStringUnconstrained) -> Self {
|
30 + | fn from(value: MapOfLengthStringUnconstrained) -> Self {
|
31 31 | Self::Unconstrained(value)
|
32 32 | }
|
33 33 | }
|
34 - | impl std::convert::TryFrom<MapOfEnumStringUnconstrained>
|
35 - | for crate::constrained::map_of_enum_string_constrained::MapOfEnumStringConstrained
|
34 + | impl std::convert::TryFrom<MapOfLengthStringUnconstrained>
|
35 + | for crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained
|
36 36 | {
|
37 - | type Error = crate::model::map_of_enum_string_internal::ConstraintViolation;
|
38 - | fn try_from(value: MapOfEnumStringUnconstrained) -> std::result::Result<Self, Self::Error> {
|
37 + | type Error = crate::model::map_of_length_string_internal::ConstraintViolation;
|
38 + | fn try_from(
|
39 + | value: MapOfLengthStringUnconstrained,
|
40 + | ) -> std::result::Result<Self, Self::Error> {
|
39 41 | let res: ::std::result::Result<
|
40 - | ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
42 + | ::std::collections::HashMap<crate::model::LengthString, crate::model::LengthString>,
|
41 43 | Self::Error,
|
42 44 | > = value
|
43 45 | .0
|
44 46 | .into_iter()
|
45 47 | .map(|(k, v)| {
|
46 - | let k: crate::model::EnumString = k.try_into().map_err(Self::Error::Key)?;
|
48 + | let k: crate::model::LengthString = k.try_into().map_err(Self::Error::Key)?;
|
47 49 |
|
48 - | match crate::model::EnumString::try_from(v) {
|
50 + | match crate::model::LengthString::try_from(v) {
|
49 51 | Ok(v) => Ok((k, v)),
|
50 52 | Err(inner_constraint_violation) => {
|
51 53 | Err(Self::Error::Value(k, inner_constraint_violation))
|
52 54 | }
|
53 55 | }
|
54 56 | })
|
55 57 | .collect();
|
56 58 | let hm = res?;
|
57 59 | Ok(Self(hm))
|
58 60 | }
|
59 61 | }
|
60 62 | }
|
61 - | pub(crate) mod con_b_map_unconstrained {
|
63 + | pub(crate) mod set_of_length_string_unconstrained {
|
62 64 |
|
63 65 | #[derive(Debug, Clone)]
|
64 - | pub(crate) struct ConBMapUnconstrained(
|
65 - | pub(crate) std::collections::HashMap<::std::string::String, ::std::string::String>,
|
66 + | pub(crate) struct SetOfLengthStringUnconstrained(
|
67 + | pub(crate) std::vec::Vec<::std::string::String>,
|
66 68 | );
|
67 69 |
|
68 - | impl From<ConBMapUnconstrained> for crate::constrained::MaybeConstrained<crate::model::ConBMap> {
|
69 - | fn from(value: ConBMapUnconstrained) -> Self {
|
70 + | impl From<SetOfLengthStringUnconstrained>
|
71 + | for crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>
|
72 + | {
|
73 + | fn from(value: SetOfLengthStringUnconstrained) -> Self {
|
70 74 | Self::Unconstrained(value)
|
71 75 | }
|
72 76 | }
|
73 - | impl std::convert::TryFrom<ConBMapUnconstrained> for crate::model::ConBMap {
|
74 - | type Error = crate::model::con_b_map_internal::ConstraintViolation;
|
75 - | fn try_from(value: ConBMapUnconstrained) -> std::result::Result<Self, Self::Error> {
|
77 + | impl std::convert::TryFrom<SetOfLengthStringUnconstrained> for crate::model::SetOfLengthString {
|
78 + | type Error = crate::model::set_of_length_string_internal::ConstraintViolation;
|
79 + | fn try_from(
|
80 + | value: SetOfLengthStringUnconstrained,
|
81 + | ) -> std::result::Result<Self, Self::Error> {
|
76 82 | let res: ::std::result::Result<
|
77 - | ::std::collections::HashMap<::std::string::String, crate::model::LengthString>,
|
78 - | Self::Error,
|
83 + | ::std::vec::Vec<crate::model::LengthString>,
|
84 + | (
|
85 + | usize,
|
86 + | crate::model::length_string_internal::ConstraintViolation,
|
87 + | ),
|
79 88 | > = value
|
80 89 | .0
|
81 90 | .into_iter()
|
82 - | .map(|(k, v)| match crate::model::LengthString::try_from(v) {
|
83 - | Ok(v) => Ok((k, v)),
|
84 - | Err(inner_constraint_violation) => {
|
85 - | Err(Self::Error::Value(k, inner_constraint_violation))
|
86 - | }
|
91 + | .enumerate()
|
92 + | .map(|(idx, inner)| {
|
93 + | inner
|
94 + | .try_into()
|
95 + | .map_err(|inner_violation| (idx, inner_violation))
|
87 96 | })
|
88 97 | .collect();
|
89 - | let hm = res?;
|
90 - | Self::try_from(hm)
|
91 - | }
|
92 - | }
|
93 - | }
|
94 - | pub(crate) mod map_of_list_of_length_pattern_string_unconstrained {
|
95 - |
|
96 - | #[derive(Debug, Clone)]
|
97 - | pub(crate) struct MapOfListOfLengthPatternStringUnconstrained(pub(crate) std::collections::HashMap<::std::string::String, crate::unconstrained::list_of_length_pattern_string_unconstrained::ListOfLengthPatternStringUnconstrained>);
|
98 - |
|
99 - | impl From<MapOfListOfLengthPatternStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_pattern_string_constrained::MapOfListOfLengthPatternStringConstrained> {
|
100 - | fn from(value: MapOfListOfLengthPatternStringUnconstrained) -> Self {
|
101 - | Self::Unconstrained(value)
|
102 - | }
|
103 - | }
|
104 - | impl std::convert::TryFrom<MapOfListOfLengthPatternStringUnconstrained> for crate::constrained::map_of_list_of_length_pattern_string_constrained::MapOfListOfLengthPatternStringConstrained {
|
105 - | type Error = crate::model::map_of_list_of_length_pattern_string_internal::ConstraintViolation;
|
106 - | fn try_from(value: MapOfListOfLengthPatternStringUnconstrained) -> std::result::Result<Self, Self::Error> {
|
107 - | let res: ::std::result::Result<::std::collections::HashMap<crate::model::LengthPatternString, crate::constrained::list_of_length_pattern_string_constrained::ListOfLengthPatternStringConstrained>, Self::Error> = value.0
|
108 - | .into_iter()
|
109 - | .map(|(k, v)| {
|
110 - | let k: crate::model::LengthPatternString = k.try_into().map_err(Self::Error::Key)?;
|
111 - |
|
112 - | match crate::constrained::list_of_length_pattern_string_constrained::ListOfLengthPatternStringConstrained::try_from(v) {
|
113 - | Ok(v) => Ok((k, v)),
|
114 - | Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
|
115 - | }
|
116 - | })
|
117 - | .collect();
|
118 - | let hm = res?;
|
119 - | Ok(Self(hm))
|
98 + | let inner =
|
99 + | res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
|
100 + | Self::try_from(inner)
|
120 101 | }
|
121 102 | }
|
122 103 | }
|
123 - | pub(crate) mod list_of_length_pattern_string_unconstrained {
|
104 + | pub(crate) mod list_of_length_string_unconstrained {
|
124 105 |
|
125 106 | #[derive(Debug, Clone)]
|
126 - | pub(crate) struct ListOfLengthPatternStringUnconstrained(
|
107 + | pub(crate) struct ListOfLengthStringUnconstrained(
|
127 108 | pub(crate) std::vec::Vec<::std::string::String>,
|
128 109 | );
|
129 110 |
|
130 - | impl From<ListOfLengthPatternStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::list_of_length_pattern_string_constrained::ListOfLengthPatternStringConstrained> {
|
131 - | fn from(value: ListOfLengthPatternStringUnconstrained) -> Self {
|
132 - | Self::Unconstrained(value)
|
133 - | }
|
134 - | }
|
135 - | impl std::convert::TryFrom<ListOfLengthPatternStringUnconstrained> for crate::constrained::list_of_length_pattern_string_constrained::ListOfLengthPatternStringConstrained {
|
136 - | type Error = crate::model::list_of_length_pattern_string_internal::ConstraintViolation;
|
137 - | fn try_from(value: ListOfLengthPatternStringUnconstrained) -> std::result::Result<Self, Self::Error> {
|
138 - | let res: ::std::result::Result<::std::vec::Vec<crate::model::LengthPatternString>, (usize, crate::model::length_pattern_string_internal::ConstraintViolation) > = value
|
139 - | .0
|
140 - | .into_iter()
|
141 - | .enumerate()
|
142 - | .map(|(idx, inner)| {
|
143 - | inner.try_into().map_err(|inner_violation| (idx, inner_violation))
|
144 - | })
|
145 - | .collect();
|
146 - | let inner = res
|
147 - |
|
148 - | .map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
|
149 - | Ok(Self(inner))
|
150 - | }
|
151 - | }
|
152 - | }
|
153 - | pub(crate) mod map_of_length_pattern_string_unconstrained {
|
154 - |
|
155 - | #[derive(Debug, Clone)]
|
156 - | pub(crate) struct MapOfLengthPatternStringUnconstrained(
|
157 - | pub(crate) std::collections::HashMap<::std::string::String, ::std::string::String>,
|
158 - | );
|
159 - |
|
160 - | impl From<MapOfLengthPatternStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_length_pattern_string_constrained::MapOfLengthPatternStringConstrained> {
|
161 - | fn from(value: MapOfLengthPatternStringUnconstrained) -> Self {
|
162 - | Self::Unconstrained(value)
|
163 - | }
|
164 - | }
|
165 - | impl std::convert::TryFrom<MapOfLengthPatternStringUnconstrained> for crate::constrained::map_of_length_pattern_string_constrained::MapOfLengthPatternStringConstrained {
|
166 - | type Error = crate::model::map_of_length_pattern_string_internal::ConstraintViolation;
|
167 - | fn try_from(value: MapOfLengthPatternStringUnconstrained) -> std::result::Result<Self, Self::Error> {
|
168 - | let res: ::std::result::Result<::std::collections::HashMap<crate::model::LengthPatternString, crate::model::LengthPatternString>, Self::Error> = value.0
|
169 - | .into_iter()
|
170 - | .map(|(k, v)| {
|
171 - | let k: crate::model::LengthPatternString = k.try_into().map_err(Self::Error::Key)?;
|
172 - |
|
173 - | match crate::model::LengthPatternString::try_from(v) {
|
174 - | Ok(v) => Ok((k, v)),
|
175 - | Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
|
176 - | }
|
177 - | })
|
178 - | .collect();
|
179 - | let hm = res?;
|
180 - | Ok(Self(hm))
|
111 + | impl From<ListOfLengthStringUnconstrained>
|
112 + | for crate::constrained::MaybeConstrained<
|
113 + | crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained,
|
114 + | >
|
115 + | {
|
116 + | fn from(value: ListOfLengthStringUnconstrained) -> Self {
|
117 + | Self::Unconstrained(value)
|
181 118 | }
|
182 119 | }
|
183 - | }
|
184 - | pub(crate) mod map_of_list_of_pattern_string_unconstrained {
|
185 - |
|
186 - | #[derive(Debug, Clone)]
|
187 - | pub(crate) struct MapOfListOfPatternStringUnconstrained(pub(crate) std::collections::HashMap<::std::string::String, crate::unconstrained::list_of_pattern_string_unconstrained::ListOfPatternStringUnconstrained>);
|
188 - |
|
189 - | impl From<MapOfListOfPatternStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_pattern_string_constrained::MapOfListOfPatternStringConstrained> {
|
190 - | fn from(value: MapOfListOfPatternStringUnconstrained) -> Self {
|
191 - | Self::Unconstrained(value)
|
192 - | }
|
193 - | }
|
194 - | impl std::convert::TryFrom<MapOfListOfPatternStringUnconstrained> for crate::constrained::map_of_list_of_pattern_string_constrained::MapOfListOfPatternStringConstrained {
|
195 - | type Error = crate::model::map_of_list_of_pattern_string_internal::ConstraintViolation;
|
196 - | fn try_from(value: MapOfListOfPatternStringUnconstrained) -> std::result::Result<Self, Self::Error> {
|
197 - | let res: ::std::result::Result<::std::collections::HashMap<crate::model::PatternString, crate::constrained::list_of_pattern_string_constrained::ListOfPatternStringConstrained>, Self::Error> = value.0
|
198 - | .into_iter()
|
199 - | .map(|(k, v)| {
|
200 - | let k: crate::model::PatternString = k.try_into().map_err(Self::Error::Key)?;
|
201 - |
|
202 - | match crate::constrained::list_of_pattern_string_constrained::ListOfPatternStringConstrained::try_from(v) {
|
203 - | Ok(v) => Ok((k, v)),
|
204 - | Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
|
205 - | }
|
206 - | })
|
207 - | .collect();
|
208 - | let hm = res?;
|
209 - | Ok(Self(hm))
|
120 + | impl std::convert::TryFrom<ListOfLengthStringUnconstrained>
|
121 + | for crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained
|
122 + | {
|
123 + | type Error = crate::model::list_of_length_string_internal::ConstraintViolation;
|
124 + | fn try_from(
|
125 + | value: ListOfLengthStringUnconstrained,
|
126 + | ) -> std::result::Result<Self, Self::Error> {
|
127 + | let res: ::std::result::Result<
|
128 + | ::std::vec::Vec<crate::model::LengthString>,
|
129 + | (
|
130 + | usize,
|
131 + | crate::model::length_string_internal::ConstraintViolation,
|
132 + | ),
|
133 + | > = value
|
134 + | .0
|
135 + | .into_iter()
|
136 + | .enumerate()
|
137 + | .map(|(idx, inner)| {
|
138 + | inner
|
139 + | .try_into()
|
140 + | .map_err(|inner_violation| (idx, inner_violation))
|
141 + | })
|
142 + | .collect();
|
143 + | let inner =
|
144 + | res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
|
145 + | Ok(Self(inner))
|
210 146 | }
|
211 147 | }
|
212 148 | }
|
213 - | pub(crate) mod list_of_pattern_string_unconstrained {
|
149 + | pub(crate) mod length_list_of_pattern_string_unconstrained {
|
214 150 |
|
215 151 | #[derive(Debug, Clone)]
|
216 - | pub(crate) struct ListOfPatternStringUnconstrained(
|
152 + | pub(crate) struct LengthListOfPatternStringUnconstrained(
|
217 153 | pub(crate) std::vec::Vec<::std::string::String>,
|
218 154 | );
|
219 155 |
|
220 - | impl From<ListOfPatternStringUnconstrained>
|
221 - | for crate::constrained::MaybeConstrained<
|
222 - | crate::constrained::list_of_pattern_string_constrained::ListOfPatternStringConstrained,
|
223 - | >
|
156 + | impl From<LengthListOfPatternStringUnconstrained>
|
157 + | for crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>
|
224 158 | {
|
225 - | fn from(value: ListOfPatternStringUnconstrained) -> Self {
|
159 + | fn from(value: LengthListOfPatternStringUnconstrained) -> Self {
|
226 160 | Self::Unconstrained(value)
|
227 161 | }
|
228 162 | }
|
229 - | impl std::convert::TryFrom<ListOfPatternStringUnconstrained>
|
230 - | for crate::constrained::list_of_pattern_string_constrained::ListOfPatternStringConstrained
|
163 + | impl std::convert::TryFrom<LengthListOfPatternStringUnconstrained>
|
164 + | for crate::model::LengthListOfPatternString
|
231 165 | {
|
232 - | type Error = crate::model::list_of_pattern_string_internal::ConstraintViolation;
|
166 + | type Error = crate::model::length_list_of_pattern_string_internal::ConstraintViolation;
|
233 167 | fn try_from(
|
234 - | value: ListOfPatternStringUnconstrained,
|
168 + | value: LengthListOfPatternStringUnconstrained,
|
235 169 | ) -> std::result::Result<Self, Self::Error> {
|
236 170 | let res: ::std::result::Result<
|
237 171 | ::std::vec::Vec<crate::model::PatternString>,
|
238 172 | (
|
239 173 | usize,
|
240 174 | crate::model::pattern_string_internal::ConstraintViolation,
|
241 175 | ),
|
242 176 | > = value
|
243 177 | .0
|
244 178 | .into_iter()
|
245 179 | .enumerate()
|
246 180 | .map(|(idx, inner)| {
|
247 181 | inner
|
248 182 | .try_into()
|
249 183 | .map_err(|inner_violation| (idx, inner_violation))
|
250 184 | })
|
251 185 | .collect();
|
252 186 | let inner =
|
253 187 | res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
|
254 - | Ok(Self(inner))
|
188 + | Self::try_from(inner)
|
255 189 | }
|
256 190 | }
|
257 191 | }
|
258 - | pub(crate) mod map_of_pattern_string_unconstrained {
|
192 + | pub(crate) mod length_set_of_pattern_string_unconstrained {
|
259 193 |
|
260 194 | #[derive(Debug, Clone)]
|
261 - | pub(crate) struct MapOfPatternStringUnconstrained(
|
262 - | pub(crate) std::collections::HashMap<::std::string::String, ::std::string::String>,
|
195 + | pub(crate) struct LengthSetOfPatternStringUnconstrained(
|
196 + | pub(crate) std::vec::Vec<::std::string::String>,
|
263 197 | );
|
264 198 |
|
265 - | impl From<MapOfPatternStringUnconstrained>
|
266 - | for crate::constrained::MaybeConstrained<
|
267 - | crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained,
|
268 - | >
|
199 + | impl From<LengthSetOfPatternStringUnconstrained>
|
200 + | for crate::constrained::MaybeConstrained<crate::model::LengthSetOfPatternString>
|
269 201 | {
|
270 - | fn from(value: MapOfPatternStringUnconstrained) -> Self {
|
202 + | fn from(value: LengthSetOfPatternStringUnconstrained) -> Self {
|
271 203 | Self::Unconstrained(value)
|
272 204 | }
|
273 205 | }
|
274 - | impl std::convert::TryFrom<MapOfPatternStringUnconstrained>
|
275 - | for crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained
|
206 + | impl std::convert::TryFrom<LengthSetOfPatternStringUnconstrained>
|
207 + | for crate::model::LengthSetOfPatternString
|
276 208 | {
|
277 - | type Error = crate::model::map_of_pattern_string_internal::ConstraintViolation;
|
209 + | type Error = crate::model::length_set_of_pattern_string_internal::ConstraintViolation;
|
278 210 | fn try_from(
|
279 - | value: MapOfPatternStringUnconstrained,
|
211 + | value: LengthSetOfPatternStringUnconstrained,
|
280 212 | ) -> std::result::Result<Self, Self::Error> {
|
281 213 | let res: ::std::result::Result<
|
282 - | ::std::collections::HashMap<
|
283 - | crate::model::PatternString,
|
284 - | crate::model::PatternString,
|
285 - | >,
|
286 - | Self::Error,
|
214 + | ::std::vec::Vec<crate::model::PatternString>,
|
215 + | (
|
216 + | usize,
|
217 + | crate::model::pattern_string_internal::ConstraintViolation,
|
218 + | ),
|
287 219 | > = value
|
288 220 | .0
|
289 221 | .into_iter()
|
290 - | .map(|(k, v)| {
|
291 - | let k: crate::model::PatternString = k.try_into().map_err(Self::Error::Key)?;
|
292 - |
|
293 - | match crate::model::PatternString::try_from(v) {
|
294 - | Ok(v) => Ok((k, v)),
|
295 - | Err(inner_constraint_violation) => {
|
296 - | Err(Self::Error::Value(k, inner_constraint_violation))
|
297 - | }
|
298 - | }
|
222 + | .enumerate()
|
223 + | .map(|(idx, inner)| {
|
224 + | inner
|
225 + | .try_into()
|
226 + | .map_err(|inner_violation| (idx, inner_violation))
|
299 227 | })
|
300 228 | .collect();
|
301 - | let hm = res?;
|
302 - | Ok(Self(hm))
|
303 - | }
|
304 - | }
|
305 - | }
|
306 - | pub(crate) mod map_of_list_of_enum_string_unconstrained {
|
307 - |
|
308 - | #[derive(Debug, Clone)]
|
309 - | pub(crate) struct MapOfListOfEnumStringUnconstrained(
|
310 - | pub(crate) std::collections::HashMap<
|
311 - | ::std::string::String,
|
312 - | crate::unconstrained::list_of_enum_string_unconstrained::ListOfEnumStringUnconstrained,
|
313 - | >,
|
314 - | );
|
315 - |
|
316 - | impl From<MapOfListOfEnumStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_enum_string_constrained::MapOfListOfEnumStringConstrained> {
|
317 - | fn from(value: MapOfListOfEnumStringUnconstrained) -> Self {
|
318 - | Self::Unconstrained(value)
|
319 - | }
|
320 - | }
|
321 - | impl std::convert::TryFrom<MapOfListOfEnumStringUnconstrained> for crate::constrained::map_of_list_of_enum_string_constrained::MapOfListOfEnumStringConstrained {
|
322 - | type Error = crate::model::map_of_list_of_enum_string_internal::ConstraintViolation;
|
323 - | fn try_from(value: MapOfListOfEnumStringUnconstrained) -> std::result::Result<Self, Self::Error> {
|
324 - | let res: ::std::result::Result<::std::collections::HashMap<crate::model::EnumString, crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained>, Self::Error> = value.0
|
325 - | .into_iter()
|
326 - | .map(|(k, v)| {
|
327 - | let k: crate::model::EnumString = k.try_into().map_err(Self::Error::Key)?;
|
328 - |
|
329 - | match crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained::try_from(v) {
|
330 - | Ok(v) => Ok((k, v)),
|
331 - | Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
|
332 - | }
|
333 - | })
|
334 - | .collect();
|
335 - | let hm = res?;
|
336 - | Ok(Self(hm))
|
229 + | let inner =
|
230 + | res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
|
231 + | Self::try_from(inner)
|
337 232 | }
|
338 233 | }
|
339 234 | }
|
340 - | pub(crate) mod list_of_enum_string_unconstrained {
|
235 + | pub(crate) mod set_of_range_byte_unconstrained {
|
341 236 |
|
342 237 | #[derive(Debug, Clone)]
|
343 - | pub(crate) struct ListOfEnumStringUnconstrained(
|
344 - | pub(crate) std::vec::Vec<::std::string::String>,
|
345 - | );
|
238 + | pub(crate) struct SetOfRangeByteUnconstrained(pub(crate) std::vec::Vec<i8>);
|
346 239 |
|
347 - | impl From<ListOfEnumStringUnconstrained>
|
348 - | for crate::constrained::MaybeConstrained<
|
349 - | crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained,
|
350 - | >
|
240 + | impl From<SetOfRangeByteUnconstrained>
|
241 + | for crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>
|
351 242 | {
|
352 - | fn from(value: ListOfEnumStringUnconstrained) -> Self {
|
243 + | fn from(value: SetOfRangeByteUnconstrained) -> Self {
|
353 244 | Self::Unconstrained(value)
|
354 245 | }
|
355 246 | }
|
356 - | impl std::convert::TryFrom<ListOfEnumStringUnconstrained>
|
357 - | for crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained
|
358 - | {
|
359 - | type Error = crate::model::list_of_enum_string_internal::ConstraintViolation;
|
360 - | fn try_from(
|
361 - | value: ListOfEnumStringUnconstrained,
|
362 - | ) -> std::result::Result<Self, Self::Error> {
|
247 + | impl std::convert::TryFrom<SetOfRangeByteUnconstrained> for crate::model::SetOfRangeByte {
|
248 + | type Error = crate::model::set_of_range_byte_internal::ConstraintViolation;
|
249 + | fn try_from(value: SetOfRangeByteUnconstrained) -> std::result::Result<Self, Self::Error> {
|
363 250 | let res: ::std::result::Result<
|
364 - | ::std::vec::Vec<crate::model::EnumString>,
|
251 + | ::std::vec::Vec<crate::model::RangeByte>,
|
365 252 | (
|
366 253 | usize,
|
367 - | crate::model::enum_string_internal::ConstraintViolation,
|
254 + | crate::model::range_byte_internal::ConstraintViolation,
|
368 255 | ),
|
369 256 | > = value
|
370 257 | .0
|
371 258 | .into_iter()
|
372 259 | .enumerate()
|
373 260 | .map(|(idx, inner)| {
|
374 261 | inner
|
375 262 | .try_into()
|
376 263 | .map_err(|inner_violation| (idx, inner_violation))
|
377 264 | })
|
378 265 | .collect();
|
379 266 | let inner =
|
380 267 | res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
|
381 - | Ok(Self(inner))
|
382 - | }
|
383 - | }
|
384 - | }
|
385 - | pub(crate) mod map_of_length_list_of_pattern_string_unconstrained {
|
386 - |
|
387 - | #[derive(Debug, Clone)]
|
388 - | pub(crate) struct MapOfLengthListOfPatternStringUnconstrained(pub(crate) std::collections::HashMap<::std::string::String, crate::unconstrained::length_list_of_pattern_string_unconstrained::LengthListOfPatternStringUnconstrained>);
|
389 - |
|
390 - | impl From<MapOfLengthListOfPatternStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_length_list_of_pattern_string_constrained::MapOfLengthListOfPatternStringConstrained> {
|
391 - | fn from(value: MapOfLengthListOfPatternStringUnconstrained) -> Self {
|
392 - | Self::Unconstrained(value)
|
393 - | }
|
394 - | }
|
395 - | impl std::convert::TryFrom<MapOfLengthListOfPatternStringUnconstrained> for crate::constrained::map_of_length_list_of_pattern_string_constrained::MapOfLengthListOfPatternStringConstrained {
|
396 - | type Error = crate::model::map_of_length_list_of_pattern_string_internal::ConstraintViolation;
|
397 - | fn try_from(value: MapOfLengthListOfPatternStringUnconstrained) -> std::result::Result<Self, Self::Error> {
|
398 - | let res: ::std::result::Result<::std::collections::HashMap<crate::model::PatternString, crate::model::LengthListOfPatternString>, Self::Error> = value.0
|
399 - | .into_iter()
|
400 - | .map(|(k, v)| {
|
401 - | let k: crate::model::PatternString = k.try_into().map_err(Self::Error::Key)?;
|
402 - |
|
403 - | match crate::model::LengthListOfPatternString::try_from(v) {
|
404 - | Ok(v) => Ok((k, v)),
|
405 - | Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
|
406 - | }
|
407 - | })
|
408 - | .collect();
|
409 - | let hm = res?;
|
410 - | Ok(Self(hm))
|
268 + | Self::try_from(inner)
|
411 269 | }
|
412 270 | }
|
413 271 | }
|
414 - | pub(crate) mod length_list_of_pattern_string_unconstrained {
|
272 + | pub(crate) mod set_of_range_short_unconstrained {
|
415 273 |
|
416 274 | #[derive(Debug, Clone)]
|
417 - | pub(crate) struct LengthListOfPatternStringUnconstrained(
|
418 - | pub(crate) std::vec::Vec<::std::string::String>,
|
419 - | );
|
275 + | pub(crate) struct SetOfRangeShortUnconstrained(pub(crate) std::vec::Vec<i16>);
|
420 276 |
|
421 - | impl From<LengthListOfPatternStringUnconstrained>
|
422 - | for crate::constrained::MaybeConstrained<crate::model::LengthListOfPatternString>
|
277 + | impl From<SetOfRangeShortUnconstrained>
|
278 + | for crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>
|
423 279 | {
|
424 - | fn from(value: LengthListOfPatternStringUnconstrained) -> Self {
|
280 + | fn from(value: SetOfRangeShortUnconstrained) -> Self {
|
425 281 | Self::Unconstrained(value)
|
426 282 | }
|
427 283 | }
|
428 - | impl std::convert::TryFrom<LengthListOfPatternStringUnconstrained>
|
429 - | for crate::model::LengthListOfPatternString
|
430 - | {
|
431 - | type Error = crate::model::length_list_of_pattern_string_internal::ConstraintViolation;
|
432 - | fn try_from(
|
433 - | value: LengthListOfPatternStringUnconstrained,
|
434 - | ) -> std::result::Result<Self, Self::Error> {
|
284 + | impl std::convert::TryFrom<SetOfRangeShortUnconstrained> for crate::model::SetOfRangeShort {
|
285 + | type Error = crate::model::set_of_range_short_internal::ConstraintViolation;
|
286 + | fn try_from(value: SetOfRangeShortUnconstrained) -> std::result::Result<Self, Self::Error> {
|
435 287 | let res: ::std::result::Result<
|
436 - | ::std::vec::Vec<crate::model::PatternString>,
|
288 + | ::std::vec::Vec<crate::model::RangeShort>,
|
437 289 | (
|
438 290 | usize,
|
439 - | crate::model::pattern_string_internal::ConstraintViolation,
|
291 + | crate::model::range_short_internal::ConstraintViolation,
|
440 292 | ),
|
441 293 | > = value
|
442 294 | .0
|
443 295 | .into_iter()
|
444 296 | .enumerate()
|
445 297 | .map(|(idx, inner)| {
|
446 298 | inner
|
447 299 | .try_into()
|
448 300 | .map_err(|inner_violation| (idx, inner_violation))
|
449 301 | })
|
450 302 | .collect();
|
451 303 | let inner =
|
452 304 | res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
|
453 305 | Self::try_from(inner)
|
454 306 | }
|
455 307 | }
|
456 308 | }
|
457 - | pub(crate) mod map_of_set_of_length_string_unconstrained {
|
458 - |
|
459 - | #[derive(Debug, Clone)]
|
460 - | pub(crate) struct MapOfSetOfLengthStringUnconstrained(pub(crate) std::collections::HashMap<::std::string::String, crate::unconstrained::set_of_length_string_unconstrained::SetOfLengthStringUnconstrained>);
|
461 - |
|
462 - | impl From<MapOfSetOfLengthStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_set_of_length_string_constrained::MapOfSetOfLengthStringConstrained> {
|
463 - | fn from(value: MapOfSetOfLengthStringUnconstrained) -> Self {
|
464 - | Self::Unconstrained(value)
|
465 - | }
|
466 - | }
|
467 - | impl std::convert::TryFrom<MapOfSetOfLengthStringUnconstrained> for crate::constrained::map_of_set_of_length_string_constrained::MapOfSetOfLengthStringConstrained {
|
468 - | type Error = crate::model::map_of_set_of_length_string_internal::ConstraintViolation;
|
469 - | fn try_from(value: MapOfSetOfLengthStringUnconstrained) -> std::result::Result<Self, Self::Error> {
|
470 - | let res: ::std::result::Result<::std::collections::HashMap<crate::model::LengthString, crate::model::SetOfLengthString>, Self::Error> = value.0
|
471 - | .into_iter()
|
472 - | .map(|(k, v)| {
|
473 - | let k: crate::model::LengthString = k.try_into().map_err(Self::Error::Key)?;
|
474 - |
|
475 - | match crate::model::SetOfLengthString::try_from(v) {
|
476 - | Ok(v) => Ok((k, v)),
|
477 - | Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
|
478 - | }
|
479 - | })
|
480 - | .collect();
|
481 - | let hm = res?;
|
482 - | Ok(Self(hm))
|
483 - | }
|
484 - | }
|
485 - | }
|
486 - | pub(crate) mod set_of_length_string_unconstrained {
|
309 + | pub(crate) mod set_of_range_integer_unconstrained {
|
487 310 |
|
488 311 | #[derive(Debug, Clone)]
|
489 - | pub(crate) struct SetOfLengthStringUnconstrained(
|
490 - | pub(crate) std::vec::Vec<::std::string::String>,
|
491 - | );
|
312 + | pub(crate) struct SetOfRangeIntegerUnconstrained(pub(crate) std::vec::Vec<i32>);
|
492 313 |
|
493 - | impl From<SetOfLengthStringUnconstrained>
|
494 - | for crate::constrained::MaybeConstrained<crate::model::SetOfLengthString>
|
314 + | impl From<SetOfRangeIntegerUnconstrained>
|
315 + | for crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>
|
495 316 | {
|
496 - | fn from(value: SetOfLengthStringUnconstrained) -> Self {
|
317 + | fn from(value: SetOfRangeIntegerUnconstrained) -> Self {
|
497 318 | Self::Unconstrained(value)
|
498 319 | }
|
499 320 | }
|
500 - | impl std::convert::TryFrom<SetOfLengthStringUnconstrained> for crate::model::SetOfLengthString {
|
501 - | type Error = crate::model::set_of_length_string_internal::ConstraintViolation;
|
321 + | impl std::convert::TryFrom<SetOfRangeIntegerUnconstrained> for crate::model::SetOfRangeInteger {
|
322 + | type Error = crate::model::set_of_range_integer_internal::ConstraintViolation;
|
502 323 | fn try_from(
|
503 - | value: SetOfLengthStringUnconstrained,
|
324 + | value: SetOfRangeIntegerUnconstrained,
|
504 325 | ) -> std::result::Result<Self, Self::Error> {
|
505 326 | let res: ::std::result::Result<
|
506 - | ::std::vec::Vec<crate::model::LengthString>,
|
327 + | ::std::vec::Vec<crate::model::RangeInteger>,
|
507 328 | (
|
508 329 | usize,
|
509 - | crate::model::length_string_internal::ConstraintViolation,
|
330 + | crate::model::range_integer_internal::ConstraintViolation,
|
510 331 | ),
|
511 332 | > = value
|
512 333 | .0
|
513 334 | .into_iter()
|
514 335 | .enumerate()
|
515 336 | .map(|(idx, inner)| {
|
516 337 | inner
|
517 338 | .try_into()
|
518 339 | .map_err(|inner_violation| (idx, inner_violation))
|
519 340 | })
|
520 341 | .collect();
|
521 342 | let inner =
|
522 343 | res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
|
523 344 | Self::try_from(inner)
|
524 345 | }
|
525 346 | }
|
526 347 | }
|
527 - | pub(crate) mod map_of_list_of_length_string_unconstrained {
|
528 - |
|
529 - | #[derive(Debug, Clone)]
|
530 - | pub(crate) struct MapOfListOfLengthStringUnconstrained(pub(crate) std::collections::HashMap<::std::string::String, crate::unconstrained::list_of_length_string_unconstrained::ListOfLengthStringUnconstrained>);
|
531 - |
|
532 - | impl From<MapOfListOfLengthStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_string_constrained::MapOfListOfLengthStringConstrained> {
|
533 - | fn from(value: MapOfListOfLengthStringUnconstrained) -> Self {
|
534 - | Self::Unconstrained(value)
|
535 - | }
|
536 - | }
|
537 - | impl std::convert::TryFrom<MapOfListOfLengthStringUnconstrained> for crate::constrained::map_of_list_of_length_string_constrained::MapOfListOfLengthStringConstrained {
|
538 - | type Error = crate::model::map_of_list_of_length_string_internal::ConstraintViolation;
|
539 - | fn try_from(value: MapOfListOfLengthStringUnconstrained) -> std::result::Result<Self, Self::Error> {
|
540 - | let res: ::std::result::Result<::std::collections::HashMap<crate::model::LengthString, crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>, Self::Error> = value.0
|
541 - | .into_iter()
|
542 - | .map(|(k, v)| {
|
543 - | let k: crate::model::LengthString = k.try_into().map_err(Self::Error::Key)?;
|
544 - |
|
545 - | match crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained::try_from(v) {
|
546 - | Ok(v) => Ok((k, v)),
|
547 - | Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
|
548 - | }
|
549 - | })
|
550 - | .collect();
|
551 - | let hm = res?;
|
552 - | Ok(Self(hm))
|
553 - | }
|
554 - | }
|
555 - | }
|
556 - | pub(crate) mod list_of_length_string_unconstrained {
|
348 + | pub(crate) mod set_of_range_long_unconstrained {
|
557 349 |
|
558 350 | #[derive(Debug, Clone)]
|
559 - | pub(crate) struct ListOfLengthStringUnconstrained(
|
560 - | pub(crate) std::vec::Vec<::std::string::String>,
|
561 - | );
|
351 + | pub(crate) struct SetOfRangeLongUnconstrained(pub(crate) std::vec::Vec<i64>);
|
562 352 |
|
563 - | impl From<ListOfLengthStringUnconstrained>
|
564 - | for crate::constrained::MaybeConstrained<
|
565 - | crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained,
|
566 - | >
|
353 + | impl From<SetOfRangeLongUnconstrained>
|
354 + | for crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>
|
567 355 | {
|
568 - | fn from(value: ListOfLengthStringUnconstrained) -> Self {
|
356 + | fn from(value: SetOfRangeLongUnconstrained) -> Self {
|
569 357 | Self::Unconstrained(value)
|
570 358 | }
|
571 359 | }
|
572 - | impl std::convert::TryFrom<ListOfLengthStringUnconstrained>
|
573 - | for crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained
|
574 - | {
|
575 - | type Error = crate::model::list_of_length_string_internal::ConstraintViolation;
|
576 - | fn try_from(
|
577 - | value: ListOfLengthStringUnconstrained,
|
578 - | ) -> std::result::Result<Self, Self::Error> {
|
360 + | impl std::convert::TryFrom<SetOfRangeLongUnconstrained> for crate::model::SetOfRangeLong {
|
361 + | type Error = crate::model::set_of_range_long_internal::ConstraintViolation;
|
362 + | fn try_from(value: SetOfRangeLongUnconstrained) -> std::result::Result<Self, Self::Error> {
|
579 363 | let res: ::std::result::Result<
|
580 - | ::std::vec::Vec<crate::model::LengthString>,
|
364 + | ::std::vec::Vec<crate::model::RangeLong>,
|
581 365 | (
|
582 366 | usize,
|
583 - | crate::model::length_string_internal::ConstraintViolation,
|
367 + | crate::model::range_long_internal::ConstraintViolation,
|
584 368 | ),
|
585 369 | > = value
|
586 370 | .0
|
587 371 | .into_iter()
|
588 372 | .enumerate()
|
589 373 | .map(|(idx, inner)| {
|
590 374 | inner
|
591 375 | .try_into()
|
592 376 | .map_err(|inner_violation| (idx, inner_violation))
|
593 377 | })
|
594 378 | .collect();
|
595 379 | let inner =
|
596 380 | res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
|
597 - | Ok(Self(inner))
|
381 + | Self::try_from(inner)
|
598 382 | }
|
599 383 | }
|
600 384 | }
|
601 - | pub(crate) mod map_of_length_string_unconstrained {
|
385 + | pub(crate) mod list_of_range_byte_unconstrained {
|
602 386 |
|
603 387 | #[derive(Debug, Clone)]
|
604 - | pub(crate) struct MapOfLengthStringUnconstrained(
|
605 - | pub(crate) std::collections::HashMap<::std::string::String, ::std::string::String>,
|
606 - | );
|
388 + | pub(crate) struct ListOfRangeByteUnconstrained(pub(crate) std::vec::Vec<i8>);
|
607 389 |
|
608 - | impl From<MapOfLengthStringUnconstrained>
|
390 + | impl From<ListOfRangeByteUnconstrained>
|
609 391 | for crate::constrained::MaybeConstrained<
|
610 - | crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained,
|
392 + | crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained,
|
611 393 | >
|
612 394 | {
|
613 - | fn from(value: MapOfLengthStringUnconstrained) -> Self {
|
395 + | fn from(value: ListOfRangeByteUnconstrained) -> Self {
|
614 396 | Self::Unconstrained(value)
|
615 397 | }
|
616 398 | }
|
617 - | impl std::convert::TryFrom<MapOfLengthStringUnconstrained>
|
618 - | for crate::constrained::map_of_length_string_constrained::MapOfLengthStringConstrained
|
399 + | impl std::convert::TryFrom<ListOfRangeByteUnconstrained>
|
400 + | for crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained
|
619 401 | {
|
620 - | type Error = crate::model::map_of_length_string_internal::ConstraintViolation;
|
621 - | fn try_from(
|
622 - | value: MapOfLengthStringUnconstrained,
|
623 - | ) -> std::result::Result<Self, Self::Error> {
|
402 + | type Error = crate::model::list_of_range_byte_internal::ConstraintViolation;
|
403 + | fn try_from(value: ListOfRangeByteUnconstrained) -> std::result::Result<Self, Self::Error> {
|
624 404 | let res: ::std::result::Result<
|
625 - | ::std::collections::HashMap<crate::model::LengthString, crate::model::LengthString>,
|
626 - | Self::Error,
|
405 + | ::std::vec::Vec<crate::model::RangeByte>,
|
406 + | (
|
407 + | usize,
|
408 + | crate::model::range_byte_internal::ConstraintViolation,
|
409 + | ),
|
627 410 | > = value
|
628 411 | .0
|
629 412 | .into_iter()
|
630 - | .map(|(k, v)| {
|
631 - | let k: crate::model::LengthString = k.try_into().map_err(Self::Error::Key)?;
|
632 - |
|
633 - | match crate::model::LengthString::try_from(v) {
|
634 - | Ok(v) => Ok((k, v)),
|
635 - | Err(inner_constraint_violation) => {
|
636 - | Err(Self::Error::Value(k, inner_constraint_violation))
|
637 - | }
|
638 - | }
|
413 + | .enumerate()
|
414 + | .map(|(idx, inner)| {
|
415 + | inner
|
416 + | .try_into()
|
417 + | .map_err(|inner_violation| (idx, inner_violation))
|
639 418 | })
|
640 419 | .collect();
|
641 - | let hm = res?;
|
642 - | Ok(Self(hm))
|
420 + | let inner =
|
421 + | res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
|
422 + | Ok(Self(inner))
|
643 423 | }
|
644 424 | }
|
645 425 | }
|
646 - | pub(crate) mod recursive_list_unconstrained {
|
426 + | pub(crate) mod list_of_range_short_unconstrained {
|
647 427 |
|
648 428 | #[derive(Debug, Clone)]
|
649 - | pub(crate) struct RecursiveListUnconstrained(
|
650 - | pub(crate)
|
651 - | std::vec::Vec<crate::model::recursive_shapes_input_output_nested1_internal::Builder>,
|
652 - | );
|
429 + | pub(crate) struct ListOfRangeShortUnconstrained(pub(crate) std::vec::Vec<i16>);
|
653 430 |
|
654 - | impl From<RecursiveListUnconstrained>
|
431 + | impl From<ListOfRangeShortUnconstrained>
|
655 432 | for crate::constrained::MaybeConstrained<
|
656 - | crate::constrained::recursive_list_constrained::RecursiveListConstrained,
|
433 + | crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained,
|
657 434 | >
|
658 435 | {
|
659 - | fn from(value: RecursiveListUnconstrained) -> Self {
|
436 + | fn from(value: ListOfRangeShortUnconstrained) -> Self {
|
660 437 | Self::Unconstrained(value)
|
661 438 | }
|
662 439 | }
|
663 - | impl std::convert::TryFrom<RecursiveListUnconstrained>
|
664 - | for crate::constrained::recursive_list_constrained::RecursiveListConstrained
|
440 + | impl std::convert::TryFrom<ListOfRangeShortUnconstrained>
|
441 + | for crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained
|
665 442 | {
|
666 - | type Error = crate::model::recursive_list_internal::ConstraintViolation;
|
667 - | fn try_from(value: RecursiveListUnconstrained) -> std::result::Result<Self, Self::Error> {
|
668 - | let res: ::std::result::Result<::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>, (usize, crate::model::recursive_shapes_input_output_nested1_internal::ConstraintViolation) > = value
|
669 - | .0
|
670 - | .into_iter()
|
671 - | .enumerate()
|
672 - | .map(|(idx, inner)| {
|
673 - | inner.try_into().map_err(|inner_violation| (idx, inner_violation))
|
674 - | })
|
675 - | .collect();
|
443 + | type Error = crate::model::list_of_range_short_internal::ConstraintViolation;
|
444 + | fn try_from(
|
445 + | value: ListOfRangeShortUnconstrained,
|
446 + | ) -> std::result::Result<Self, Self::Error> {
|
447 + | let res: ::std::result::Result<
|
448 + | ::std::vec::Vec<crate::model::RangeShort>,
|
449 + | (
|
450 + | usize,
|
451 + | crate::model::range_short_internal::ConstraintViolation,
|
452 + | ),
|
453 + | > = value
|
454 + | .0
|
455 + | .into_iter()
|
456 + | .enumerate()
|
457 + | .map(|(idx, inner)| {
|
458 + | inner
|
459 + | .try_into()
|
460 + | .map_err(|inner_violation| (idx, inner_violation))
|
461 + | })
|
462 + | .collect();
|
676 463 | let inner =
|
677 464 | res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
|
678 465 | Ok(Self(inner))
|
679 466 | }
|
680 467 | }
|
681 468 | }
|
682 - | pub(crate) mod length_set_of_pattern_string_unconstrained {
|
469 + | pub(crate) mod list_of_range_integer_unconstrained {
|
683 470 |
|
684 471 | #[derive(Debug, Clone)]
|
685 - | pub(crate) struct LengthSetOfPatternStringUnconstrained(
|
686 - | pub(crate) std::vec::Vec<::std::string::String>,
|
687 - | );
|
472 + | pub(crate) struct ListOfRangeIntegerUnconstrained(pub(crate) std::vec::Vec<i32>);
|
688 473 |
|
689 - | impl From<LengthSetOfPatternStringUnconstrained>
|
690 - | for crate::constrained::MaybeConstrained<crate::model::LengthSetOfPatternString>
|
474 + | impl From<ListOfRangeIntegerUnconstrained>
|
475 + | for crate::constrained::MaybeConstrained<
|
476 + | crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained,
|
477 + | >
|
691 478 | {
|
692 - | fn from(value: LengthSetOfPatternStringUnconstrained) -> Self {
|
479 + | fn from(value: ListOfRangeIntegerUnconstrained) -> Self {
|
693 480 | Self::Unconstrained(value)
|
694 481 | }
|
695 482 | }
|
696 - | impl std::convert::TryFrom<LengthSetOfPatternStringUnconstrained>
|
697 - | for crate::model::LengthSetOfPatternString
|
483 + | impl std::convert::TryFrom<ListOfRangeIntegerUnconstrained>
|
484 + | for crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained
|
698 485 | {
|
699 - | type Error = crate::model::length_set_of_pattern_string_internal::ConstraintViolation;
|
486 + | type Error = crate::model::list_of_range_integer_internal::ConstraintViolation;
|
700 487 | fn try_from(
|
701 - | value: LengthSetOfPatternStringUnconstrained,
|
488 + | value: ListOfRangeIntegerUnconstrained,
|
702 489 | ) -> std::result::Result<Self, Self::Error> {
|
703 490 | let res: ::std::result::Result<
|
704 - | ::std::vec::Vec<crate::model::PatternString>,
|
491 + | ::std::vec::Vec<crate::model::RangeInteger>,
|
705 492 | (
|
706 493 | usize,
|
707 - | crate::model::pattern_string_internal::ConstraintViolation,
|
494 + | crate::model::range_integer_internal::ConstraintViolation,
|
708 495 | ),
|
709 496 | > = value
|
710 497 | .0
|
711 498 | .into_iter()
|
712 499 | .enumerate()
|
713 500 | .map(|(idx, inner)| {
|
714 501 | inner
|
715 502 | .try_into()
|
716 503 | .map_err(|inner_violation| (idx, inner_violation))
|
717 504 | })
|
718 505 | .collect();
|
719 506 | let inner =
|
720 507 | res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
|
721 - | Self::try_from(inner)
|
508 + | Ok(Self(inner))
|
722 509 | }
|
723 510 | }
|
724 511 | }
|
725 - | pub(crate) mod set_of_length_pattern_string_unconstrained {
|
512 + | pub(crate) mod list_of_range_long_unconstrained {
|
726 513 |
|
727 514 | #[derive(Debug, Clone)]
|
728 - | pub(crate) struct SetOfLengthPatternStringUnconstrained(
|
729 - | pub(crate) std::vec::Vec<::std::string::String>,
|
730 - | );
|
515 + | pub(crate) struct ListOfRangeLongUnconstrained(pub(crate) std::vec::Vec<i64>);
|
731 516 |
|
732 - | impl From<SetOfLengthPatternStringUnconstrained>
|
733 - | for crate::constrained::MaybeConstrained<crate::model::SetOfLengthPatternString>
|
517 + | impl From<ListOfRangeLongUnconstrained>
|
518 + | for crate::constrained::MaybeConstrained<
|
519 + | crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained,
|
520 + | >
|
734 521 | {
|
735 - | fn from(value: SetOfLengthPatternStringUnconstrained) -> Self {
|
522 + | fn from(value: ListOfRangeLongUnconstrained) -> Self {
|
736 523 | Self::Unconstrained(value)
|
737 524 | }
|
738 525 | }
|
739 - | impl std::convert::TryFrom<SetOfLengthPatternStringUnconstrained>
|
740 - | for crate::model::SetOfLengthPatternString
|
526 + | impl std::convert::TryFrom<ListOfRangeLongUnconstrained>
|
527 + | for crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained
|
741 528 | {
|
742 - | type Error = crate::model::set_of_length_pattern_string_internal::ConstraintViolation;
|
743 - | fn try_from(
|
744 - | value: SetOfLengthPatternStringUnconstrained,
|
745 - | ) -> std::result::Result<Self, Self::Error> {
|
529 + | type Error = crate::model::list_of_range_long_internal::ConstraintViolation;
|
530 + | fn try_from(value: ListOfRangeLongUnconstrained) -> std::result::Result<Self, Self::Error> {
|
746 531 | let res: ::std::result::Result<
|
747 - | ::std::vec::Vec<crate::model::LengthPatternString>,
|
532 + | ::std::vec::Vec<crate::model::RangeLong>,
|
748 533 | (
|
749 534 | usize,
|
750 - | crate::model::length_pattern_string_internal::ConstraintViolation,
|
535 + | crate::model::range_long_internal::ConstraintViolation,
|
751 536 | ),
|
752 537 | > = value
|
753 538 | .0
|
754 539 | .into_iter()
|
755 540 | .enumerate()
|
756 541 | .map(|(idx, inner)| {
|
757 542 | inner
|
758 543 | .try_into()
|
759 544 | .map_err(|inner_violation| (idx, inner_violation))
|
760 545 | })
|
761 546 | .collect();
|
762 547 | let inner =
|
763 548 | res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
|
764 - | Self::try_from(inner)
|
549 + | Ok(Self(inner))
|
765 550 | }
|
766 551 | }
|
767 552 | }
|
768 - | pub(crate) mod set_of_pattern_string_unconstrained {
|
553 + | pub(crate) mod list_of_enum_string_unconstrained {
|
769 554 |
|
770 555 | #[derive(Debug, Clone)]
|
771 - | pub(crate) struct SetOfPatternStringUnconstrained(
|
556 + | pub(crate) struct ListOfEnumStringUnconstrained(
|
772 557 | pub(crate) std::vec::Vec<::std::string::String>,
|
773 558 | );
|
774 559 |
|
775 - | impl From<SetOfPatternStringUnconstrained>
|
776 - | for crate::constrained::MaybeConstrained<crate::model::SetOfPatternString>
|
560 + | impl From<ListOfEnumStringUnconstrained>
|
561 + | for crate::constrained::MaybeConstrained<
|
562 + | crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained,
|
563 + | >
|
777 564 | {
|
778 - | fn from(value: SetOfPatternStringUnconstrained) -> Self {
|
565 + | fn from(value: ListOfEnumStringUnconstrained) -> Self {
|
779 566 | Self::Unconstrained(value)
|
780 567 | }
|
781 568 | }
|
782 - | impl std::convert::TryFrom<SetOfPatternStringUnconstrained> for crate::model::SetOfPatternString {
|
783 - | type Error = crate::model::set_of_pattern_string_internal::ConstraintViolation;
|
569 + | impl std::convert::TryFrom<ListOfEnumStringUnconstrained>
|
570 + | for crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained
|
571 + | {
|
572 + | type Error = crate::model::list_of_enum_string_internal::ConstraintViolation;
|
784 573 | fn try_from(
|
785 - | value: SetOfPatternStringUnconstrained,
|
574 + | value: ListOfEnumStringUnconstrained,
|
786 575 | ) -> std::result::Result<Self, Self::Error> {
|
787 576 | let res: ::std::result::Result<
|
788 - | ::std::vec::Vec<crate::model::PatternString>,
|
577 + | ::std::vec::Vec<crate::model::EnumString>,
|
789 578 | (
|
790 579 | usize,
|
791 - | crate::model::pattern_string_internal::ConstraintViolation,
|
580 + | crate::model::enum_string_internal::ConstraintViolation,
|
792 581 | ),
|
793 582 | > = value
|
794 583 | .0
|
795 584 | .into_iter()
|
796 585 | .enumerate()
|
797 586 | .map(|(idx, inner)| {
|
798 587 | inner
|
799 588 | .try_into()
|
800 589 | .map_err(|inner_violation| (idx, inner_violation))
|
801 590 | })
|
802 591 | .collect();
|
803 592 | let inner =
|
804 593 | res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
|
805 - | Self::try_from(inner)
|
594 + | Ok(Self(inner))
|
806 595 | }
|
807 596 | }
|
808 597 | }
|
809 - | pub(crate) mod map_of_range_byte_unconstrained {
|
598 + | pub(crate) mod recursive_list_unconstrained {
|
810 599 |
|
811 600 | #[derive(Debug, Clone)]
|
812 - | pub(crate) struct MapOfRangeByteUnconstrained(
|
813 - | pub(crate) std::collections::HashMap<::std::string::String, i8>,
|
601 + | pub(crate) struct RecursiveListUnconstrained(
|
602 + | pub(crate)
|
603 + | std::vec::Vec<crate::model::recursive_shapes_input_output_nested1_internal::Builder>,
|
814 604 | );
|
815 605 |
|
816 - | impl From<MapOfRangeByteUnconstrained>
|
606 + | impl From<RecursiveListUnconstrained>
|
817 607 | for crate::constrained::MaybeConstrained<
|
818 - | crate::constrained::map_of_range_byte_constrained::MapOfRangeByteConstrained,
|
608 + | crate::constrained::recursive_list_constrained::RecursiveListConstrained,
|
819 609 | >
|
820 610 | {
|
821 - | fn from(value: MapOfRangeByteUnconstrained) -> Self {
|
611 + | fn from(value: RecursiveListUnconstrained) -> Self {
|
822 612 | Self::Unconstrained(value)
|
823 613 | }
|
824 614 | }
|
825 - | impl std::convert::TryFrom<MapOfRangeByteUnconstrained>
|
826 - | for crate::constrained::map_of_range_byte_constrained::MapOfRangeByteConstrained
|
615 + | impl std::convert::TryFrom<RecursiveListUnconstrained>
|
616 + | for crate::constrained::recursive_list_constrained::RecursiveListConstrained
|
827 617 | {
|
828 - | type Error = crate::model::map_of_range_byte_internal::ConstraintViolation;
|
829 - | fn try_from(value: MapOfRangeByteUnconstrained) -> std::result::Result<Self, Self::Error> {
|
618 + | type Error = crate::model::recursive_list_internal::ConstraintViolation;
|
619 + | fn try_from(value: RecursiveListUnconstrained) -> std::result::Result<Self, Self::Error> {
|
620 + | let res: ::std::result::Result<::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>, (usize, crate::model::recursive_shapes_input_output_nested1_internal::ConstraintViolation) > = value
|
621 + | .0
|
622 + | .into_iter()
|
623 + | .enumerate()
|
624 + | .map(|(idx, inner)| {
|
625 + | inner.try_into().map_err(|inner_violation| (idx, inner_violation))
|
626 + | })
|
627 + | .collect();
|
628 + | let inner =
|
629 + | res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
|
630 + | Ok(Self(inner))
|
631 + | }
|
632 + | }
|
633 + | }
|
634 + | pub(crate) mod con_b_map_unconstrained {
|
635 + |
|
636 + | #[derive(Debug, Clone)]
|
637 + | pub(crate) struct ConBMapUnconstrained(
|
638 + | pub(crate) std::collections::HashMap<::std::string::String, ::std::string::String>,
|
639 + | );
|
640 + |
|
641 + | impl From<ConBMapUnconstrained> for crate::constrained::MaybeConstrained<crate::model::ConBMap> {
|
642 + | fn from(value: ConBMapUnconstrained) -> Self {
|
643 + | Self::Unconstrained(value)
|
644 + | }
|
645 + | }
|
646 + | impl std::convert::TryFrom<ConBMapUnconstrained> for crate::model::ConBMap {
|
647 + | type Error = crate::model::con_b_map_internal::ConstraintViolation;
|
648 + | fn try_from(value: ConBMapUnconstrained) -> std::result::Result<Self, Self::Error> {
|
830 649 | let res: ::std::result::Result<
|
831 - | ::std::collections::HashMap<::std::string::String, crate::model::RangeByte>,
|
650 + | ::std::collections::HashMap<::std::string::String, crate::model::LengthString>,
|
832 651 | Self::Error,
|
833 652 | > = value
|
834 653 | .0
|
835 654 | .into_iter()
|
836 - | .map(|(k, v)| match crate::model::RangeByte::try_from(v) {
|
655 + | .map(|(k, v)| match crate::model::LengthString::try_from(v) {
|
837 656 | Ok(v) => Ok((k, v)),
|
838 657 | Err(inner_constraint_violation) => {
|
839 658 | Err(Self::Error::Value(k, inner_constraint_violation))
|
840 659 | }
|
841 660 | })
|
842 661 | .collect();
|
843 662 | let hm = res?;
|
844 - | Ok(Self(hm))
|
663 + | Self::try_from(hm)
|
845 664 | }
|
846 665 | }
|
847 666 | }
|
848 - | pub(crate) mod set_of_range_byte_unconstrained {
|
667 + | pub(crate) mod map_of_list_of_length_string_unconstrained {
|
849 668 |
|
850 669 | #[derive(Debug, Clone)]
|
851 - | pub(crate) struct SetOfRangeByteUnconstrained(pub(crate) std::vec::Vec<i8>);
|
670 + | pub(crate) struct MapOfListOfLengthStringUnconstrained(pub(crate) std::collections::HashMap<::std::string::String, crate::unconstrained::list_of_length_string_unconstrained::ListOfLengthStringUnconstrained>);
|
852 671 |
|
853 - | impl From<SetOfRangeByteUnconstrained>
|
854 - | for crate::constrained::MaybeConstrained<crate::model::SetOfRangeByte>
|
855 - | {
|
856 - | fn from(value: SetOfRangeByteUnconstrained) -> Self {
|
857 - | Self::Unconstrained(value)
|
858 - | }
|
859 - | }
|
860 - | impl std::convert::TryFrom<SetOfRangeByteUnconstrained> for crate::model::SetOfRangeByte {
|
861 - | type Error = crate::model::set_of_range_byte_internal::ConstraintViolation;
|
862 - | fn try_from(value: SetOfRangeByteUnconstrained) -> std::result::Result<Self, Self::Error> {
|
863 - | let res: ::std::result::Result<
|
864 - | ::std::vec::Vec<crate::model::RangeByte>,
|
865 - | (
|
866 - | usize,
|
867 - | crate::model::range_byte_internal::ConstraintViolation,
|
868 - | ),
|
672 + | impl From<MapOfListOfLengthStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_string_constrained::MapOfListOfLengthStringConstrained> {
|
673 + | fn from(value: MapOfListOfLengthStringUnconstrained) -> Self {
|
674 + | Self::Unconstrained(value)
|
675 + | }
|
676 + | }
|
677 + | impl std::convert::TryFrom<MapOfListOfLengthStringUnconstrained> for crate::constrained::map_of_list_of_length_string_constrained::MapOfListOfLengthStringConstrained {
|
678 + | type Error = crate::model::map_of_list_of_length_string_internal::ConstraintViolation;
|
679 + | fn try_from(value: MapOfListOfLengthStringUnconstrained) -> std::result::Result<Self, Self::Error> {
|
680 + | let res: ::std::result::Result<::std::collections::HashMap<crate::model::LengthString, crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained>, Self::Error> = value.0
|
681 + | .into_iter()
|
682 + | .map(|(k, v)| {
|
683 + | let k: crate::model::LengthString = k.try_into().map_err(Self::Error::Key)?;
|
684 + |
|
685 + | match crate::constrained::list_of_length_string_constrained::ListOfLengthStringConstrained::try_from(v) {
|
686 + | Ok(v) => Ok((k, v)),
|
687 + | Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
|
688 + | }
|
689 + | })
|
690 + | .collect();
|
691 + | let hm = res?;
|
692 + | Ok(Self(hm))
|
693 + | }
|
694 + | }
|
695 + | }
|
696 + | pub(crate) mod map_of_set_of_length_string_unconstrained {
|
697 + |
|
698 + | #[derive(Debug, Clone)]
|
699 + | pub(crate) struct MapOfSetOfLengthStringUnconstrained(pub(crate) std::collections::HashMap<::std::string::String, crate::unconstrained::set_of_length_string_unconstrained::SetOfLengthStringUnconstrained>);
|
700 + |
|
701 + | impl From<MapOfSetOfLengthStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_set_of_length_string_constrained::MapOfSetOfLengthStringConstrained> {
|
702 + | fn from(value: MapOfSetOfLengthStringUnconstrained) -> Self {
|
703 + | Self::Unconstrained(value)
|
704 + | }
|
705 + | }
|
706 + | impl std::convert::TryFrom<MapOfSetOfLengthStringUnconstrained> for crate::constrained::map_of_set_of_length_string_constrained::MapOfSetOfLengthStringConstrained {
|
707 + | type Error = crate::model::map_of_set_of_length_string_internal::ConstraintViolation;
|
708 + | fn try_from(value: MapOfSetOfLengthStringUnconstrained) -> std::result::Result<Self, Self::Error> {
|
709 + | let res: ::std::result::Result<::std::collections::HashMap<crate::model::LengthString, crate::model::SetOfLengthString>, Self::Error> = value.0
|
710 + | .into_iter()
|
711 + | .map(|(k, v)| {
|
712 + | let k: crate::model::LengthString = k.try_into().map_err(Self::Error::Key)?;
|
713 + |
|
714 + | match crate::model::SetOfLengthString::try_from(v) {
|
715 + | Ok(v) => Ok((k, v)),
|
716 + | Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
|
717 + | }
|
718 + | })
|
719 + | .collect();
|
720 + | let hm = res?;
|
721 + | Ok(Self(hm))
|
722 + | }
|
723 + | }
|
724 + | }
|
725 + | pub(crate) mod map_of_length_list_of_pattern_string_unconstrained {
|
726 + |
|
727 + | #[derive(Debug, Clone)]
|
728 + | pub(crate) struct MapOfLengthListOfPatternStringUnconstrained(pub(crate) std::collections::HashMap<::std::string::String, crate::unconstrained::length_list_of_pattern_string_unconstrained::LengthListOfPatternStringUnconstrained>);
|
729 + |
|
730 + | impl From<MapOfLengthListOfPatternStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_length_list_of_pattern_string_constrained::MapOfLengthListOfPatternStringConstrained> {
|
731 + | fn from(value: MapOfLengthListOfPatternStringUnconstrained) -> Self {
|
732 + | Self::Unconstrained(value)
|
733 + | }
|
734 + | }
|
735 + | impl std::convert::TryFrom<MapOfLengthListOfPatternStringUnconstrained> for crate::constrained::map_of_length_list_of_pattern_string_constrained::MapOfLengthListOfPatternStringConstrained {
|
736 + | type Error = crate::model::map_of_length_list_of_pattern_string_internal::ConstraintViolation;
|
737 + | fn try_from(value: MapOfLengthListOfPatternStringUnconstrained) -> std::result::Result<Self, Self::Error> {
|
738 + | let res: ::std::result::Result<::std::collections::HashMap<crate::model::PatternString, crate::model::LengthListOfPatternString>, Self::Error> = value.0
|
739 + | .into_iter()
|
740 + | .map(|(k, v)| {
|
741 + | let k: crate::model::PatternString = k.try_into().map_err(Self::Error::Key)?;
|
742 + |
|
743 + | match crate::model::LengthListOfPatternString::try_from(v) {
|
744 + | Ok(v) => Ok((k, v)),
|
745 + | Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
|
746 + | }
|
747 + | })
|
748 + | .collect();
|
749 + | let hm = res?;
|
750 + | Ok(Self(hm))
|
751 + | }
|
752 + | }
|
753 + | }
|
754 + | pub(crate) mod map_of_list_of_enum_string_unconstrained {
|
755 + |
|
756 + | #[derive(Debug, Clone)]
|
757 + | pub(crate) struct MapOfListOfEnumStringUnconstrained(
|
758 + | pub(crate) std::collections::HashMap<
|
759 + | ::std::string::String,
|
760 + | crate::unconstrained::list_of_enum_string_unconstrained::ListOfEnumStringUnconstrained,
|
761 + | >,
|
762 + | );
|
763 + |
|
764 + | impl From<MapOfListOfEnumStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_enum_string_constrained::MapOfListOfEnumStringConstrained> {
|
765 + | fn from(value: MapOfListOfEnumStringUnconstrained) -> Self {
|
766 + | Self::Unconstrained(value)
|
767 + | }
|
768 + | }
|
769 + | impl std::convert::TryFrom<MapOfListOfEnumStringUnconstrained> for crate::constrained::map_of_list_of_enum_string_constrained::MapOfListOfEnumStringConstrained {
|
770 + | type Error = crate::model::map_of_list_of_enum_string_internal::ConstraintViolation;
|
771 + | fn try_from(value: MapOfListOfEnumStringUnconstrained) -> std::result::Result<Self, Self::Error> {
|
772 + | let res: ::std::result::Result<::std::collections::HashMap<crate::model::EnumString, crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained>, Self::Error> = value.0
|
773 + | .into_iter()
|
774 + | .map(|(k, v)| {
|
775 + | let k: crate::model::EnumString = k.try_into().map_err(Self::Error::Key)?;
|
776 + |
|
777 + | match crate::constrained::list_of_enum_string_constrained::ListOfEnumStringConstrained::try_from(v) {
|
778 + | Ok(v) => Ok((k, v)),
|
779 + | Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
|
780 + | }
|
781 + | })
|
782 + | .collect();
|
783 + | let hm = res?;
|
784 + | Ok(Self(hm))
|
785 + | }
|
786 + | }
|
787 + | }
|
788 + | pub(crate) mod map_of_pattern_string_unconstrained {
|
789 + |
|
790 + | #[derive(Debug, Clone)]
|
791 + | pub(crate) struct MapOfPatternStringUnconstrained(
|
792 + | pub(crate) std::collections::HashMap<::std::string::String, ::std::string::String>,
|
793 + | );
|
794 + |
|
795 + | impl From<MapOfPatternStringUnconstrained>
|
796 + | for crate::constrained::MaybeConstrained<
|
797 + | crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained,
|
798 + | >
|
799 + | {
|
800 + | fn from(value: MapOfPatternStringUnconstrained) -> Self {
|
801 + | Self::Unconstrained(value)
|
802 + | }
|
803 + | }
|
804 + | impl std::convert::TryFrom<MapOfPatternStringUnconstrained>
|
805 + | for crate::constrained::map_of_pattern_string_constrained::MapOfPatternStringConstrained
|
806 + | {
|
807 + | type Error = crate::model::map_of_pattern_string_internal::ConstraintViolation;
|
808 + | fn try_from(
|
809 + | value: MapOfPatternStringUnconstrained,
|
810 + | ) -> std::result::Result<Self, Self::Error> {
|
811 + | let res: ::std::result::Result<
|
812 + | ::std::collections::HashMap<
|
813 + | crate::model::PatternString,
|
814 + | crate::model::PatternString,
|
815 + | >,
|
816 + | Self::Error,
|
869 817 | > = value
|
870 818 | .0
|
871 819 | .into_iter()
|
872 - | .enumerate()
|
873 - | .map(|(idx, inner)| {
|
874 - | inner
|
875 - | .try_into()
|
876 - | .map_err(|inner_violation| (idx, inner_violation))
|
820 + | .map(|(k, v)| {
|
821 + | let k: crate::model::PatternString = k.try_into().map_err(Self::Error::Key)?;
|
822 + |
|
823 + | match crate::model::PatternString::try_from(v) {
|
824 + | Ok(v) => Ok((k, v)),
|
825 + | Err(inner_constraint_violation) => {
|
826 + | Err(Self::Error::Value(k, inner_constraint_violation))
|
827 + | }
|
828 + | }
|
877 829 | })
|
878 830 | .collect();
|
879 - | let inner =
|
880 - | res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
|
881 - | Self::try_from(inner)
|
831 + | let hm = res?;
|
832 + | Ok(Self(hm))
|
882 833 | }
|
883 834 | }
|
884 835 | }
|
885 - | pub(crate) mod list_of_range_byte_unconstrained {
|
836 + | pub(crate) mod map_of_list_of_pattern_string_unconstrained {
|
886 837 |
|
887 838 | #[derive(Debug, Clone)]
|
888 - | pub(crate) struct ListOfRangeByteUnconstrained(pub(crate) std::vec::Vec<i8>);
|
839 + | pub(crate) struct MapOfListOfPatternStringUnconstrained(pub(crate) std::collections::HashMap<::std::string::String, crate::unconstrained::list_of_pattern_string_unconstrained::ListOfPatternStringUnconstrained>);
|
840 + |
|
841 + | impl From<MapOfListOfPatternStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_pattern_string_constrained::MapOfListOfPatternStringConstrained> {
|
842 + | fn from(value: MapOfListOfPatternStringUnconstrained) -> Self {
|
843 + | Self::Unconstrained(value)
|
844 + | }
|
845 + | }
|
846 + | impl std::convert::TryFrom<MapOfListOfPatternStringUnconstrained> for crate::constrained::map_of_list_of_pattern_string_constrained::MapOfListOfPatternStringConstrained {
|
847 + | type Error = crate::model::map_of_list_of_pattern_string_internal::ConstraintViolation;
|
848 + | fn try_from(value: MapOfListOfPatternStringUnconstrained) -> std::result::Result<Self, Self::Error> {
|
849 + | let res: ::std::result::Result<::std::collections::HashMap<crate::model::PatternString, crate::constrained::list_of_pattern_string_constrained::ListOfPatternStringConstrained>, Self::Error> = value.0
|
850 + | .into_iter()
|
851 + | .map(|(k, v)| {
|
852 + | let k: crate::model::PatternString = k.try_into().map_err(Self::Error::Key)?;
|
853 + |
|
854 + | match crate::constrained::list_of_pattern_string_constrained::ListOfPatternStringConstrained::try_from(v) {
|
855 + | Ok(v) => Ok((k, v)),
|
856 + | Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
|
857 + | }
|
858 + | })
|
859 + | .collect();
|
860 + | let hm = res?;
|
861 + | Ok(Self(hm))
|
862 + | }
|
863 + | }
|
864 + | }
|
865 + | pub(crate) mod map_of_length_pattern_string_unconstrained {
|
866 + |
|
867 + | #[derive(Debug, Clone)]
|
868 + | pub(crate) struct MapOfLengthPatternStringUnconstrained(
|
869 + | pub(crate) std::collections::HashMap<::std::string::String, ::std::string::String>,
|
870 + | );
|
871 + |
|
872 + | impl From<MapOfLengthPatternStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_length_pattern_string_constrained::MapOfLengthPatternStringConstrained> {
|
873 + | fn from(value: MapOfLengthPatternStringUnconstrained) -> Self {
|
874 + | Self::Unconstrained(value)
|
875 + | }
|
876 + | }
|
877 + | impl std::convert::TryFrom<MapOfLengthPatternStringUnconstrained> for crate::constrained::map_of_length_pattern_string_constrained::MapOfLengthPatternStringConstrained {
|
878 + | type Error = crate::model::map_of_length_pattern_string_internal::ConstraintViolation;
|
879 + | fn try_from(value: MapOfLengthPatternStringUnconstrained) -> std::result::Result<Self, Self::Error> {
|
880 + | let res: ::std::result::Result<::std::collections::HashMap<crate::model::LengthPatternString, crate::model::LengthPatternString>, Self::Error> = value.0
|
881 + | .into_iter()
|
882 + | .map(|(k, v)| {
|
883 + | let k: crate::model::LengthPatternString = k.try_into().map_err(Self::Error::Key)?;
|
884 + |
|
885 + | match crate::model::LengthPatternString::try_from(v) {
|
886 + | Ok(v) => Ok((k, v)),
|
887 + | Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
|
888 + | }
|
889 + | })
|
890 + | .collect();
|
891 + | let hm = res?;
|
892 + | Ok(Self(hm))
|
893 + | }
|
894 + | }
|
895 + | }
|
896 + | pub(crate) mod map_of_list_of_length_pattern_string_unconstrained {
|
897 + |
|
898 + | #[derive(Debug, Clone)]
|
899 + | pub(crate) struct MapOfListOfLengthPatternStringUnconstrained(pub(crate) std::collections::HashMap<::std::string::String, crate::unconstrained::list_of_length_pattern_string_unconstrained::ListOfLengthPatternStringUnconstrained>);
|
900 + |
|
901 + | impl From<MapOfListOfLengthPatternStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_length_pattern_string_constrained::MapOfListOfLengthPatternStringConstrained> {
|
902 + | fn from(value: MapOfListOfLengthPatternStringUnconstrained) -> Self {
|
903 + | Self::Unconstrained(value)
|
904 + | }
|
905 + | }
|
906 + | impl std::convert::TryFrom<MapOfListOfLengthPatternStringUnconstrained> for crate::constrained::map_of_list_of_length_pattern_string_constrained::MapOfListOfLengthPatternStringConstrained {
|
907 + | type Error = crate::model::map_of_list_of_length_pattern_string_internal::ConstraintViolation;
|
908 + | fn try_from(value: MapOfListOfLengthPatternStringUnconstrained) -> std::result::Result<Self, Self::Error> {
|
909 + | let res: ::std::result::Result<::std::collections::HashMap<crate::model::LengthPatternString, crate::constrained::list_of_length_pattern_string_constrained::ListOfLengthPatternStringConstrained>, Self::Error> = value.0
|
910 + | .into_iter()
|
911 + | .map(|(k, v)| {
|
912 + | let k: crate::model::LengthPatternString = k.try_into().map_err(Self::Error::Key)?;
|
913 + |
|
914 + | match crate::constrained::list_of_length_pattern_string_constrained::ListOfLengthPatternStringConstrained::try_from(v) {
|
915 + | Ok(v) => Ok((k, v)),
|
916 + | Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
|
917 + | }
|
918 + | })
|
919 + | .collect();
|
920 + | let hm = res?;
|
921 + | Ok(Self(hm))
|
922 + | }
|
923 + | }
|
924 + | }
|
925 + | pub(crate) mod map_of_enum_string_unconstrained {
|
926 + |
|
927 + | #[derive(Debug, Clone)]
|
928 + | pub(crate) struct MapOfEnumStringUnconstrained(
|
929 + | pub(crate) std::collections::HashMap<::std::string::String, ::std::string::String>,
|
930 + | );
|
931 + |
|
932 + | impl From<MapOfEnumStringUnconstrained>
|
933 + | for crate::constrained::MaybeConstrained<
|
934 + | crate::constrained::map_of_enum_string_constrained::MapOfEnumStringConstrained,
|
935 + | >
|
936 + | {
|
937 + | fn from(value: MapOfEnumStringUnconstrained) -> Self {
|
938 + | Self::Unconstrained(value)
|
939 + | }
|
940 + | }
|
941 + | impl std::convert::TryFrom<MapOfEnumStringUnconstrained>
|
942 + | for crate::constrained::map_of_enum_string_constrained::MapOfEnumStringConstrained
|
943 + | {
|
944 + | type Error = crate::model::map_of_enum_string_internal::ConstraintViolation;
|
945 + | fn try_from(value: MapOfEnumStringUnconstrained) -> std::result::Result<Self, Self::Error> {
|
946 + | let res: ::std::result::Result<
|
947 + | ::std::collections::HashMap<crate::model::EnumString, crate::model::EnumString>,
|
948 + | Self::Error,
|
949 + | > = value
|
950 + | .0
|
951 + | .into_iter()
|
952 + | .map(|(k, v)| {
|
953 + | let k: crate::model::EnumString = k.try_into().map_err(Self::Error::Key)?;
|
954 + |
|
955 + | match crate::model::EnumString::try_from(v) {
|
956 + | Ok(v) => Ok((k, v)),
|
957 + | Err(inner_constraint_violation) => {
|
958 + | Err(Self::Error::Value(k, inner_constraint_violation))
|
959 + | }
|
960 + | }
|
961 + | })
|
962 + | .collect();
|
963 + | let hm = res?;
|
964 + | Ok(Self(hm))
|
965 + | }
|
966 + | }
|
967 + | }
|
968 + | pub(crate) mod con_b_list_unconstrained {
|
969 + |
|
970 + | #[derive(Debug, Clone)]
|
971 + | pub(crate) struct ConBListUnconstrained(
|
972 + | pub(crate) std::vec::Vec<
|
973 + | crate::unconstrained::con_b_list_inner_unconstrained::ConBListInnerUnconstrained,
|
974 + | >,
|
975 + | );
|
889 976 |
|
890 - | impl From<ListOfRangeByteUnconstrained>
|
977 + | impl From<ConBListUnconstrained>
|
891 978 | for crate::constrained::MaybeConstrained<
|
892 - | crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained,
|
979 + | crate::constrained::con_b_list_constrained::ConBListConstrained,
|
893 980 | >
|
894 981 | {
|
895 - | fn from(value: ListOfRangeByteUnconstrained) -> Self {
|
982 + | fn from(value: ConBListUnconstrained) -> Self {
|
896 983 | Self::Unconstrained(value)
|
897 984 | }
|
898 985 | }
|
899 - | impl std::convert::TryFrom<ListOfRangeByteUnconstrained>
|
900 - | for crate::constrained::list_of_range_byte_constrained::ListOfRangeByteConstrained
|
986 + | impl std::convert::TryFrom<ConBListUnconstrained>
|
987 + | for crate::constrained::con_b_list_constrained::ConBListConstrained
|
901 988 | {
|
902 - | type Error = crate::model::list_of_range_byte_internal::ConstraintViolation;
|
903 - | fn try_from(value: ListOfRangeByteUnconstrained) -> std::result::Result<Self, Self::Error> {
|
989 + | type Error = crate::model::con_b_list_internal::ConstraintViolation;
|
990 + | fn try_from(value: ConBListUnconstrained) -> std::result::Result<Self, Self::Error> {
|
904 991 | let res: ::std::result::Result<
|
905 - | ::std::vec::Vec<crate::model::RangeByte>,
|
992 + | ::std::vec::Vec<
|
993 + | crate::constrained::con_b_list_inner_constrained::ConBListInnerConstrained,
|
994 + | >,
|
906 995 | (
|
907 996 | usize,
|
908 - | crate::model::range_byte_internal::ConstraintViolation,
|
997 + | crate::model::con_b_list_inner_internal::ConstraintViolation,
|
909 998 | ),
|
910 999 | > = value
|
911 1000 | .0
|
912 1001 | .into_iter()
|
913 1002 | .enumerate()
|
914 1003 | .map(|(idx, inner)| {
|
915 1004 | inner
|
916 1005 | .try_into()
|
917 1006 | .map_err(|inner_violation| (idx, inner_violation))
|
918 1007 | })
|
919 1008 | .collect();
|
920 1009 | let inner =
|
921 1010 | res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
|
922 1011 | Ok(Self(inner))
|
923 1012 | }
|
924 1013 | }
|
925 1014 | }
|
926 - | pub(crate) mod map_of_range_long_unconstrained {
|
1015 + | pub(crate) mod length_list_unconstrained {
|
927 1016 |
|
928 1017 | #[derive(Debug, Clone)]
|
929 - | pub(crate) struct MapOfRangeLongUnconstrained(
|
930 - | pub(crate) std::collections::HashMap<::std::string::String, i64>,
|
931 - | );
|
1018 + | pub(crate) struct LengthListUnconstrained(pub(crate) std::vec::Vec<::std::string::String>);
|
932 1019 |
|
933 - | impl From<MapOfRangeLongUnconstrained>
|
934 - | for crate::constrained::MaybeConstrained<
|
935 - | crate::constrained::map_of_range_long_constrained::MapOfRangeLongConstrained,
|
936 - | >
|
1020 + | impl From<LengthListUnconstrained>
|
1021 + | for crate::constrained::MaybeConstrained<crate::model::LengthList>
|
937 1022 | {
|
938 - | fn from(value: MapOfRangeLongUnconstrained) -> Self {
|
1023 + | fn from(value: LengthListUnconstrained) -> Self {
|
939 1024 | Self::Unconstrained(value)
|
940 1025 | }
|
941 1026 | }
|
942 - | impl std::convert::TryFrom<MapOfRangeLongUnconstrained>
|
943 - | for crate::constrained::map_of_range_long_constrained::MapOfRangeLongConstrained
|
944 - | {
|
945 - | type Error = crate::model::map_of_range_long_internal::ConstraintViolation;
|
946 - | fn try_from(value: MapOfRangeLongUnconstrained) -> std::result::Result<Self, Self::Error> {
|
947 - | let res: ::std::result::Result<
|
948 - | ::std::collections::HashMap<::std::string::String, crate::model::RangeLong>,
|
949 - | Self::Error,
|
950 - | > = value
|
951 - | .0
|
952 - | .into_iter()
|
953 - | .map(|(k, v)| match crate::model::RangeLong::try_from(v) {
|
954 - | Ok(v) => Ok((k, v)),
|
955 - | Err(inner_constraint_violation) => {
|
956 - | Err(Self::Error::Value(k, inner_constraint_violation))
|
957 - | }
|
958 - | })
|
959 - | .collect();
|
960 - | let hm = res?;
|
961 - | Ok(Self(hm))
|
1027 + | impl std::convert::TryFrom<LengthListUnconstrained> for crate::model::LengthList {
|
1028 + | type Error = crate::model::length_list_internal::ConstraintViolation;
|
1029 + | fn try_from(value: LengthListUnconstrained) -> std::result::Result<Self, Self::Error> {
|
1030 + | let inner = value.0;
|
1031 + | Self::try_from(inner)
|
962 1032 | }
|
963 1033 | }
|
964 1034 | }
|
965 - | pub(crate) mod set_of_range_long_unconstrained {
|
1035 + | pub(crate) mod sensitive_length_list_unconstrained {
|
966 1036 |
|
967 1037 | #[derive(Debug, Clone)]
|
968 - | pub(crate) struct SetOfRangeLongUnconstrained(pub(crate) std::vec::Vec<i64>);
|
1038 + | pub(crate) struct SensitiveLengthListUnconstrained(
|
1039 + | pub(crate) std::vec::Vec<crate::model::SensitiveStructure>,
|
1040 + | );
|
969 1041 |
|
970 - | impl From<SetOfRangeLongUnconstrained>
|
971 - | for crate::constrained::MaybeConstrained<crate::model::SetOfRangeLong>
|
1042 + | impl From<SensitiveLengthListUnconstrained>
|
1043 + | for crate::constrained::MaybeConstrained<crate::model::SensitiveLengthList>
|
972 1044 | {
|
973 - | fn from(value: SetOfRangeLongUnconstrained) -> Self {
|
1045 + | fn from(value: SensitiveLengthListUnconstrained) -> Self {
|
974 1046 | Self::Unconstrained(value)
|
975 1047 | }
|
976 1048 | }
|
977 - | impl std::convert::TryFrom<SetOfRangeLongUnconstrained> for crate::model::SetOfRangeLong {
|
978 - | type Error = crate::model::set_of_range_long_internal::ConstraintViolation;
|
979 - | fn try_from(value: SetOfRangeLongUnconstrained) -> std::result::Result<Self, Self::Error> {
|
980 - | let res: ::std::result::Result<
|
981 - | ::std::vec::Vec<crate::model::RangeLong>,
|
982 - | (
|
983 - | usize,
|
984 - | crate::model::range_long_internal::ConstraintViolation,
|
985 - | ),
|
986 - | > = value
|
987 - | .0
|
988 - | .into_iter()
|
989 - | .enumerate()
|
990 - | .map(|(idx, inner)| {
|
991 - | inner
|
992 - | .try_into()
|
993 - | .map_err(|inner_violation| (idx, inner_violation))
|
994 - | })
|
995 - | .collect();
|
996 - | let inner =
|
997 - | res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
|
1049 + | impl std::convert::TryFrom<SensitiveLengthListUnconstrained> for crate::model::SensitiveLengthList {
|
1050 + | type Error = crate::model::sensitive_length_list_internal::ConstraintViolation;
|
1051 + | fn try_from(
|
1052 + | value: SensitiveLengthListUnconstrained,
|
1053 + | ) -> std::result::Result<Self, Self::Error> {
|
1054 + | let inner = value.0;
|
998 1055 | Self::try_from(inner)
|
999 1056 | }
|
1000 1057 | }
|
1001 1058 | }
|
1002 - | pub(crate) mod list_of_range_long_unconstrained {
|
1059 + | pub(crate) mod con_b_set_unconstrained {
|
1003 1060 |
|
1004 1061 | #[derive(Debug, Clone)]
|
1005 - | pub(crate) struct ListOfRangeLongUnconstrained(pub(crate) std::vec::Vec<i64>);
|
1062 + | pub(crate) struct ConBSetUnconstrained(
|
1063 + | pub(crate) std::vec::Vec<
|
1064 + | crate::unconstrained::con_b_set_inner_unconstrained::ConBSetInnerUnconstrained,
|
1065 + | >,
|
1066 + | );
|
1006 1067 |
|
1007 - | impl From<ListOfRangeLongUnconstrained>
|
1008 - | for crate::constrained::MaybeConstrained<
|
1009 - | crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained,
|
1010 - | >
|
1011 - | {
|
1012 - | fn from(value: ListOfRangeLongUnconstrained) -> Self {
|
1068 + | impl From<ConBSetUnconstrained> for crate::constrained::MaybeConstrained<crate::model::ConBSet> {
|
1069 + | fn from(value: ConBSetUnconstrained) -> Self {
|
1013 1070 | Self::Unconstrained(value)
|
1014 1071 | }
|
1015 1072 | }
|
1016 - | impl std::convert::TryFrom<ListOfRangeLongUnconstrained>
|
1017 - | for crate::constrained::list_of_range_long_constrained::ListOfRangeLongConstrained
|
1018 - | {
|
1019 - | type Error = crate::model::list_of_range_long_internal::ConstraintViolation;
|
1020 - | fn try_from(value: ListOfRangeLongUnconstrained) -> std::result::Result<Self, Self::Error> {
|
1073 + | impl std::convert::TryFrom<ConBSetUnconstrained> for crate::model::ConBSet {
|
1074 + | type Error = crate::model::con_b_set_internal::ConstraintViolation;
|
1075 + | fn try_from(value: ConBSetUnconstrained) -> std::result::Result<Self, Self::Error> {
|
1021 1076 | let res: ::std::result::Result<
|
1022 - | ::std::vec::Vec<crate::model::RangeLong>,
|
1077 + | ::std::vec::Vec<crate::model::ConBSetInner>,
|
1023 1078 | (
|
1024 1079 | usize,
|
1025 - | crate::model::range_long_internal::ConstraintViolation,
|
1080 + | crate::model::con_b_set_inner_internal::ConstraintViolation,
|
1026 1081 | ),
|
1027 1082 | > = value
|
1028 1083 | .0
|
1029 1084 | .into_iter()
|
1030 1085 | .enumerate()
|
1031 1086 | .map(|(idx, inner)| {
|
1032 1087 | inner
|
1033 1088 | .try_into()
|
1034 1089 | .map_err(|inner_violation| (idx, inner_violation))
|
1035 1090 | })
|
1036 1091 | .collect();
|
1037 1092 | let inner =
|
1038 1093 | res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
|
1039 - | Ok(Self(inner))
|
1094 + | Self::try_from(inner)
|
1040 1095 | }
|
1041 1096 | }
|
1042 1097 | }
|
1043 - | pub(crate) mod map_of_range_short_unconstrained {
|
1098 + | pub(crate) mod length_map_unconstrained {
|
1044 1099 |
|
1045 1100 | #[derive(Debug, Clone)]
|
1046 - | pub(crate) struct MapOfRangeShortUnconstrained(
|
1047 - | pub(crate) std::collections::HashMap<::std::string::String, i16>,
|
1101 + | pub(crate) struct LengthMapUnconstrained(
|
1102 + | pub(crate) std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1048 1103 | );
|
1049 1104 |
|
1050 - | impl From<MapOfRangeShortUnconstrained>
|
1051 - | for crate::constrained::MaybeConstrained<
|
1052 - | crate::constrained::map_of_range_short_constrained::MapOfRangeShortConstrained,
|
1053 - | >
|
1105 + | impl From<LengthMapUnconstrained>
|
1106 + | for crate::constrained::MaybeConstrained<crate::model::LengthMap>
|
1054 1107 | {
|
1055 - | fn from(value: MapOfRangeShortUnconstrained) -> Self {
|
1108 + | fn from(value: LengthMapUnconstrained) -> Self {
|
1056 1109 | Self::Unconstrained(value)
|
1057 1110 | }
|
1058 1111 | }
|
1059 - | impl std::convert::TryFrom<MapOfRangeShortUnconstrained>
|
1060 - | for crate::constrained::map_of_range_short_constrained::MapOfRangeShortConstrained
|
1061 - | {
|
1062 - | type Error = crate::model::map_of_range_short_internal::ConstraintViolation;
|
1063 - | fn try_from(value: MapOfRangeShortUnconstrained) -> std::result::Result<Self, Self::Error> {
|
1064 - | let res: ::std::result::Result<
|
1065 - | ::std::collections::HashMap<::std::string::String, crate::model::RangeShort>,
|
1066 - | Self::Error,
|
1067 - | > = value
|
1068 - | .0
|
1069 - | .into_iter()
|
1070 - | .map(|(k, v)| match crate::model::RangeShort::try_from(v) {
|
1071 - | Ok(v) => Ok((k, v)),
|
1072 - | Err(inner_constraint_violation) => {
|
1073 - | Err(Self::Error::Value(k, inner_constraint_violation))
|
1112 + | impl std::convert::TryFrom<LengthMapUnconstrained> for crate::model::LengthMap {
|
1113 + | type Error = crate::model::length_map_internal::ConstraintViolation;
|
1114 + | fn try_from(value: LengthMapUnconstrained) -> std::result::Result<Self, Self::Error> {
|
1115 + | let hm = value.0;
|
1116 + | Self::try_from(hm)
|
1117 + | }
|
1118 + | }
|
1119 + | }
|
1120 + | pub(crate) mod map_of_map_of_list_of_list_of_con_b_unconstrained {
|
1121 + |
|
1122 + | #[derive(Debug, Clone)]
|
1123 + | pub(crate) struct MapOfMapOfListOfListOfConBUnconstrained(pub(crate) std::collections::HashMap<::std::string::String, crate::unconstrained::map_of_list_of_list_of_con_b_unconstrained::MapOfListOfListOfConBUnconstrained>);
|
1124 + |
|
1125 + | impl From<MapOfMapOfListOfListOfConBUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_map_of_list_of_list_of_con_b_constrained::MapOfMapOfListOfListOfConBConstrained> {
|
1126 + | fn from(value: MapOfMapOfListOfListOfConBUnconstrained) -> Self {
|
1127 + | Self::Unconstrained(value)
|
1128 + | }
|
1074 1129 | }
|
1075 - | })
|
1076 - | .collect();
|
1077 - | let hm = res?;
|
1130 + | impl std::convert::TryFrom<MapOfMapOfListOfListOfConBUnconstrained> for crate::constrained::map_of_map_of_list_of_list_of_con_b_constrained::MapOfMapOfListOfListOfConBConstrained {
|
1131 + | type Error = crate::model::map_of_map_of_list_of_list_of_con_b_internal::ConstraintViolation;
|
1132 + | fn try_from(value: MapOfMapOfListOfListOfConBUnconstrained) -> std::result::Result<Self, Self::Error> {
|
1133 + | let res: ::std::result::Result<::std::collections::HashMap<::std::string::String, crate::constrained::map_of_list_of_list_of_con_b_constrained::MapOfListOfListOfConBConstrained>, Self::Error> = value.0
|
1134 + | .into_iter()
|
1135 + | .map(|(k, v)| {
|
1136 + | match crate::constrained::map_of_list_of_list_of_con_b_constrained::MapOfListOfListOfConBConstrained::try_from(v) {
|
1137 + | Ok(v) => Ok((k, v)),
|
1138 + | Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
|
1139 + | }
|
1140 + | })
|
1141 + | .collect();
|
1142 + | let hm = res?;
|
1078 1143 | Ok(Self(hm))
|
1079 1144 | }
|
1080 1145 | }
|
1081 1146 | }
|
1082 - | pub(crate) mod set_of_range_short_unconstrained {
|
1147 + | pub(crate) mod sparse_map_unconstrained {
|
1083 1148 |
|
1084 1149 | #[derive(Debug, Clone)]
|
1085 - | pub(crate) struct SetOfRangeShortUnconstrained(pub(crate) std::vec::Vec<i16>);
|
1150 + | pub(crate) struct SparseMapUnconstrained(
|
1151 + | pub(crate) std::collections::HashMap<
|
1152 + | ::std::string::String,
|
1153 + | ::std::option::Option<
|
1154 + | crate::unconstrained::unique_items_list_unconstrained::UniqueItemsListUnconstrained,
|
1155 + | >,
|
1156 + | >,
|
1157 + | );
|
1086 1158 |
|
1087 - | impl From<SetOfRangeShortUnconstrained>
|
1088 - | for crate::constrained::MaybeConstrained<crate::model::SetOfRangeShort>
|
1159 + | impl From<SparseMapUnconstrained>
|
1160 + | for crate::constrained::MaybeConstrained<
|
1161 + | crate::constrained::sparse_map_constrained::SparseMapConstrained,
|
1162 + | >
|
1089 1163 | {
|
1090 - | fn from(value: SetOfRangeShortUnconstrained) -> Self {
|
1164 + | fn from(value: SparseMapUnconstrained) -> Self {
|
1091 1165 | Self::Unconstrained(value)
|
1092 1166 | }
|
1093 1167 | }
|
1094 - | impl std::convert::TryFrom<SetOfRangeShortUnconstrained> for crate::model::SetOfRangeShort {
|
1095 - | type Error = crate::model::set_of_range_short_internal::ConstraintViolation;
|
1096 - | fn try_from(value: SetOfRangeShortUnconstrained) -> std::result::Result<Self, Self::Error> {
|
1168 + | impl std::convert::TryFrom<SparseMapUnconstrained>
|
1169 + | for crate::constrained::sparse_map_constrained::SparseMapConstrained
|
1170 + | {
|
1171 + | type Error = crate::model::sparse_map_internal::ConstraintViolation;
|
1172 + | fn try_from(value: SparseMapUnconstrained) -> std::result::Result<Self, Self::Error> {
|
1097 1173 | let res: ::std::result::Result<
|
1098 - | ::std::vec::Vec<crate::model::RangeShort>,
|
1099 - | (
|
1100 - | usize,
|
1101 - | crate::model::range_short_internal::ConstraintViolation,
|
1102 - | ),
|
1174 + | ::std::collections::HashMap<
|
1175 + | ::std::string::String,
|
1176 + | ::std::option::Option<crate::model::UniqueItemsList>,
|
1177 + | >,
|
1178 + | Self::Error,
|
1103 1179 | > = value
|
1104 1180 | .0
|
1105 1181 | .into_iter()
|
1106 - | .enumerate()
|
1107 - | .map(|(idx, inner)| {
|
1108 - | inner
|
1109 - | .try_into()
|
1110 - | .map_err(|inner_violation| (idx, inner_violation))
|
1182 + | .map(|(k, v)| match v {
|
1183 + | None => Ok((k, None)),
|
1184 + | Some(v) => match crate::model::UniqueItemsList::try_from(v) {
|
1185 + | Ok(v) => Ok((k, Some(v))),
|
1186 + | Err(inner_constraint_violation) => {
|
1187 + | Err(Self::Error::Value(k, inner_constraint_violation))
|
1188 + | }
|
1189 + | },
|
1111 1190 | })
|
1112 1191 | .collect();
|
1113 - | let inner =
|
1114 - | res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
|
1115 - | Self::try_from(inner)
|
1192 + | let hm = res?;
|
1193 + | Ok(Self(hm))
|
1116 1194 | }
|
1117 1195 | }
|
1118 1196 | }
|
1119 - | pub(crate) mod list_of_range_short_unconstrained {
|
1197 + | pub(crate) mod sparse_list_unconstrained {
|
1120 1198 |
|
1121 1199 | #[derive(Debug, Clone)]
|
1122 - | pub(crate) struct ListOfRangeShortUnconstrained(pub(crate) std::vec::Vec<i16>);
|
1200 + | pub(crate) struct SparseListUnconstrained(
|
1201 + | pub(crate) std::vec::Vec<::std::option::Option<::std::string::String>>,
|
1202 + | );
|
1123 1203 |
|
1124 - | impl From<ListOfRangeShortUnconstrained>
|
1204 + | impl From<SparseListUnconstrained>
|
1125 1205 | for crate::constrained::MaybeConstrained<
|
1126 - | crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained,
|
1206 + | crate::constrained::sparse_list_constrained::SparseListConstrained,
|
1127 1207 | >
|
1128 1208 | {
|
1129 - | fn from(value: ListOfRangeShortUnconstrained) -> Self {
|
1209 + | fn from(value: SparseListUnconstrained) -> Self {
|
1130 1210 | Self::Unconstrained(value)
|
1131 1211 | }
|
1132 1212 | }
|
1133 - | impl std::convert::TryFrom<ListOfRangeShortUnconstrained>
|
1134 - | for crate::constrained::list_of_range_short_constrained::ListOfRangeShortConstrained
|
1213 + | impl std::convert::TryFrom<SparseListUnconstrained>
|
1214 + | for crate::constrained::sparse_list_constrained::SparseListConstrained
|
1135 1215 | {
|
1136 - | type Error = crate::model::list_of_range_short_internal::ConstraintViolation;
|
1137 - | fn try_from(
|
1138 - | value: ListOfRangeShortUnconstrained,
|
1139 - | ) -> std::result::Result<Self, Self::Error> {
|
1216 + | type Error = crate::model::sparse_list_internal::ConstraintViolation;
|
1217 + | fn try_from(value: SparseListUnconstrained) -> std::result::Result<Self, Self::Error> {
|
1140 1218 | let res: ::std::result::Result<
|
1141 - | ::std::vec::Vec<crate::model::RangeShort>,
|
1219 + | ::std::vec::Vec<::std::option::Option<crate::model::LengthString>>,
|
1142 1220 | (
|
1143 1221 | usize,
|
1144 - | crate::model::range_short_internal::ConstraintViolation,
|
1222 + | crate::model::length_string_internal::ConstraintViolation,
|
1145 1223 | ),
|
1146 1224 | > = value
|
1147 1225 | .0
|
1148 1226 | .into_iter()
|
1149 1227 | .enumerate()
|
1150 1228 | .map(|(idx, inner)| {
|
1151 1229 | inner
|
1152 - | .try_into()
|
1153 - | .map_err(|inner_violation| (idx, inner_violation))
|
1230 + | .map(|inner| {
|
1231 + | inner
|
1232 + | .try_into()
|
1233 + | .map_err(|inner_violation| (idx, inner_violation))
|
1234 + | })
|
1235 + | .transpose()
|
1154 1236 | })
|
1155 1237 | .collect();
|
1156 1238 | let inner =
|
1157 1239 | res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
|
1158 1240 | Ok(Self(inner))
|
1159 1241 | }
|
1160 1242 | }
|
1161 1243 | }
|
1162 - | pub(crate) mod map_of_range_integer_unconstrained {
|
1244 + | pub(crate) mod sparse_length_map_unconstrained {
|
1163 1245 |
|
1164 1246 | #[derive(Debug, Clone)]
|
1165 - | pub(crate) struct MapOfRangeIntegerUnconstrained(
|
1166 - | pub(crate) std::collections::HashMap<::std::string::String, i32>,
|
1247 + | pub(crate) struct SparseLengthMapUnconstrained(
|
1248 + | pub(crate) std::collections::HashMap<
|
1249 + | ::std::string::String,
|
1250 + | ::std::option::Option<::std::string::String>,
|
1251 + | >,
|
1167 1252 | );
|
1168 1253 |
|
1169 - | impl From<MapOfRangeIntegerUnconstrained>
|
1170 - | for crate::constrained::MaybeConstrained<
|
1171 - | crate::constrained::map_of_range_integer_constrained::MapOfRangeIntegerConstrained,
|
1172 - | >
|
1254 + | impl From<SparseLengthMapUnconstrained>
|
1255 + | for crate::constrained::MaybeConstrained<crate::model::SparseLengthMap>
|
1173 1256 | {
|
1174 - | fn from(value: MapOfRangeIntegerUnconstrained) -> Self {
|
1257 + | fn from(value: SparseLengthMapUnconstrained) -> Self {
|
1175 1258 | Self::Unconstrained(value)
|
1176 1259 | }
|
1177 1260 | }
|
1178 - | impl std::convert::TryFrom<MapOfRangeIntegerUnconstrained>
|
1179 - | for crate::constrained::map_of_range_integer_constrained::MapOfRangeIntegerConstrained
|
1180 - | {
|
1181 - | type Error = crate::model::map_of_range_integer_internal::ConstraintViolation;
|
1182 - | fn try_from(
|
1183 - | value: MapOfRangeIntegerUnconstrained,
|
1184 - | ) -> std::result::Result<Self, Self::Error> {
|
1185 - | let res: ::std::result::Result<
|
1186 - | ::std::collections::HashMap<::std::string::String, crate::model::RangeInteger>,
|
1187 - | Self::Error,
|
1188 - | > = value
|
1189 - | .0
|
1190 - | .into_iter()
|
1191 - | .map(|(k, v)| match crate::model::RangeInteger::try_from(v) {
|
1192 - | Ok(v) => Ok((k, v)),
|
1193 - | Err(inner_constraint_violation) => {
|
1194 - | Err(Self::Error::Value(k, inner_constraint_violation))
|
1195 - | }
|
1196 - | })
|
1197 - | .collect();
|
1198 - | let hm = res?;
|
1199 - | Ok(Self(hm))
|
1261 + | impl std::convert::TryFrom<SparseLengthMapUnconstrained> for crate::model::SparseLengthMap {
|
1262 + | type Error = crate::model::sparse_length_map_internal::ConstraintViolation;
|
1263 + | fn try_from(value: SparseLengthMapUnconstrained) -> std::result::Result<Self, Self::Error> {
|
1264 + | let hm = value.0;
|
1265 + | Self::try_from(hm)
|
1200 1266 | }
|
1201 1267 | }
|
1202 1268 | }
|
1203 - | pub(crate) mod set_of_range_integer_unconstrained {
|
1269 + | pub(crate) mod sparse_length_list_unconstrained {
|
1204 1270 |
|
1205 1271 | #[derive(Debug, Clone)]
|
1206 - | pub(crate) struct SetOfRangeIntegerUnconstrained(pub(crate) std::vec::Vec<i32>);
|
1272 + | pub(crate) struct SparseLengthListUnconstrained(
|
1273 + | pub(crate) std::vec::Vec<::std::option::Option<::std::string::String>>,
|
1274 + | );
|
1207 1275 |
|
1208 - | impl From<SetOfRangeIntegerUnconstrained>
|
1209 - | for crate::constrained::MaybeConstrained<crate::model::SetOfRangeInteger>
|
1276 + | impl From<SparseLengthListUnconstrained>
|
1277 + | for crate::constrained::MaybeConstrained<crate::model::SparseLengthList>
|
1210 1278 | {
|
1211 - | fn from(value: SetOfRangeIntegerUnconstrained) -> Self {
|
1279 + | fn from(value: SparseLengthListUnconstrained) -> Self {
|
1212 1280 | Self::Unconstrained(value)
|
1213 1281 | }
|
1214 1282 | }
|
1215 - | impl std::convert::TryFrom<SetOfRangeIntegerUnconstrained> for crate::model::SetOfRangeInteger {
|
1216 - | type Error = crate::model::set_of_range_integer_internal::ConstraintViolation;
|
1283 + | impl std::convert::TryFrom<SparseLengthListUnconstrained> for crate::model::SparseLengthList {
|
1284 + | type Error = crate::model::sparse_length_list_internal::ConstraintViolation;
|
1217 1285 | fn try_from(
|
1218 - | value: SetOfRangeIntegerUnconstrained,
|
1286 + | value: SparseLengthListUnconstrained,
|
1219 1287 | ) -> std::result::Result<Self, Self::Error> {
|
1220 - | let res: ::std::result::Result<
|
1221 - | ::std::vec::Vec<crate::model::RangeInteger>,
|
1222 - | (
|
1223 - | usize,
|
1224 - | crate::model::range_integer_internal::ConstraintViolation,
|
1225 - | ),
|
1226 - | > = value
|
1227 - | .0
|
1228 - | .into_iter()
|
1229 - | .enumerate()
|
1230 - | .map(|(idx, inner)| {
|
1231 - | inner
|
1232 - | .try_into()
|
1233 - | .map_err(|inner_violation| (idx, inner_violation))
|
1234 - | })
|
1235 - | .collect();
|
1236 - | let inner =
|
1237 - | res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
|
1288 + | let inner = value.0;
|
1238 1289 | Self::try_from(inner)
|
1239 1290 | }
|
1240 1291 | }
|
1241 1292 | }
|
1242 - | pub(crate) mod list_of_range_integer_unconstrained {
|
1293 + | pub(crate) mod constrained_union_unconstrained {
|
1243 1294 |
|
1295 + | #[allow(clippy::enum_variant_names)]
|
1244 1296 | #[derive(Debug, Clone)]
|
1245 - | pub(crate) struct ListOfRangeIntegerUnconstrained(pub(crate) std::vec::Vec<i32>);
|
1297 + | pub(crate) enum ConstrainedUnionUnconstrained {
|
1298 + | ConBList(crate::unconstrained::con_b_list_unconstrained::ConBListUnconstrained),
|
1299 + | ConBMap(crate::unconstrained::con_b_map_unconstrained::ConBMapUnconstrained),
|
1300 + | ConBSet(crate::unconstrained::con_b_set_unconstrained::ConBSetUnconstrained),
|
1301 + | ConstrainedStructure(crate::model::con_b_internal::Builder),
|
1302 + | EnumString(::std::string::String),
|
1303 + | LengthString(::std::string::String),
|
1304 + | }
|
1305 + | impl ::std::convert::TryFrom<ConstrainedUnionUnconstrained> for crate::model::ConstrainedUnion {
|
1306 + | type Error = crate::model::constrained_union_internal::ConstraintViolation;
|
1246 1307 |
|
1247 - | impl From<ListOfRangeIntegerUnconstrained>
|
1308 + | fn try_from(
|
1309 + | value: ConstrainedUnionUnconstrained,
|
1310 + | ) -> ::std::result::Result<Self, Self::Error> {
|
1311 + | Ok(
|
1312 + | match value {
|
1313 + | crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained::ConBList(unconstrained) => Self::ConBList(
|
1314 + | {
|
1315 + | let constrained: crate::constrained::con_b_list_constrained::ConBListConstrained = unconstrained
|
1316 + | .try_into()
|
1317 + | .map_err(Self::Error::ConBList)?;
|
1318 + | constrained.into()
|
1319 + | }
|
1320 + | ),
|
1321 + | crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained::ConBMap(unconstrained) => Self::ConBMap(
|
1322 + | {
|
1323 + | let constrained: crate::model::ConBMap = unconstrained
|
1324 + | .try_into()
|
1325 + | .map_err(Self::Error::ConBMap)?;
|
1326 + | constrained.into()
|
1327 + | }
|
1328 + | ),
|
1329 + | crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained::ConBSet(unconstrained) => Self::ConBSet(
|
1330 + | {
|
1331 + | let constrained: crate::model::ConBSet = unconstrained
|
1332 + | .try_into()
|
1333 + | .map_err(Self::Error::ConBSet)?;
|
1334 + | constrained.into()
|
1335 + | }
|
1336 + | ),
|
1337 + | crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained::ConstrainedStructure(unconstrained) => Self::ConstrainedStructure(
|
1338 + | unconstrained
|
1339 + | .try_into()
|
1340 + |
|
1341 + |
|
1342 + | .map_err(Self::Error::ConstrainedStructure)?
|
1343 + | ),
|
1344 + | crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained::EnumString(unconstrained) => Self::EnumString(
|
1345 + | unconstrained
|
1346 + | .try_into()
|
1347 + |
|
1348 + |
|
1349 + | .map_err(Self::Error::EnumString)?
|
1350 + | ),
|
1351 + | crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained::LengthString(unconstrained) => Self::LengthString(
|
1352 + | {
|
1353 + | let constrained: crate::model::LengthString = unconstrained
|
1354 + | .try_into()
|
1355 + | .map_err(Self::Error::LengthString)?;
|
1356 + | constrained.into()
|
1357 + | }
|
1358 + | ),
|
1359 + | }
|
1360 + | )
|
1361 + | }
|
1362 + | }
|
1363 + | }
|
1364 + | pub(crate) mod list_of_length_blob_unconstrained {
|
1365 + |
|
1366 + | #[derive(Debug, Clone)]
|
1367 + | pub(crate) struct ListOfLengthBlobUnconstrained(
|
1368 + | pub(crate) std::vec::Vec<::aws_smithy_types::Blob>,
|
1369 + | );
|
1370 + |
|
1371 + | impl From<ListOfLengthBlobUnconstrained>
|
1248 1372 | for crate::constrained::MaybeConstrained<
|
1249 - | crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained,
|
1373 + | crate::constrained::list_of_length_blob_constrained::ListOfLengthBlobConstrained,
|
1250 1374 | >
|
1251 1375 | {
|
1252 - | fn from(value: ListOfRangeIntegerUnconstrained) -> Self {
|
1376 + | fn from(value: ListOfLengthBlobUnconstrained) -> Self {
|
1253 1377 | Self::Unconstrained(value)
|
1254 1378 | }
|
1255 1379 | }
|
1256 - | impl std::convert::TryFrom<ListOfRangeIntegerUnconstrained>
|
1257 - | for crate::constrained::list_of_range_integer_constrained::ListOfRangeIntegerConstrained
|
1380 + | impl std::convert::TryFrom<ListOfLengthBlobUnconstrained>
|
1381 + | for crate::constrained::list_of_length_blob_constrained::ListOfLengthBlobConstrained
|
1258 1382 | {
|
1259 - | type Error = crate::model::list_of_range_integer_internal::ConstraintViolation;
|
1383 + | type Error = crate::model::list_of_length_blob_internal::ConstraintViolation;
|
1260 1384 | fn try_from(
|
1261 - | value: ListOfRangeIntegerUnconstrained,
|
1385 + | value: ListOfLengthBlobUnconstrained,
|
1262 1386 | ) -> std::result::Result<Self, Self::Error> {
|
1263 1387 | let res: ::std::result::Result<
|
1264 - | ::std::vec::Vec<crate::model::RangeInteger>,
|
1388 + | ::std::vec::Vec<crate::model::LengthBlob>,
|
1265 1389 | (
|
1266 1390 | usize,
|
1267 - | crate::model::range_integer_internal::ConstraintViolation,
|
1391 + | crate::model::length_blob_internal::ConstraintViolation,
|
1268 1392 | ),
|
1269 1393 | > = value
|
1270 1394 | .0
|
1271 1395 | .into_iter()
|
1272 1396 | .enumerate()
|
1273 1397 | .map(|(idx, inner)| {
|
1274 1398 | inner
|
1275 1399 | .try_into()
|
1276 1400 | .map_err(|inner_violation| (idx, inner_violation))
|
1277 1401 | })
|
1278 1402 | .collect();
|
1279 1403 | let inner =
|
1280 1404 | res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
|
1281 1405 | Ok(Self(inner))
|
1282 1406 | }
|
1283 1407 | }
|
1284 1408 | }
|
1285 1409 | pub(crate) mod map_of_length_blob_unconstrained {
|
1286 1410 |
|
1287 1411 | #[derive(Debug, Clone)]
|
1288 1412 | pub(crate) struct MapOfLengthBlobUnconstrained(
|
1289 1413 | pub(crate) std::collections::HashMap<::std::string::String, ::aws_smithy_types::Blob>,
|
1290 1414 | );
|
1291 1415 |
|
1292 1416 | impl From<MapOfLengthBlobUnconstrained>
|
1293 1417 | for crate::constrained::MaybeConstrained<
|
1294 1418 | crate::constrained::map_of_length_blob_constrained::MapOfLengthBlobConstrained,
|
1295 1419 | >
|
1296 1420 | {
|
1297 1421 | fn from(value: MapOfLengthBlobUnconstrained) -> Self {
|
1298 1422 | Self::Unconstrained(value)
|
1299 1423 | }
|
1300 1424 | }
|
1301 1425 | impl std::convert::TryFrom<MapOfLengthBlobUnconstrained>
|
1302 1426 | for crate::constrained::map_of_length_blob_constrained::MapOfLengthBlobConstrained
|
1303 1427 | {
|
1304 1428 | type Error = crate::model::map_of_length_blob_internal::ConstraintViolation;
|
1305 1429 | fn try_from(value: MapOfLengthBlobUnconstrained) -> std::result::Result<Self, Self::Error> {
|
1306 1430 | let res: ::std::result::Result<
|
1307 1431 | ::std::collections::HashMap<::std::string::String, crate::model::LengthBlob>,
|
1308 1432 | Self::Error,
|
1309 1433 | > = value
|
1310 1434 | .0
|
1311 1435 | .into_iter()
|
1312 1436 | .map(|(k, v)| match crate::model::LengthBlob::try_from(v) {
|
1313 1437 | Ok(v) => Ok((k, v)),
|
1314 1438 | Err(inner_constraint_violation) => {
|
1315 1439 | Err(Self::Error::Value(k, inner_constraint_violation))
|
1316 1440 | }
|
1317 1441 | })
|
1318 1442 | .collect();
|
1319 1443 | let hm = res?;
|
1320 1444 | Ok(Self(hm))
|
1321 1445 | }
|
1322 1446 | }
|
1323 1447 | }
|
1324 - | pub(crate) mod list_of_length_blob_unconstrained {
|
1448 + | pub(crate) mod map_of_range_integer_unconstrained {
|
1325 1449 |
|
1326 1450 | #[derive(Debug, Clone)]
|
1327 - | pub(crate) struct ListOfLengthBlobUnconstrained(
|
1328 - | pub(crate) std::vec::Vec<::aws_smithy_types::Blob>,
|
1451 + | pub(crate) struct MapOfRangeIntegerUnconstrained(
|
1452 + | pub(crate) std::collections::HashMap<::std::string::String, i32>,
|
1329 1453 | );
|
1330 1454 |
|
1331 - | impl From<ListOfLengthBlobUnconstrained>
|
1455 + | impl From<MapOfRangeIntegerUnconstrained>
|
1332 1456 | for crate::constrained::MaybeConstrained<
|
1333 - | crate::constrained::list_of_length_blob_constrained::ListOfLengthBlobConstrained,
|
1334 - | >
|
1335 - | {
|
1336 - | fn from(value: ListOfLengthBlobUnconstrained) -> Self {
|
1337 - | Self::Unconstrained(value)
|
1338 - | }
|
1339 - | }
|
1340 - | impl std::convert::TryFrom<ListOfLengthBlobUnconstrained>
|
1341 - | for crate::constrained::list_of_length_blob_constrained::ListOfLengthBlobConstrained
|
1342 - | {
|
1343 - | type Error = crate::model::list_of_length_blob_internal::ConstraintViolation;
|
1344 - | fn try_from(
|
1345 - | value: ListOfLengthBlobUnconstrained,
|
1346 - | ) -> std::result::Result<Self, Self::Error> {
|
1347 - | let res: ::std::result::Result<
|
1348 - | ::std::vec::Vec<crate::model::LengthBlob>,
|
1349 - | (
|
1350 - | usize,
|
1351 - | crate::model::length_blob_internal::ConstraintViolation,
|
1352 - | ),
|
1353 - | > = value
|
1354 - | .0
|
1355 - | .into_iter()
|
1356 - | .enumerate()
|
1357 - | .map(|(idx, inner)| {
|
1358 - | inner
|
1359 - | .try_into()
|
1360 - | .map_err(|inner_violation| (idx, inner_violation))
|
1361 - | })
|
1362 - | .collect();
|
1363 - | let inner =
|
1364 - | res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
|
1365 - | Ok(Self(inner))
|
1366 - | }
|
1367 - | }
|
1368 - | }
|
1369 - | pub(crate) mod constrained_union_unconstrained {
|
1370 - |
|
1371 - | #[allow(clippy::enum_variant_names)]
|
1372 - | #[derive(Debug, Clone)]
|
1373 - | pub(crate) enum ConstrainedUnionUnconstrained {
|
1374 - | ConBList(crate::unconstrained::con_b_list_unconstrained::ConBListUnconstrained),
|
1375 - | ConBMap(crate::unconstrained::con_b_map_unconstrained::ConBMapUnconstrained),
|
1376 - | ConBSet(crate::unconstrained::con_b_set_unconstrained::ConBSetUnconstrained),
|
1377 - | ConstrainedStructure(crate::model::con_b_internal::Builder),
|
1378 - | EnumString(::std::string::String),
|
1379 - | LengthString(::std::string::String),
|
1457 + | crate::constrained::map_of_range_integer_constrained::MapOfRangeIntegerConstrained,
|
1458 + | >
|
1459 + | {
|
1460 + | fn from(value: MapOfRangeIntegerUnconstrained) -> Self {
|
1461 + | Self::Unconstrained(value)
|
1462 + | }
|
1380 1463 | }
|
1381 - | impl ::std::convert::TryFrom<ConstrainedUnionUnconstrained> for crate::model::ConstrainedUnion {
|
1382 - | type Error = crate::model::constrained_union_internal::ConstraintViolation;
|
1383 - |
|
1464 + | impl std::convert::TryFrom<MapOfRangeIntegerUnconstrained>
|
1465 + | for crate::constrained::map_of_range_integer_constrained::MapOfRangeIntegerConstrained
|
1466 + | {
|
1467 + | type Error = crate::model::map_of_range_integer_internal::ConstraintViolation;
|
1384 1468 | fn try_from(
|
1385 - | value: ConstrainedUnionUnconstrained,
|
1386 - | ) -> ::std::result::Result<Self, Self::Error> {
|
1387 - | Ok(
|
1388 - | match value {
|
1389 - | crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained::ConBList(unconstrained) => Self::ConBList(
|
1390 - | {
|
1391 - | let constrained: crate::constrained::con_b_list_constrained::ConBListConstrained = unconstrained
|
1392 - | .try_into()
|
1393 - | .map_err(Self::Error::ConBList)?;
|
1394 - | constrained.into()
|
1395 - | }
|
1396 - | ),
|
1397 - | crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained::ConBMap(unconstrained) => Self::ConBMap(
|
1398 - | {
|
1399 - | let constrained: crate::model::ConBMap = unconstrained
|
1400 - | .try_into()
|
1401 - | .map_err(Self::Error::ConBMap)?;
|
1402 - | constrained.into()
|
1403 - | }
|
1404 - | ),
|
1405 - | crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained::ConBSet(unconstrained) => Self::ConBSet(
|
1406 - | {
|
1407 - | let constrained: crate::model::ConBSet = unconstrained
|
1408 - | .try_into()
|
1409 - | .map_err(Self::Error::ConBSet)?;
|
1410 - | constrained.into()
|
1411 - | }
|
1412 - | ),
|
1413 - | crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained::ConstrainedStructure(unconstrained) => Self::ConstrainedStructure(
|
1414 - | unconstrained
|
1415 - | .try_into()
|
1416 - |
|
1417 - |
|
1418 - | .map_err(Self::Error::ConstrainedStructure)?
|
1419 - | ),
|
1420 - | crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained::EnumString(unconstrained) => Self::EnumString(
|
1421 - | unconstrained
|
1422 - | .try_into()
|
1423 - |
|
1424 - |
|
1425 - | .map_err(Self::Error::EnumString)?
|
1426 - | ),
|
1427 - | crate::unconstrained::constrained_union_unconstrained::ConstrainedUnionUnconstrained::LengthString(unconstrained) => Self::LengthString(
|
1428 - | {
|
1429 - | let constrained: crate::model::LengthString = unconstrained
|
1430 - | .try_into()
|
1431 - | .map_err(Self::Error::LengthString)?;
|
1432 - | constrained.into()
|
1433 - | }
|
1434 - | ),
|
1435 - | }
|
1436 - | )
|
1469 + | value: MapOfRangeIntegerUnconstrained,
|
1470 + | ) -> std::result::Result<Self, Self::Error> {
|
1471 + | let res: ::std::result::Result<
|
1472 + | ::std::collections::HashMap<::std::string::String, crate::model::RangeInteger>,
|
1473 + | Self::Error,
|
1474 + | > = value
|
1475 + | .0
|
1476 + | .into_iter()
|
1477 + | .map(|(k, v)| match crate::model::RangeInteger::try_from(v) {
|
1478 + | Ok(v) => Ok((k, v)),
|
1479 + | Err(inner_constraint_violation) => {
|
1480 + | Err(Self::Error::Value(k, inner_constraint_violation))
|
1481 + | }
|
1482 + | })
|
1483 + | .collect();
|
1484 + | let hm = res?;
|
1485 + | Ok(Self(hm))
|
1437 1486 | }
|
1438 1487 | }
|
1439 1488 | }
|
1440 - | pub(crate) mod con_b_set_unconstrained {
|
1489 + | pub(crate) mod map_of_range_short_unconstrained {
|
1441 1490 |
|
1442 1491 | #[derive(Debug, Clone)]
|
1443 - | pub(crate) struct ConBSetUnconstrained(
|
1444 - | pub(crate) std::vec::Vec<
|
1445 - | crate::unconstrained::con_b_set_inner_unconstrained::ConBSetInnerUnconstrained,
|
1446 - | >,
|
1492 + | pub(crate) struct MapOfRangeShortUnconstrained(
|
1493 + | pub(crate) std::collections::HashMap<::std::string::String, i16>,
|
1447 1494 | );
|
1448 1495 |
|
1449 - | impl From<ConBSetUnconstrained> for crate::constrained::MaybeConstrained<crate::model::ConBSet> {
|
1450 - | fn from(value: ConBSetUnconstrained) -> Self {
|
1496 + | impl From<MapOfRangeShortUnconstrained>
|
1497 + | for crate::constrained::MaybeConstrained<
|
1498 + | crate::constrained::map_of_range_short_constrained::MapOfRangeShortConstrained,
|
1499 + | >
|
1500 + | {
|
1501 + | fn from(value: MapOfRangeShortUnconstrained) -> Self {
|
1451 1502 | Self::Unconstrained(value)
|
1452 1503 | }
|
1453 1504 | }
|
1454 - | impl std::convert::TryFrom<ConBSetUnconstrained> for crate::model::ConBSet {
|
1455 - | type Error = crate::model::con_b_set_internal::ConstraintViolation;
|
1456 - | fn try_from(value: ConBSetUnconstrained) -> std::result::Result<Self, Self::Error> {
|
1505 + | impl std::convert::TryFrom<MapOfRangeShortUnconstrained>
|
1506 + | for crate::constrained::map_of_range_short_constrained::MapOfRangeShortConstrained
|
1507 + | {
|
1508 + | type Error = crate::model::map_of_range_short_internal::ConstraintViolation;
|
1509 + | fn try_from(value: MapOfRangeShortUnconstrained) -> std::result::Result<Self, Self::Error> {
|
1457 1510 | let res: ::std::result::Result<
|
1458 - | ::std::vec::Vec<crate::model::ConBSetInner>,
|
1459 - | (
|
1460 - | usize,
|
1461 - | crate::model::con_b_set_inner_internal::ConstraintViolation,
|
1462 - | ),
|
1511 + | ::std::collections::HashMap<::std::string::String, crate::model::RangeShort>,
|
1512 + | Self::Error,
|
1463 1513 | > = value
|
1464 1514 | .0
|
1465 1515 | .into_iter()
|
1466 - | .enumerate()
|
1467 - | .map(|(idx, inner)| {
|
1468 - | inner
|
1469 - | .try_into()
|
1470 - | .map_err(|inner_violation| (idx, inner_violation))
|
1516 + | .map(|(k, v)| match crate::model::RangeShort::try_from(v) {
|
1517 + | Ok(v) => Ok((k, v)),
|
1518 + | Err(inner_constraint_violation) => {
|
1519 + | Err(Self::Error::Value(k, inner_constraint_violation))
|
1520 + | }
|
1471 1521 | })
|
1472 1522 | .collect();
|
1473 - | let inner =
|
1474 - | res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
|
1475 - | Self::try_from(inner)
|
1523 + | let hm = res?;
|
1524 + | Ok(Self(hm))
|
1476 1525 | }
|
1477 1526 | }
|
1478 1527 | }
|
1479 - | pub(crate) mod con_b_set_inner_unconstrained {
|
1528 + | pub(crate) mod map_of_range_long_unconstrained {
|
1480 1529 |
|
1481 1530 | #[derive(Debug, Clone)]
|
1482 - | pub(crate) struct ConBSetInnerUnconstrained(pub(crate) std::vec::Vec<::std::string::String>);
|
1531 + | pub(crate) struct MapOfRangeLongUnconstrained(
|
1532 + | pub(crate) std::collections::HashMap<::std::string::String, i64>,
|
1533 + | );
|
1483 1534 |
|
1484 - | impl From<ConBSetInnerUnconstrained>
|
1485 - | for crate::constrained::MaybeConstrained<crate::model::ConBSetInner>
|
1535 + | impl From<MapOfRangeLongUnconstrained>
|
1536 + | for crate::constrained::MaybeConstrained<
|
1537 + | crate::constrained::map_of_range_long_constrained::MapOfRangeLongConstrained,
|
1538 + | >
|
1486 1539 | {
|
1487 - | fn from(value: ConBSetInnerUnconstrained) -> Self {
|
1540 + | fn from(value: MapOfRangeLongUnconstrained) -> Self {
|
1488 1541 | Self::Unconstrained(value)
|
1489 1542 | }
|
1490 1543 | }
|
1491 - | impl std::convert::TryFrom<ConBSetInnerUnconstrained> for crate::model::ConBSetInner {
|
1492 - | type Error = crate::model::con_b_set_inner_internal::ConstraintViolation;
|
1493 - | fn try_from(value: ConBSetInnerUnconstrained) -> std::result::Result<Self, Self::Error> {
|
1494 - | let inner = value.0;
|
1495 - | Self::try_from(inner)
|
1544 + | impl std::convert::TryFrom<MapOfRangeLongUnconstrained>
|
1545 + | for crate::constrained::map_of_range_long_constrained::MapOfRangeLongConstrained
|
1546 + | {
|
1547 + | type Error = crate::model::map_of_range_long_internal::ConstraintViolation;
|
1548 + | fn try_from(value: MapOfRangeLongUnconstrained) -> std::result::Result<Self, Self::Error> {
|
1549 + | let res: ::std::result::Result<
|
1550 + | ::std::collections::HashMap<::std::string::String, crate::model::RangeLong>,
|
1551 + | Self::Error,
|
1552 + | > = value
|
1553 + | .0
|
1554 + | .into_iter()
|
1555 + | .map(|(k, v)| match crate::model::RangeLong::try_from(v) {
|
1556 + | Ok(v) => Ok((k, v)),
|
1557 + | Err(inner_constraint_violation) => {
|
1558 + | Err(Self::Error::Value(k, inner_constraint_violation))
|
1559 + | }
|
1560 + | })
|
1561 + | .collect();
|
1562 + | let hm = res?;
|
1563 + | Ok(Self(hm))
|
1496 1564 | }
|
1497 1565 | }
|
1498 1566 | }
|
1499 - | pub(crate) mod con_b_list_unconstrained {
|
1567 + | pub(crate) mod map_of_range_byte_unconstrained {
|
1500 1568 |
|
1501 1569 | #[derive(Debug, Clone)]
|
1502 - | pub(crate) struct ConBListUnconstrained(
|
1503 - | pub(crate) std::vec::Vec<
|
1504 - | crate::unconstrained::con_b_list_inner_unconstrained::ConBListInnerUnconstrained,
|
1505 - | >,
|
1570 + | pub(crate) struct MapOfRangeByteUnconstrained(
|
1571 + | pub(crate) std::collections::HashMap<::std::string::String, i8>,
|
1506 1572 | );
|
1507 1573 |
|
1508 - | impl From<ConBListUnconstrained>
|
1574 + | impl From<MapOfRangeByteUnconstrained>
|
1509 1575 | for crate::constrained::MaybeConstrained<
|
1510 - | crate::constrained::con_b_list_constrained::ConBListConstrained,
|
1576 + | crate::constrained::map_of_range_byte_constrained::MapOfRangeByteConstrained,
|
1511 1577 | >
|
1512 1578 | {
|
1513 - | fn from(value: ConBListUnconstrained) -> Self {
|
1579 + | fn from(value: MapOfRangeByteUnconstrained) -> Self {
|
1514 1580 | Self::Unconstrained(value)
|
1515 1581 | }
|
1516 1582 | }
|
1517 - | impl std::convert::TryFrom<ConBListUnconstrained>
|
1518 - | for crate::constrained::con_b_list_constrained::ConBListConstrained
|
1583 + | impl std::convert::TryFrom<MapOfRangeByteUnconstrained>
|
1584 + | for crate::constrained::map_of_range_byte_constrained::MapOfRangeByteConstrained
|
1519 1585 | {
|
1520 - | type Error = crate::model::con_b_list_internal::ConstraintViolation;
|
1521 - | fn try_from(value: ConBListUnconstrained) -> std::result::Result<Self, Self::Error> {
|
1586 + | type Error = crate::model::map_of_range_byte_internal::ConstraintViolation;
|
1587 + | fn try_from(value: MapOfRangeByteUnconstrained) -> std::result::Result<Self, Self::Error> {
|
1522 1588 | let res: ::std::result::Result<
|
1523 - | ::std::vec::Vec<
|
1524 - | crate::constrained::con_b_list_inner_constrained::ConBListInnerConstrained,
|
1525 - | >,
|
1526 - | (
|
1527 - | usize,
|
1528 - | crate::model::con_b_list_inner_internal::ConstraintViolation,
|
1529 - | ),
|
1589 + | ::std::collections::HashMap<::std::string::String, crate::model::RangeByte>,
|
1590 + | Self::Error,
|
1530 1591 | > = value
|
1531 1592 | .0
|
1532 1593 | .into_iter()
|
1533 - | .enumerate()
|
1534 - | .map(|(idx, inner)| {
|
1535 - | inner
|
1536 - | .try_into()
|
1537 - | .map_err(|inner_violation| (idx, inner_violation))
|
1594 + | .map(|(k, v)| match crate::model::RangeByte::try_from(v) {
|
1595 + | Ok(v) => Ok((k, v)),
|
1596 + | Err(inner_constraint_violation) => {
|
1597 + | Err(Self::Error::Value(k, inner_constraint_violation))
|
1598 + | }
|
1538 1599 | })
|
1539 1600 | .collect();
|
1540 - | let inner =
|
1541 - | res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
|
1542 - | Ok(Self(inner))
|
1601 + | let hm = res?;
|
1602 + | Ok(Self(hm))
|
1543 1603 | }
|
1544 1604 | }
|
1545 1605 | }
|
1546 - | pub(crate) mod con_b_list_inner_unconstrained {
|
1606 + | pub(crate) mod list_of_pattern_string_unconstrained {
|
1547 1607 |
|
1548 1608 | #[derive(Debug, Clone)]
|
1549 - | pub(crate) struct ConBListInnerUnconstrained(
|
1550 - | pub(crate) std::vec::Vec<crate::model::con_b_internal::Builder>,
|
1609 + | pub(crate) struct ListOfPatternStringUnconstrained(
|
1610 + | pub(crate) std::vec::Vec<::std::string::String>,
|
1551 1611 | );
|
1552 1612 |
|
1553 - | impl From<ConBListInnerUnconstrained>
|
1613 + | impl From<ListOfPatternStringUnconstrained>
|
1554 1614 | for crate::constrained::MaybeConstrained<
|
1555 - | crate::constrained::con_b_list_inner_constrained::ConBListInnerConstrained,
|
1615 + | crate::constrained::list_of_pattern_string_constrained::ListOfPatternStringConstrained,
|
1556 1616 | >
|
1557 1617 | {
|
1558 - | fn from(value: ConBListInnerUnconstrained) -> Self {
|
1618 + | fn from(value: ListOfPatternStringUnconstrained) -> Self {
|
1559 1619 | Self::Unconstrained(value)
|
1560 1620 | }
|
1561 1621 | }
|
1562 - | impl std::convert::TryFrom<ConBListInnerUnconstrained>
|
1563 - | for crate::constrained::con_b_list_inner_constrained::ConBListInnerConstrained
|
1622 + | impl std::convert::TryFrom<ListOfPatternStringUnconstrained>
|
1623 + | for crate::constrained::list_of_pattern_string_constrained::ListOfPatternStringConstrained
|
1564 1624 | {
|
1565 - | type Error = crate::model::con_b_list_inner_internal::ConstraintViolation;
|
1566 - | fn try_from(value: ConBListInnerUnconstrained) -> std::result::Result<Self, Self::Error> {
|
1625 + | type Error = crate::model::list_of_pattern_string_internal::ConstraintViolation;
|
1626 + | fn try_from(
|
1627 + | value: ListOfPatternStringUnconstrained,
|
1628 + | ) -> std::result::Result<Self, Self::Error> {
|
1567 1629 | let res: ::std::result::Result<
|
1568 - | ::std::vec::Vec<crate::model::ConB>,
|
1569 - | (usize, crate::model::con_b_internal::ConstraintViolation),
|
1630 + | ::std::vec::Vec<crate::model::PatternString>,
|
1631 + | (
|
1632 + | usize,
|
1633 + | crate::model::pattern_string_internal::ConstraintViolation,
|
1634 + | ),
|
1570 1635 | > = value
|
1571 1636 | .0
|
1572 1637 | .into_iter()
|
1573 1638 | .enumerate()
|
1574 1639 | .map(|(idx, inner)| {
|
1575 1640 | inner
|
1576 1641 | .try_into()
|
1577 1642 | .map_err(|inner_violation| (idx, inner_violation))
|
1578 1643 | })
|
1579 1644 | .collect();
|
1580 1645 | let inner =
|
1581 1646 | res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
|
1582 1647 | Ok(Self(inner))
|
1583 1648 | }
|
1584 1649 | }
|
1585 1650 | }
|
1586 - | pub(crate) mod sparse_length_list_unconstrained {
|
1651 + | pub(crate) mod set_of_pattern_string_unconstrained {
|
1587 1652 |
|
1588 1653 | #[derive(Debug, Clone)]
|
1589 - | pub(crate) struct SparseLengthListUnconstrained(
|
1590 - | pub(crate) std::vec::Vec<::std::option::Option<::std::string::String>>,
|
1654 + | pub(crate) struct SetOfPatternStringUnconstrained(
|
1655 + | pub(crate) std::vec::Vec<::std::string::String>,
|
1591 1656 | );
|
1592 1657 |
|
1593 - | impl From<SparseLengthListUnconstrained>
|
1594 - | for crate::constrained::MaybeConstrained<crate::model::SparseLengthList>
|
1658 + | impl From<SetOfPatternStringUnconstrained>
|
1659 + | for crate::constrained::MaybeConstrained<crate::model::SetOfPatternString>
|
1595 1660 | {
|
1596 - | fn from(value: SparseLengthListUnconstrained) -> Self {
|
1661 + | fn from(value: SetOfPatternStringUnconstrained) -> Self {
|
1597 1662 | Self::Unconstrained(value)
|
1598 1663 | }
|
1599 1664 | }
|
1600 - | impl std::convert::TryFrom<SparseLengthListUnconstrained> for crate::model::SparseLengthList {
|
1601 - | type Error = crate::model::sparse_length_list_internal::ConstraintViolation;
|
1665 + | impl std::convert::TryFrom<SetOfPatternStringUnconstrained> for crate::model::SetOfPatternString {
|
1666 + | type Error = crate::model::set_of_pattern_string_internal::ConstraintViolation;
|
1602 1667 | fn try_from(
|
1603 - | value: SparseLengthListUnconstrained,
|
1668 + | value: SetOfPatternStringUnconstrained,
|
1604 1669 | ) -> std::result::Result<Self, Self::Error> {
|
1605 - | let inner = value.0;
|
1670 + | let res: ::std::result::Result<
|
1671 + | ::std::vec::Vec<crate::model::PatternString>,
|
1672 + | (
|
1673 + | usize,
|
1674 + | crate::model::pattern_string_internal::ConstraintViolation,
|
1675 + | ),
|
1676 + | > = value
|
1677 + | .0
|
1678 + | .into_iter()
|
1679 + | .enumerate()
|
1680 + | .map(|(idx, inner)| {
|
1681 + | inner
|
1682 + | .try_into()
|
1683 + | .map_err(|inner_violation| (idx, inner_violation))
|
1684 + | })
|
1685 + | .collect();
|
1686 + | let inner =
|
1687 + | res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
|
1606 1688 | Self::try_from(inner)
|
1607 1689 | }
|
1608 1690 | }
|
1609 1691 | }
|
1610 - | pub(crate) mod sparse_length_map_unconstrained {
|
1692 + | pub(crate) mod list_of_length_pattern_string_unconstrained {
|
1611 1693 |
|
1612 1694 | #[derive(Debug, Clone)]
|
1613 - | pub(crate) struct SparseLengthMapUnconstrained(
|
1614 - | pub(crate) std::collections::HashMap<
|
1615 - | ::std::string::String,
|
1616 - | ::std::option::Option<::std::string::String>,
|
1617 - | >,
|
1695 + | pub(crate) struct ListOfLengthPatternStringUnconstrained(
|
1696 + | pub(crate) std::vec::Vec<::std::string::String>,
|
1618 1697 | );
|
1619 1698 |
|
1620 - | impl From<SparseLengthMapUnconstrained>
|
1621 - | for crate::constrained::MaybeConstrained<crate::model::SparseLengthMap>
|
1622 - | {
|
1623 - | fn from(value: SparseLengthMapUnconstrained) -> Self {
|
1624 - | Self::Unconstrained(value)
|
1625 - | }
|
1626 - | }
|
1627 - | impl std::convert::TryFrom<SparseLengthMapUnconstrained> for crate::model::SparseLengthMap {
|
1628 - | type Error = crate::model::sparse_length_map_internal::ConstraintViolation;
|
1629 - | fn try_from(value: SparseLengthMapUnconstrained) -> std::result::Result<Self, Self::Error> {
|
1630 - | let hm = value.0;
|
1631 - | Self::try_from(hm)
|
1699 + | impl From<ListOfLengthPatternStringUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::list_of_length_pattern_string_constrained::ListOfLengthPatternStringConstrained> {
|
1700 + | fn from(value: ListOfLengthPatternStringUnconstrained) -> Self {
|
1701 + | Self::Unconstrained(value)
|
1702 + | }
|
1703 + | }
|
1704 + | impl std::convert::TryFrom<ListOfLengthPatternStringUnconstrained> for crate::constrained::list_of_length_pattern_string_constrained::ListOfLengthPatternStringConstrained {
|
1705 + | type Error = crate::model::list_of_length_pattern_string_internal::ConstraintViolation;
|
1706 + | fn try_from(value: ListOfLengthPatternStringUnconstrained) -> std::result::Result<Self, Self::Error> {
|
1707 + | let res: ::std::result::Result<::std::vec::Vec<crate::model::LengthPatternString>, (usize, crate::model::length_pattern_string_internal::ConstraintViolation) > = value
|
1708 + | .0
|
1709 + | .into_iter()
|
1710 + | .enumerate()
|
1711 + | .map(|(idx, inner)| {
|
1712 + | inner.try_into().map_err(|inner_violation| (idx, inner_violation))
|
1713 + | })
|
1714 + | .collect();
|
1715 + | let inner = res
|
1716 + |
|
1717 + | .map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
|
1718 + | Ok(Self(inner))
|
1632 1719 | }
|
1633 1720 | }
|
1634 1721 | }
|
1635 - | pub(crate) mod sparse_list_unconstrained {
|
1722 + | pub(crate) mod set_of_length_pattern_string_unconstrained {
|
1636 1723 |
|
1637 1724 | #[derive(Debug, Clone)]
|
1638 - | pub(crate) struct SparseListUnconstrained(
|
1639 - | pub(crate) std::vec::Vec<::std::option::Option<::std::string::String>>,
|
1725 + | pub(crate) struct SetOfLengthPatternStringUnconstrained(
|
1726 + | pub(crate) std::vec::Vec<::std::string::String>,
|
1640 1727 | );
|
1641 1728 |
|
1642 - | impl From<SparseListUnconstrained>
|
1643 - | for crate::constrained::MaybeConstrained<
|
1644 - | crate::constrained::sparse_list_constrained::SparseListConstrained,
|
1645 - | >
|
1729 + | impl From<SetOfLengthPatternStringUnconstrained>
|
1730 + | for crate::constrained::MaybeConstrained<crate::model::SetOfLengthPatternString>
|
1646 1731 | {
|
1647 - | fn from(value: SparseListUnconstrained) -> Self {
|
1732 + | fn from(value: SetOfLengthPatternStringUnconstrained) -> Self {
|
1648 1733 | Self::Unconstrained(value)
|
1649 1734 | }
|
1650 1735 | }
|
1651 - | impl std::convert::TryFrom<SparseListUnconstrained>
|
1652 - | for crate::constrained::sparse_list_constrained::SparseListConstrained
|
1736 + | impl std::convert::TryFrom<SetOfLengthPatternStringUnconstrained>
|
1737 + | for crate::model::SetOfLengthPatternString
|
1653 1738 | {
|
1654 - | type Error = crate::model::sparse_list_internal::ConstraintViolation;
|
1655 - | fn try_from(value: SparseListUnconstrained) -> std::result::Result<Self, Self::Error> {
|
1739 + | type Error = crate::model::set_of_length_pattern_string_internal::ConstraintViolation;
|
1740 + | fn try_from(
|
1741 + | value: SetOfLengthPatternStringUnconstrained,
|
1742 + | ) -> std::result::Result<Self, Self::Error> {
|
1656 1743 | let res: ::std::result::Result<
|
1657 - | ::std::vec::Vec<::std::option::Option<crate::model::LengthString>>,
|
1744 + | ::std::vec::Vec<crate::model::LengthPatternString>,
|
1658 1745 | (
|
1659 1746 | usize,
|
1660 - | crate::model::length_string_internal::ConstraintViolation,
|
1747 + | crate::model::length_pattern_string_internal::ConstraintViolation,
|
1661 1748 | ),
|
1662 1749 | > = value
|
1663 1750 | .0
|
1664 1751 | .into_iter()
|
1665 1752 | .enumerate()
|
1666 1753 | .map(|(idx, inner)| {
|
1667 1754 | inner
|
1668 - | .map(|inner| {
|
1669 - | inner
|
1670 - | .try_into()
|
1671 - | .map_err(|inner_violation| (idx, inner_violation))
|
1672 - | })
|
1673 - | .transpose()
|
1755 + | .try_into()
|
1756 + | .map_err(|inner_violation| (idx, inner_violation))
|
1674 1757 | })
|
1675 1758 | .collect();
|
1676 1759 | let inner =
|
1677 1760 | res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
|
1678 - | Ok(Self(inner))
|
1761 + | Self::try_from(inner)
|
1679 1762 | }
|
1680 1763 | }
|
1681 1764 | }
|
1682 - | pub(crate) mod sparse_map_unconstrained {
|
1765 + | pub(crate) mod con_b_list_inner_unconstrained {
|
1683 1766 |
|
1684 1767 | #[derive(Debug, Clone)]
|
1685 - | pub(crate) struct SparseMapUnconstrained(
|
1686 - | pub(crate) std::collections::HashMap<
|
1687 - | ::std::string::String,
|
1688 - | ::std::option::Option<
|
1689 - | crate::unconstrained::unique_items_list_unconstrained::UniqueItemsListUnconstrained,
|
1690 - | >,
|
1691 - | >,
|
1768 + | pub(crate) struct ConBListInnerUnconstrained(
|
1769 + | pub(crate) std::vec::Vec<crate::model::con_b_internal::Builder>,
|
1692 1770 | );
|
1693 1771 |
|
1694 - | impl From<SparseMapUnconstrained>
|
1772 + | impl From<ConBListInnerUnconstrained>
|
1695 1773 | for crate::constrained::MaybeConstrained<
|
1696 - | crate::constrained::sparse_map_constrained::SparseMapConstrained,
|
1774 + | crate::constrained::con_b_list_inner_constrained::ConBListInnerConstrained,
|
1697 1775 | >
|
1698 1776 | {
|
1699 - | fn from(value: SparseMapUnconstrained) -> Self {
|
1777 + | fn from(value: ConBListInnerUnconstrained) -> Self {
|
1700 1778 | Self::Unconstrained(value)
|
1701 1779 | }
|
1702 1780 | }
|
1703 - | impl std::convert::TryFrom<SparseMapUnconstrained>
|
1704 - | for crate::constrained::sparse_map_constrained::SparseMapConstrained
|
1781 + | impl std::convert::TryFrom<ConBListInnerUnconstrained>
|
1782 + | for crate::constrained::con_b_list_inner_constrained::ConBListInnerConstrained
|
1705 1783 | {
|
1706 - | type Error = crate::model::sparse_map_internal::ConstraintViolation;
|
1707 - | fn try_from(value: SparseMapUnconstrained) -> std::result::Result<Self, Self::Error> {
|
1784 + | type Error = crate::model::con_b_list_inner_internal::ConstraintViolation;
|
1785 + | fn try_from(value: ConBListInnerUnconstrained) -> std::result::Result<Self, Self::Error> {
|
1708 1786 | let res: ::std::result::Result<
|
1709 - | ::std::collections::HashMap<
|
1710 - | ::std::string::String,
|
1711 - | ::std::option::Option<crate::model::UniqueItemsList>,
|
1712 - | >,
|
1713 - | Self::Error,
|
1787 + | ::std::vec::Vec<crate::model::ConB>,
|
1788 + | (usize, crate::model::con_b_internal::ConstraintViolation),
|
1714 1789 | > = value
|
1715 1790 | .0
|
1716 1791 | .into_iter()
|
1717 - | .map(|(k, v)| match v {
|
1718 - | None => Ok((k, None)),
|
1719 - | Some(v) => match crate::model::UniqueItemsList::try_from(v) {
|
1720 - | Ok(v) => Ok((k, Some(v))),
|
1721 - | Err(inner_constraint_violation) => {
|
1722 - | Err(Self::Error::Value(k, inner_constraint_violation))
|
1723 - | }
|
1724 - | },
|
1792 + | .enumerate()
|
1793 + | .map(|(idx, inner)| {
|
1794 + | inner
|
1795 + | .try_into()
|
1796 + | .map_err(|inner_violation| (idx, inner_violation))
|
1725 1797 | })
|
1726 1798 | .collect();
|
1727 - | let hm = res?;
|
1728 - | Ok(Self(hm))
|
1799 + | let inner =
|
1800 + | res.map_err(|(idx, inner_violation)| Self::Error::Member(idx, inner_violation))?;
|
1801 + | Ok(Self(inner))
|
1729 1802 | }
|
1730 1803 | }
|
1731 1804 | }
|
1732 - | pub(crate) mod unique_items_list_unconstrained {
|
1805 + | pub(crate) mod con_b_set_inner_unconstrained {
|
1733 1806 |
|
1734 1807 | #[derive(Debug, Clone)]
|
1735 - | pub(crate) struct UniqueItemsListUnconstrained(pub(crate) std::vec::Vec<::std::string::String>);
|
1808 + | pub(crate) struct ConBSetInnerUnconstrained(pub(crate) std::vec::Vec<::std::string::String>);
|
1736 1809 |
|
1737 - | impl From<UniqueItemsListUnconstrained>
|
1738 - | for crate::constrained::MaybeConstrained<crate::model::UniqueItemsList>
|
1810 + | impl From<ConBSetInnerUnconstrained>
|
1811 + | for crate::constrained::MaybeConstrained<crate::model::ConBSetInner>
|
1739 1812 | {
|
1740 - | fn from(value: UniqueItemsListUnconstrained) -> Self {
|
1813 + | fn from(value: ConBSetInnerUnconstrained) -> Self {
|
1741 1814 | Self::Unconstrained(value)
|
1742 1815 | }
|
1743 1816 | }
|
1744 - | impl std::convert::TryFrom<UniqueItemsListUnconstrained> for crate::model::UniqueItemsList {
|
1745 - | type Error = crate::model::unique_items_list_internal::ConstraintViolation;
|
1746 - | fn try_from(value: UniqueItemsListUnconstrained) -> std::result::Result<Self, Self::Error> {
|
1817 + | impl std::convert::TryFrom<ConBSetInnerUnconstrained> for crate::model::ConBSetInner {
|
1818 + | type Error = crate::model::con_b_set_inner_internal::ConstraintViolation;
|
1819 + | fn try_from(value: ConBSetInnerUnconstrained) -> std::result::Result<Self, Self::Error> {
|
1747 1820 | let inner = value.0;
|
1748 1821 | Self::try_from(inner)
|
1749 1822 | }
|
1750 1823 | }
|
1751 1824 | }
|
1752 - | pub(crate) mod map_of_map_of_list_of_list_of_con_b_unconstrained {
|
1753 - |
|
1754 - | #[derive(Debug, Clone)]
|
1755 - | pub(crate) struct MapOfMapOfListOfListOfConBUnconstrained(pub(crate) std::collections::HashMap<::std::string::String, crate::unconstrained::map_of_list_of_list_of_con_b_unconstrained::MapOfListOfListOfConBUnconstrained>);
|
1756 - |
|
1757 - | impl From<MapOfMapOfListOfListOfConBUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_map_of_list_of_list_of_con_b_constrained::MapOfMapOfListOfListOfConBConstrained> {
|
1758 - | fn from(value: MapOfMapOfListOfListOfConBUnconstrained) -> Self {
|
1759 - | Self::Unconstrained(value)
|
1760 - | }
|
1761 - | }
|
1762 - | impl std::convert::TryFrom<MapOfMapOfListOfListOfConBUnconstrained> for crate::constrained::map_of_map_of_list_of_list_of_con_b_constrained::MapOfMapOfListOfListOfConBConstrained {
|
1763 - | type Error = crate::model::map_of_map_of_list_of_list_of_con_b_internal::ConstraintViolation;
|
1764 - | fn try_from(value: MapOfMapOfListOfListOfConBUnconstrained) -> std::result::Result<Self, Self::Error> {
|
1765 - | let res: ::std::result::Result<::std::collections::HashMap<::std::string::String, crate::constrained::map_of_list_of_list_of_con_b_constrained::MapOfListOfListOfConBConstrained>, Self::Error> = value.0
|
1766 - | .into_iter()
|
1767 - | .map(|(k, v)| {
|
1768 - | match crate::constrained::map_of_list_of_list_of_con_b_constrained::MapOfListOfListOfConBConstrained::try_from(v) {
|
1769 - | Ok(v) => Ok((k, v)),
|
1770 - | Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
|
1771 - | }
|
1772 - | })
|
1773 - | .collect();
|
1774 - | let hm = res?;
|
1775 - | Ok(Self(hm))
|
1776 - | }
|
1777 - | }
|
1778 - | }
|
1779 1825 | pub(crate) mod map_of_list_of_list_of_con_b_unconstrained {
|
1780 1826 |
|
1781 1827 | #[derive(Debug, Clone)]
|
1782 1828 | pub(crate) struct MapOfListOfListOfConBUnconstrained(
|
1783 1829 | pub(crate) std::collections::HashMap<
|
1784 1830 | ::std::string::String,
|
1785 1831 | crate::unconstrained::con_b_list_unconstrained::ConBListUnconstrained,
|
1786 1832 | >,
|
1787 1833 | );
|
1788 1834 |
|
1789 1835 | impl From<MapOfListOfListOfConBUnconstrained> for crate::constrained::MaybeConstrained<crate::constrained::map_of_list_of_list_of_con_b_constrained::MapOfListOfListOfConBConstrained> {
|
1790 1836 | fn from(value: MapOfListOfListOfConBUnconstrained) -> Self {
|
1791 1837 | Self::Unconstrained(value)
|
1792 1838 | }
|
1793 1839 | }
|
1794 1840 | impl std::convert::TryFrom<MapOfListOfListOfConBUnconstrained> for crate::constrained::map_of_list_of_list_of_con_b_constrained::MapOfListOfListOfConBConstrained {
|
1795 1841 | type Error = crate::model::map_of_list_of_list_of_con_b_internal::ConstraintViolation;
|
1796 1842 | fn try_from(value: MapOfListOfListOfConBUnconstrained) -> std::result::Result<Self, Self::Error> {
|
1797 1843 | let res: ::std::result::Result<::std::collections::HashMap<::std::string::String, crate::constrained::con_b_list_constrained::ConBListConstrained>, Self::Error> = value.0
|
1798 1844 | .into_iter()
|
1799 1845 | .map(|(k, v)| {
|
1800 1846 | match crate::constrained::con_b_list_constrained::ConBListConstrained::try_from(v) {
|
1801 1847 | Ok(v) => Ok((k, v)),
|
1802 1848 | Err(inner_constraint_violation) => Err(Self::Error::Value(k, inner_constraint_violation)),
|
1803 1849 | }
|
1804 1850 | })
|
1805 1851 | .collect();
|
1806 1852 | let hm = res?;
|
1807 1853 | Ok(Self(hm))
|
1808 1854 | }
|
1809 1855 | }
|
1810 1856 | }
|
1811 - | pub(crate) mod length_map_unconstrained {
|
1812 - |
|
1813 - | #[derive(Debug, Clone)]
|
1814 - | pub(crate) struct LengthMapUnconstrained(
|
1815 - | pub(crate) std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1816 - | );
|
1817 - |
|
1818 - | impl From<LengthMapUnconstrained>
|
1819 - | for crate::constrained::MaybeConstrained<crate::model::LengthMap>
|
1820 - | {
|
1821 - | fn from(value: LengthMapUnconstrained) -> Self {
|
1822 - | Self::Unconstrained(value)
|
1823 - | }
|
1824 - | }
|
1825 - | impl std::convert::TryFrom<LengthMapUnconstrained> for crate::model::LengthMap {
|
1826 - | type Error = crate::model::length_map_internal::ConstraintViolation;
|
1827 - | fn try_from(value: LengthMapUnconstrained) -> std::result::Result<Self, Self::Error> {
|
1828 - | let hm = value.0;
|
1829 - | Self::try_from(hm)
|
1830 - | }
|
1831 - | }
|
1832 - | }
|
1833 - | pub(crate) mod sensitive_length_list_unconstrained {
|
1834 - |
|
1835 - | #[derive(Debug, Clone)]
|
1836 - | pub(crate) struct SensitiveLengthListUnconstrained(
|
1837 - | pub(crate) std::vec::Vec<crate::model::SensitiveStructure>,
|
1838 - | );
|
1839 - |
|
1840 - | impl From<SensitiveLengthListUnconstrained>
|
1841 - | for crate::constrained::MaybeConstrained<crate::model::SensitiveLengthList>
|
1842 - | {
|
1843 - | fn from(value: SensitiveLengthListUnconstrained) -> Self {
|
1844 - | Self::Unconstrained(value)
|
1845 - | }
|
1846 - | }
|
1847 - | impl std::convert::TryFrom<SensitiveLengthListUnconstrained> for crate::model::SensitiveLengthList {
|
1848 - | type Error = crate::model::sensitive_length_list_internal::ConstraintViolation;
|
1849 - | fn try_from(
|
1850 - | value: SensitiveLengthListUnconstrained,
|
1851 - | ) -> std::result::Result<Self, Self::Error> {
|
1852 - | let inner = value.0;
|
1853 - | Self::try_from(inner)
|
1854 - | }
|
1855 - | }
|
1856 - | }
|
1857 - | pub(crate) mod length_list_unconstrained {
|
1857 + | pub(crate) mod unique_items_list_unconstrained {
|
1858 1858 |
|
1859 1859 | #[derive(Debug, Clone)]
|
1860 - | pub(crate) struct LengthListUnconstrained(pub(crate) std::vec::Vec<::std::string::String>);
|
1860 + | pub(crate) struct UniqueItemsListUnconstrained(pub(crate) std::vec::Vec<::std::string::String>);
|
1861 1861 |
|
1862 - | impl From<LengthListUnconstrained>
|
1863 - | for crate::constrained::MaybeConstrained<crate::model::LengthList>
|
1862 + | impl From<UniqueItemsListUnconstrained>
|
1863 + | for crate::constrained::MaybeConstrained<crate::model::UniqueItemsList>
|
1864 1864 | {
|
1865 - | fn from(value: LengthListUnconstrained) -> Self {
|
1865 + | fn from(value: UniqueItemsListUnconstrained) -> Self {
|
1866 1866 | Self::Unconstrained(value)
|
1867 1867 | }
|
1868 1868 | }
|
1869 - | impl std::convert::TryFrom<LengthListUnconstrained> for crate::model::LengthList {
|
1870 - | type Error = crate::model::length_list_internal::ConstraintViolation;
|
1871 - | fn try_from(value: LengthListUnconstrained) -> std::result::Result<Self, Self::Error> {
|
1869 + | impl std::convert::TryFrom<UniqueItemsListUnconstrained> for crate::model::UniqueItemsList {
|
1870 + | type Error = crate::model::unique_items_list_internal::ConstraintViolation;
|
1871 + | fn try_from(value: UniqueItemsListUnconstrained) -> std::result::Result<Self, Self::Error> {
|
1872 1872 | let inner = value.0;
|
1873 1873 | Self::try_from(inner)
|
1874 1874 | }
|
1875 1875 | }
|
1876 1876 | }
|