1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 - | /// Error type for the `EventStreamsOperation` operation.
|
3 - | /// Each variant represents an error that can occur for the `EventStreamsOperation` operation.
|
2 + | /// Error type for the `ConstrainedShapesOperation` operation.
|
3 + | /// Each variant represents an error that can occur for the `ConstrainedShapesOperation` operation.
|
4 4 | #[derive(::std::fmt::Debug)]
|
5 - | pub enum EventStreamsOperationError {
|
5 + | pub enum ConstrainedShapesOperationError {
|
6 6 | /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
7 7 | ValidationException(crate::error::ValidationException),
|
8 - | #[allow(missing_docs)] // documentation missing in model
|
9 - | EventStreamErrorMessage(crate::error::EventStreamErrorMessage),
|
10 8 | }
|
11 - | impl ::std::fmt::Display for EventStreamsOperationError {
|
9 + | impl ::std::fmt::Display for ConstrainedShapesOperationError {
|
12 10 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
13 11 | match &self {
|
14 - | EventStreamsOperationError::ValidationException(_inner) => _inner.fmt(f),
|
15 - | EventStreamsOperationError::EventStreamErrorMessage(_inner) => _inner.fmt(f),
|
12 + | ConstrainedShapesOperationError::ValidationException(_inner) => _inner.fmt(f),
|
16 13 | }
|
17 14 | }
|
18 15 | }
|
19 - | impl EventStreamsOperationError {
|
20 - | /// Returns `true` if the error kind is `EventStreamsOperationError::ValidationException`.
|
16 + | impl ConstrainedShapesOperationError {
|
17 + | /// Returns `true` if the error kind is `ConstrainedShapesOperationError::ValidationException`.
|
21 18 | pub fn is_validation_exception(&self) -> bool {
|
22 - | matches!(&self, EventStreamsOperationError::ValidationException(_))
|
23 - | }
|
24 - | /// Returns `true` if the error kind is `EventStreamsOperationError::EventStreamErrorMessage`.
|
25 - | pub fn is_event_stream_error_message(&self) -> bool {
|
26 19 | matches!(
|
27 20 | &self,
|
28 - | EventStreamsOperationError::EventStreamErrorMessage(_)
|
21 + | ConstrainedShapesOperationError::ValidationException(_)
|
29 22 | )
|
30 23 | }
|
31 24 | /// Returns the error name string by matching the correct variant.
|
32 25 | pub fn name(&self) -> &'static str {
|
33 26 | match &self {
|
34 - | EventStreamsOperationError::ValidationException(_inner) => _inner.name(),
|
35 - | EventStreamsOperationError::EventStreamErrorMessage(_inner) => _inner.name(),
|
27 + | ConstrainedShapesOperationError::ValidationException(_inner) => _inner.name(),
|
36 28 | }
|
37 29 | }
|
38 30 | }
|
39 - | impl ::std::error::Error for EventStreamsOperationError {
|
31 + | impl ::std::error::Error for ConstrainedShapesOperationError {
|
40 32 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
41 33 | match &self {
|
42 - | EventStreamsOperationError::ValidationException(_inner) => Some(_inner),
|
43 - | EventStreamsOperationError::EventStreamErrorMessage(_inner) => Some(_inner),
|
34 + | ConstrainedShapesOperationError::ValidationException(_inner) => Some(_inner),
|
44 35 | }
|
45 36 | }
|
46 37 | }
|
47 38 | impl ::std::convert::From<crate::error::ValidationException>
|
48 - | for crate::error::EventStreamsOperationError
|
39 + | for crate::error::ConstrainedShapesOperationError
|
49 40 | {
|
50 41 | fn from(
|
51 42 | variant: crate::error::ValidationException,
|
52 - | ) -> crate::error::EventStreamsOperationError {
|
43 + | ) -> crate::error::ConstrainedShapesOperationError {
|
53 44 | Self::ValidationException(variant)
|
54 45 | }
|
55 46 | }
|
56 - | impl ::std::convert::From<crate::error::EventStreamErrorMessage>
|
57 - | for crate::error::EventStreamsOperationError
|
58 - | {
|
59 - | fn from(
|
60 - | variant: crate::error::EventStreamErrorMessage,
|
61 - | ) -> crate::error::EventStreamsOperationError {
|
62 - | Self::EventStreamErrorMessage(variant)
|
63 - | }
|
64 - | }
|
65 - |
|
66 - | #[allow(missing_docs)] // documentation missing in model
|
67 - | #[derive(
|
68 - | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
69 - | )]
|
70 - | pub struct EventStreamErrorMessage {
|
71 - | #[allow(missing_docs)] // documentation missing in model
|
72 - | pub message_content: ::std::option::Option<::std::string::String>,
|
73 - | }
|
74 - | impl EventStreamErrorMessage {
|
75 - | #[allow(missing_docs)] // documentation missing in model
|
76 - | pub fn message_content(&self) -> ::std::option::Option<&str> {
|
77 - | self.message_content.as_deref()
|
78 - | }
|
79 - | }
|
80 - | impl EventStreamErrorMessage {
|
81 - | #[doc(hidden)]
|
82 - | /// Returns the error name.
|
83 - | pub fn name(&self) -> &'static str {
|
84 - | "EventStreamErrorMessage"
|
85 - | }
|
86 - | }
|
87 - | impl ::std::fmt::Display for EventStreamErrorMessage {
|
88 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
89 - | ::std::write!(f, "EventStreamErrorMessage")?;
|
90 - | Ok(())
|
91 - | }
|
92 - | }
|
93 - | impl ::std::error::Error for EventStreamErrorMessage {}
|
94 - | impl EventStreamErrorMessage {
|
95 - | /// Creates a new builder-style object to manufacture [`EventStreamErrorMessage`](crate::error::EventStreamErrorMessage).
|
96 - | pub fn builder() -> crate::error::event_stream_error_message::Builder {
|
97 - | crate::error::event_stream_error_message::Builder::default()
|
98 - | }
|
99 - | }
|
100 - | impl crate::constrained::Constrained for crate::error::EventStreamErrorMessage {
|
101 - | type Unconstrained = crate::error::event_stream_error_message::Builder;
|
102 - | }
|
103 - |
|
104 - | /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
105 - | #[derive(
|
106 - | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
107 - | )]
|
108 - | pub struct ValidationException {
|
109 - | /// A summary of the validation failure.
|
110 - | pub message: ::std::string::String,
|
111 - | /// A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
|
112 - | pub field_list: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
|
113 - | }
|
114 - | impl ValidationException {
|
115 - | /// A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
|
116 - | pub fn field_list(&self) -> ::std::option::Option<&[crate::model::ValidationExceptionField]> {
|
117 - | self.field_list.as_deref()
|
118 - | }
|
119 - | }
|
120 - | impl ValidationException {
|
121 - | /// Returns the error message.
|
122 - | pub fn message(&self) -> &str {
|
123 - | &self.message
|
124 - | }
|
125 - | #[doc(hidden)]
|
126 - | /// Returns the error name.
|
127 - | pub fn name(&self) -> &'static str {
|
128 - | "ValidationException"
|
129 - | }
|
130 - | }
|
131 - | impl ::std::fmt::Display for ValidationException {
|
132 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
133 - | ::std::write!(f, "ValidationException")?;
|
134 - | {
|
135 - | ::std::write!(f, ": {}", &self.message)?;
|
136 - | }
|
137 - | Ok(())
|
138 - | }
|
139 - | }
|
140 - | impl ::std::error::Error for ValidationException {}
|
141 - | impl ValidationException {
|
142 - | /// Creates a new builder-style object to manufacture [`ValidationException`](crate::error::ValidationException).
|
143 - | pub fn builder() -> crate::error::validation_exception::Builder {
|
144 - | crate::error::validation_exception::Builder::default()
|
145 - | }
|
146 - | }
|
147 47 |
|
148 - | /// Error type for the `Event` operation.
|
149 - | /// Each variant represents an error that can occur for the `Event` operation.
|
48 + | /// Error type for the `ConstrainedHttpBoundShapesOperation` operation.
|
49 + | /// Each variant represents an error that can occur for the `ConstrainedHttpBoundShapesOperation` operation.
|
150 50 | #[derive(::std::fmt::Debug)]
|
151 - | pub enum EventError {
|
152 - | #[allow(missing_docs)] // documentation missing in model
|
153 - | EventStreamErrorMessage(crate::error::EventStreamErrorMessage),
|
51 + | pub enum ConstrainedHttpBoundShapesOperationError {
|
52 + | /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
53 + | ValidationException(crate::error::ValidationException),
|
154 54 | }
|
155 - | impl ::std::fmt::Display for EventError {
|
55 + | impl ::std::fmt::Display for ConstrainedHttpBoundShapesOperationError {
|
156 56 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
157 57 | match &self {
|
158 - | EventError::EventStreamErrorMessage(_inner) => _inner.fmt(f),
|
58 + | ConstrainedHttpBoundShapesOperationError::ValidationException(_inner) => _inner.fmt(f),
|
159 59 | }
|
160 60 | }
|
161 61 | }
|
162 - | impl EventError {
|
163 - | /// Returns `true` if the error kind is `EventError::EventStreamErrorMessage`.
|
164 - | pub fn is_event_stream_error_message(&self) -> bool {
|
165 - | matches!(&self, EventError::EventStreamErrorMessage(_))
|
62 + | impl ConstrainedHttpBoundShapesOperationError {
|
63 + | /// Returns `true` if the error kind is `ConstrainedHttpBoundShapesOperationError::ValidationException`.
|
64 + | pub fn is_validation_exception(&self) -> bool {
|
65 + | matches!(
|
66 + | &self,
|
67 + | ConstrainedHttpBoundShapesOperationError::ValidationException(_)
|
68 + | )
|
166 69 | }
|
167 70 | /// Returns the error name string by matching the correct variant.
|
168 71 | pub fn name(&self) -> &'static str {
|
169 72 | match &self {
|
170 - | EventError::EventStreamErrorMessage(_inner) => _inner.name(),
|
73 + | ConstrainedHttpBoundShapesOperationError::ValidationException(_inner) => _inner.name(),
|
171 74 | }
|
172 75 | }
|
173 76 | }
|
174 - | impl ::std::error::Error for EventError {
|
77 + | impl ::std::error::Error for ConstrainedHttpBoundShapesOperationError {
|
175 78 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
176 79 | match &self {
|
177 - | EventError::EventStreamErrorMessage(_inner) => Some(_inner),
|
80 + | ConstrainedHttpBoundShapesOperationError::ValidationException(_inner) => Some(_inner),
|
178 81 | }
|
179 82 | }
|
180 83 | }
|
181 - | impl ::std::convert::From<crate::error::EventStreamErrorMessage> for crate::error::EventError {
|
182 - | fn from(variant: crate::error::EventStreamErrorMessage) -> crate::error::EventError {
|
183 - | Self::EventStreamErrorMessage(variant)
|
84 + | impl ::std::convert::From<crate::error::ValidationException>
|
85 + | for crate::error::ConstrainedHttpBoundShapesOperationError
|
86 + | {
|
87 + | fn from(
|
88 + | variant: crate::error::ValidationException,
|
89 + | ) -> crate::error::ConstrainedHttpBoundShapesOperationError {
|
90 + | Self::ValidationException(variant)
|
184 91 | }
|
185 92 | }
|
186 93 |
|
187 - | /// Error type for the `QueryParamsTargetingMapOfEnumStringOperation` operation.
|
188 - | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfEnumStringOperation` operation.
|
94 + | /// Error type for the `ConstrainedHttpPayloadBoundShapeOperation` operation.
|
95 + | /// Each variant represents an error that can occur for the `ConstrainedHttpPayloadBoundShapeOperation` operation.
|
189 96 | #[derive(::std::fmt::Debug)]
|
190 - | pub enum QueryParamsTargetingMapOfEnumStringOperationError {
|
97 + | pub enum ConstrainedHttpPayloadBoundShapeOperationError {
|
191 98 | /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
192 99 | ValidationException(crate::error::ValidationException),
|
193 100 | }
|
194 - | impl ::std::fmt::Display for QueryParamsTargetingMapOfEnumStringOperationError {
|
101 + | impl ::std::fmt::Display for ConstrainedHttpPayloadBoundShapeOperationError {
|
195 102 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
196 103 | match &self {
|
197 - | QueryParamsTargetingMapOfEnumStringOperationError::ValidationException(_inner) => {
|
104 + | ConstrainedHttpPayloadBoundShapeOperationError::ValidationException(_inner) => {
|
198 105 | _inner.fmt(f)
|
199 106 | }
|
200 107 | }
|
201 108 | }
|
202 109 | }
|
203 - | impl QueryParamsTargetingMapOfEnumStringOperationError {
|
204 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfEnumStringOperationError::ValidationException`.
|
110 + | impl ConstrainedHttpPayloadBoundShapeOperationError {
|
111 + | /// Returns `true` if the error kind is `ConstrainedHttpPayloadBoundShapeOperationError::ValidationException`.
|
205 112 | pub fn is_validation_exception(&self) -> bool {
|
206 113 | matches!(
|
207 114 | &self,
|
208 - | QueryParamsTargetingMapOfEnumStringOperationError::ValidationException(_)
|
115 + | ConstrainedHttpPayloadBoundShapeOperationError::ValidationException(_)
|
209 116 | )
|
210 117 | }
|
211 118 | /// Returns the error name string by matching the correct variant.
|
212 119 | pub fn name(&self) -> &'static str {
|
213 120 | match &self {
|
214 - | QueryParamsTargetingMapOfEnumStringOperationError::ValidationException(_inner) => {
|
121 + | ConstrainedHttpPayloadBoundShapeOperationError::ValidationException(_inner) => {
|
215 122 | _inner.name()
|
216 123 | }
|
217 124 | }
|
218 125 | }
|
219 126 | }
|
220 - | impl ::std::error::Error for QueryParamsTargetingMapOfEnumStringOperationError {
|
127 + | impl ::std::error::Error for ConstrainedHttpPayloadBoundShapeOperationError {
|
221 128 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
222 129 | match &self {
|
223 - | QueryParamsTargetingMapOfEnumStringOperationError::ValidationException(_inner) => {
|
130 + | ConstrainedHttpPayloadBoundShapeOperationError::ValidationException(_inner) => {
|
224 131 | Some(_inner)
|
225 132 | }
|
226 133 | }
|
227 134 | }
|
228 135 | }
|
229 136 | impl ::std::convert::From<crate::error::ValidationException>
|
230 - | for crate::error::QueryParamsTargetingMapOfEnumStringOperationError
|
137 + | for crate::error::ConstrainedHttpPayloadBoundShapeOperationError
|
231 138 | {
|
232 139 | fn from(
|
233 140 | variant: crate::error::ValidationException,
|
234 - | ) -> crate::error::QueryParamsTargetingMapOfEnumStringOperationError {
|
141 + | ) -> crate::error::ConstrainedHttpPayloadBoundShapeOperationError {
|
235 142 | Self::ValidationException(variant)
|
236 143 | }
|
237 144 | }
|
238 145 |
|
239 - | /// Error type for the `HttpPrefixHeadersTargetingLengthMapOperation` operation.
|
240 - | /// Each variant represents an error that can occur for the `HttpPrefixHeadersTargetingLengthMapOperation` operation.
|
146 + | /// Error type for the `ConstrainedRecursiveShapesOperation` operation.
|
147 + | /// Each variant represents an error that can occur for the `ConstrainedRecursiveShapesOperation` operation.
|
241 148 | #[derive(::std::fmt::Debug)]
|
242 - | pub enum HttpPrefixHeadersTargetingLengthMapOperationError {
|
149 + | pub enum ConstrainedRecursiveShapesOperationError {
|
243 150 | /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
244 151 | ValidationException(crate::error::ValidationException),
|
245 152 | }
|
246 - | impl ::std::fmt::Display for HttpPrefixHeadersTargetingLengthMapOperationError {
|
153 + | impl ::std::fmt::Display for ConstrainedRecursiveShapesOperationError {
|
247 154 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
248 155 | match &self {
|
249 - | HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException(_inner) => {
|
250 - | _inner.fmt(f)
|
251 - | }
|
156 + | ConstrainedRecursiveShapesOperationError::ValidationException(_inner) => _inner.fmt(f),
|
252 157 | }
|
253 158 | }
|
254 159 | }
|
255 - | impl HttpPrefixHeadersTargetingLengthMapOperationError {
|
256 - | /// Returns `true` if the error kind is `HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException`.
|
160 + | impl ConstrainedRecursiveShapesOperationError {
|
161 + | /// Returns `true` if the error kind is `ConstrainedRecursiveShapesOperationError::ValidationException`.
|
257 162 | pub fn is_validation_exception(&self) -> bool {
|
258 163 | matches!(
|
259 164 | &self,
|
260 - | HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException(_)
|
165 + | ConstrainedRecursiveShapesOperationError::ValidationException(_)
|
261 166 | )
|
262 167 | }
|
263 168 | /// Returns the error name string by matching the correct variant.
|
264 169 | pub fn name(&self) -> &'static str {
|
265 170 | match &self {
|
266 - | HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException(_inner) => {
|
267 - | _inner.name()
|
268 - | }
|
171 + | ConstrainedRecursiveShapesOperationError::ValidationException(_inner) => _inner.name(),
|
269 172 | }
|
270 173 | }
|
271 174 | }
|
272 - | impl ::std::error::Error for HttpPrefixHeadersTargetingLengthMapOperationError {
|
175 + | impl ::std::error::Error for ConstrainedRecursiveShapesOperationError {
|
273 176 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
274 177 | match &self {
|
275 - | HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException(_inner) => {
|
276 - | Some(_inner)
|
277 - | }
|
178 + | ConstrainedRecursiveShapesOperationError::ValidationException(_inner) => Some(_inner),
|
278 179 | }
|
279 180 | }
|
280 181 | }
|
281 182 | impl ::std::convert::From<crate::error::ValidationException>
|
282 - | for crate::error::HttpPrefixHeadersTargetingLengthMapOperationError
|
183 + | for crate::error::ConstrainedRecursiveShapesOperationError
|
283 184 | {
|
284 185 | fn from(
|
285 186 | variant: crate::error::ValidationException,
|
286 - | ) -> crate::error::HttpPrefixHeadersTargetingLengthMapOperationError {
|
187 + | ) -> crate::error::ConstrainedRecursiveShapesOperationError {
|
287 188 | Self::ValidationException(variant)
|
288 189 | }
|
289 190 | }
|
290 191 |
|
291 - | /// Error type for the `QueryParamsTargetingMapOfListOfLengthPatternStringOperation` operation.
|
292 - | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfListOfLengthPatternStringOperation` operation.
|
192 + | /// Error type for the `QueryParamsTargetingLengthMapOperation` operation.
|
193 + | /// Each variant represents an error that can occur for the `QueryParamsTargetingLengthMapOperation` operation.
|
293 194 | #[derive(::std::fmt::Debug)]
|
294 - | pub enum QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
195 + | pub enum QueryParamsTargetingLengthMapOperationError {
|
295 196 | /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
296 197 | ValidationException(crate::error::ValidationException),
|
297 198 | }
|
298 - | impl ::std::fmt::Display for QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
199 + | impl ::std::fmt::Display for QueryParamsTargetingLengthMapOperationError {
|
299 200 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
300 201 | match &self {
|
301 - | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException(_inner) =>
|
202 + | QueryParamsTargetingLengthMapOperationError::ValidationException(_inner) => {
|
302 203 | _inner.fmt(f)
|
303 - | ,
|
204 + | }
|
304 205 | }
|
305 206 | }
|
306 207 | }
|
307 - | impl QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
308 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException`.
|
208 + | impl QueryParamsTargetingLengthMapOperationError {
|
209 + | /// Returns `true` if the error kind is `QueryParamsTargetingLengthMapOperationError::ValidationException`.
|
309 210 | pub fn is_validation_exception(&self) -> bool {
|
310 211 | matches!(
|
311 212 | &self,
|
312 - | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException(
|
313 - | _
|
314 - | )
|
213 + | QueryParamsTargetingLengthMapOperationError::ValidationException(_)
|
315 214 | )
|
316 215 | }
|
317 216 | /// Returns the error name string by matching the correct variant.
|
318 217 | pub fn name(&self) -> &'static str {
|
319 218 | match &self {
|
320 - | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException(_inner) =>
|
219 + | QueryParamsTargetingLengthMapOperationError::ValidationException(_inner) => {
|
321 220 | _inner.name()
|
322 - | ,
|
221 + | }
|
323 222 | }
|
324 223 | }
|
325 224 | }
|
326 - | impl ::std::error::Error for QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
225 + | impl ::std::error::Error for QueryParamsTargetingLengthMapOperationError {
|
327 226 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
328 227 | match &self {
|
329 - | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException(_inner) =>
|
228 + | QueryParamsTargetingLengthMapOperationError::ValidationException(_inner) => {
|
330 229 | Some(_inner)
|
331 - | ,
|
230 + | }
|
332 231 | }
|
333 232 | }
|
334 233 | }
|
335 234 | impl ::std::convert::From<crate::error::ValidationException>
|
336 - | for crate::error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError
|
235 + | for crate::error::QueryParamsTargetingLengthMapOperationError
|
337 236 | {
|
338 237 | fn from(
|
339 238 | variant: crate::error::ValidationException,
|
340 - | ) -> crate::error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
239 + | ) -> crate::error::QueryParamsTargetingLengthMapOperationError {
|
341 240 | Self::ValidationException(variant)
|
342 241 | }
|
343 242 | }
|
344 243 |
|
345 - | /// Error type for the `QueryParamsTargetingMapOfLengthPatternStringOperation` operation.
|
346 - | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfLengthPatternStringOperation` operation.
|
244 + | /// Error type for the `QueryParamsTargetingMapOfLengthStringOperation` operation.
|
245 + | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfLengthStringOperation` operation.
|
347 246 | #[derive(::std::fmt::Debug)]
|
348 - | pub enum QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
247 + | pub enum QueryParamsTargetingMapOfLengthStringOperationError {
|
349 248 | /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
350 249 | ValidationException(crate::error::ValidationException),
|
351 250 | }
|
352 - | impl ::std::fmt::Display for QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
251 + | impl ::std::fmt::Display for QueryParamsTargetingMapOfLengthStringOperationError {
|
353 252 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
354 253 | match &self {
|
355 - | QueryParamsTargetingMapOfLengthPatternStringOperationError::ValidationException(
|
254 + | QueryParamsTargetingMapOfLengthStringOperationError::ValidationException(_inner) => {
|
255 + | _inner.fmt(f)
|
256 + | }
|
257 + | }
|
258 + | }
|
259 + | }
|
260 + | impl QueryParamsTargetingMapOfLengthStringOperationError {
|
261 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfLengthStringOperationError::ValidationException`.
|
262 + | pub fn is_validation_exception(&self) -> bool {
|
263 + | matches!(
|
264 + | &self,
|
265 + | QueryParamsTargetingMapOfLengthStringOperationError::ValidationException(_)
|
266 + | )
|
267 + | }
|
268 + | /// Returns the error name string by matching the correct variant.
|
269 + | pub fn name(&self) -> &'static str {
|
270 + | match &self {
|
271 + | QueryParamsTargetingMapOfLengthStringOperationError::ValidationException(_inner) => {
|
272 + | _inner.name()
|
273 + | }
|
274 + | }
|
275 + | }
|
276 + | }
|
277 + | impl ::std::error::Error for QueryParamsTargetingMapOfLengthStringOperationError {
|
278 + | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
279 + | match &self {
|
280 + | QueryParamsTargetingMapOfLengthStringOperationError::ValidationException(_inner) => {
|
281 + | Some(_inner)
|
282 + | }
|
283 + | }
|
284 + | }
|
285 + | }
|
286 + | impl ::std::convert::From<crate::error::ValidationException>
|
287 + | for crate::error::QueryParamsTargetingMapOfLengthStringOperationError
|
288 + | {
|
289 + | fn from(
|
290 + | variant: crate::error::ValidationException,
|
291 + | ) -> crate::error::QueryParamsTargetingMapOfLengthStringOperationError {
|
292 + | Self::ValidationException(variant)
|
293 + | }
|
294 + | }
|
295 + |
|
296 + | /// Error type for the `QueryParamsTargetingMapOfListOfLengthStringOperation` operation.
|
297 + | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfListOfLengthStringOperation` operation.
|
298 + | #[derive(::std::fmt::Debug)]
|
299 + | pub enum QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
300 + | /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
301 + | ValidationException(crate::error::ValidationException),
|
302 + | }
|
303 + | impl ::std::fmt::Display for QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
304 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
305 + | match &self {
|
306 + | QueryParamsTargetingMapOfListOfLengthStringOperationError::ValidationException(
|
356 307 | _inner,
|
357 308 | ) => _inner.fmt(f),
|
358 309 | }
|
359 310 | }
|
360 311 | }
|
361 - | impl QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
362 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfLengthPatternStringOperationError::ValidationException`.
|
312 + | impl QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
313 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfLengthStringOperationError::ValidationException`.
|
363 314 | pub fn is_validation_exception(&self) -> bool {
|
364 315 | matches!(
|
365 316 | &self,
|
366 - | QueryParamsTargetingMapOfLengthPatternStringOperationError::ValidationException(_)
|
317 + | QueryParamsTargetingMapOfListOfLengthStringOperationError::ValidationException(_)
|
367 318 | )
|
368 319 | }
|
369 320 | /// Returns the error name string by matching the correct variant.
|
370 321 | pub fn name(&self) -> &'static str {
|
371 322 | match &self {
|
372 - | QueryParamsTargetingMapOfLengthPatternStringOperationError::ValidationException(
|
323 + | QueryParamsTargetingMapOfListOfLengthStringOperationError::ValidationException(
|
373 324 | _inner,
|
374 325 | ) => _inner.name(),
|
375 326 | }
|
376 327 | }
|
377 328 | }
|
378 - | impl ::std::error::Error for QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
329 + | impl ::std::error::Error for QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
379 330 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
380 331 | match &self {
|
381 - | QueryParamsTargetingMapOfLengthPatternStringOperationError::ValidationException(
|
332 + | QueryParamsTargetingMapOfListOfLengthStringOperationError::ValidationException(
|
382 333 | _inner,
|
383 334 | ) => Some(_inner),
|
384 335 | }
|
385 336 | }
|
386 337 | }
|
387 338 | impl ::std::convert::From<crate::error::ValidationException>
|
388 - | for crate::error::QueryParamsTargetingMapOfLengthPatternStringOperationError
|
339 + | for crate::error::QueryParamsTargetingMapOfListOfLengthStringOperationError
|
389 340 | {
|
390 341 | fn from(
|
391 342 | variant: crate::error::ValidationException,
|
392 - | ) -> crate::error::QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
343 + | ) -> crate::error::QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
393 344 | Self::ValidationException(variant)
|
394 345 | }
|
395 346 | }
|
396 347 |
|
397 - | /// Error type for the `QueryParamsTargetingMapOfListOfPatternStringOperation` operation.
|
398 - | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfListOfPatternStringOperation` operation.
|
348 + | /// Error type for the `QueryParamsTargetingMapOfSetOfLengthStringOperation` operation.
|
349 + | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfSetOfLengthStringOperation` operation.
|
399 350 | #[derive(::std::fmt::Debug)]
|
400 - | pub enum QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
351 + | pub enum QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
401 352 | /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
402 353 | ValidationException(crate::error::ValidationException),
|
403 354 | }
|
404 - | impl ::std::fmt::Display for QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
355 + | impl ::std::fmt::Display for QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
405 356 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
406 357 | match &self {
|
407 - | QueryParamsTargetingMapOfListOfPatternStringOperationError::ValidationException(
|
358 + | QueryParamsTargetingMapOfSetOfLengthStringOperationError::ValidationException(
|
408 359 | _inner,
|
409 360 | ) => _inner.fmt(f),
|
410 361 | }
|
411 362 | }
|
412 363 | }
|
413 - | impl QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
414 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfPatternStringOperationError::ValidationException`.
|
364 + | impl QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
365 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfSetOfLengthStringOperationError::ValidationException`.
|
415 366 | pub fn is_validation_exception(&self) -> bool {
|
416 367 | matches!(
|
417 368 | &self,
|
418 - | QueryParamsTargetingMapOfListOfPatternStringOperationError::ValidationException(_)
|
369 + | QueryParamsTargetingMapOfSetOfLengthStringOperationError::ValidationException(_)
|
419 370 | )
|
420 371 | }
|
421 372 | /// Returns the error name string by matching the correct variant.
|
422 373 | pub fn name(&self) -> &'static str {
|
423 374 | match &self {
|
424 - | QueryParamsTargetingMapOfListOfPatternStringOperationError::ValidationException(
|
375 + | QueryParamsTargetingMapOfSetOfLengthStringOperationError::ValidationException(
|
425 376 | _inner,
|
426 377 | ) => _inner.name(),
|
427 378 | }
|
428 379 | }
|
429 380 | }
|
430 - | impl ::std::error::Error for QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
381 + | impl ::std::error::Error for QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
431 382 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
432 383 | match &self {
|
433 - | QueryParamsTargetingMapOfListOfPatternStringOperationError::ValidationException(
|
384 + | QueryParamsTargetingMapOfSetOfLengthStringOperationError::ValidationException(
|
434 385 | _inner,
|
435 386 | ) => Some(_inner),
|
436 387 | }
|
437 388 | }
|
438 389 | }
|
439 390 | impl ::std::convert::From<crate::error::ValidationException>
|
440 - | for crate::error::QueryParamsTargetingMapOfListOfPatternStringOperationError
|
391 + | for crate::error::QueryParamsTargetingMapOfSetOfLengthStringOperationError
|
441 392 | {
|
442 393 | fn from(
|
443 394 | variant: crate::error::ValidationException,
|
444 - | ) -> crate::error::QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
395 + | ) -> crate::error::QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
445 396 | Self::ValidationException(variant)
|
446 397 | }
|
447 398 | }
|
448 399 |
|
449 - | /// Error type for the `QueryParamsTargetingMapOfPatternStringOperation` operation.
|
450 - | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfPatternStringOperation` operation.
|
400 + | /// Error type for the `QueryParamsTargetingMapOfLengthListOfPatternStringOperation` operation.
|
401 + | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfLengthListOfPatternStringOperation` operation.
|
451 402 | #[derive(::std::fmt::Debug)]
|
452 - | pub enum QueryParamsTargetingMapOfPatternStringOperationError {
|
403 + | pub enum QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
453 404 | /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
454 405 | ValidationException(crate::error::ValidationException),
|
455 406 | }
|
456 - | impl ::std::fmt::Display for QueryParamsTargetingMapOfPatternStringOperationError {
|
407 + | impl ::std::fmt::Display for QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
457 408 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
458 409 | match &self {
|
459 - | QueryParamsTargetingMapOfPatternStringOperationError::ValidationException(_inner) => {
|
410 + | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException(_inner) =>
|
460 411 | _inner.fmt(f)
|
461 - | }
|
412 + | ,
|
462 413 | }
|
463 414 | }
|
464 415 | }
|
465 - | impl QueryParamsTargetingMapOfPatternStringOperationError {
|
466 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfPatternStringOperationError::ValidationException`.
|
416 + | impl QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
417 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException`.
|
467 418 | pub fn is_validation_exception(&self) -> bool {
|
468 419 | matches!(
|
469 420 | &self,
|
470 - | QueryParamsTargetingMapOfPatternStringOperationError::ValidationException(_)
|
421 + | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException(
|
422 + | _
|
423 + | )
|
471 424 | )
|
472 425 | }
|
473 426 | /// Returns the error name string by matching the correct variant.
|
474 427 | pub fn name(&self) -> &'static str {
|
475 428 | match &self {
|
476 - | QueryParamsTargetingMapOfPatternStringOperationError::ValidationException(_inner) => {
|
429 + | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException(_inner) =>
|
477 430 | _inner.name()
|
478 - | }
|
431 + | ,
|
479 432 | }
|
480 433 | }
|
481 434 | }
|
482 - | impl ::std::error::Error for QueryParamsTargetingMapOfPatternStringOperationError {
|
435 + | impl ::std::error::Error for QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
483 436 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
484 437 | match &self {
|
485 - | QueryParamsTargetingMapOfPatternStringOperationError::ValidationException(_inner) => {
|
438 + | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException(_inner) =>
|
486 439 | Some(_inner)
|
487 - | }
|
440 + | ,
|
488 441 | }
|
489 442 | }
|
490 443 | }
|
491 444 | impl ::std::convert::From<crate::error::ValidationException>
|
492 - | for crate::error::QueryParamsTargetingMapOfPatternStringOperationError
|
445 + | for crate::error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError
|
493 446 | {
|
494 447 | fn from(
|
495 448 | variant: crate::error::ValidationException,
|
496 - | ) -> crate::error::QueryParamsTargetingMapOfPatternStringOperationError {
|
449 + | ) -> crate::error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
497 450 | Self::ValidationException(variant)
|
498 451 | }
|
499 452 | }
|
500 453 |
|
501 454 | /// Error type for the `QueryParamsTargetingMapOfListOfEnumStringOperation` operation.
|
502 455 | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfListOfEnumStringOperation` operation.
|
503 456 | #[derive(::std::fmt::Debug)]
|
504 457 | pub enum QueryParamsTargetingMapOfListOfEnumStringOperationError {
|
505 458 | /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
506 459 | ValidationException(crate::error::ValidationException),
|
507 460 | }
|
508 461 | impl ::std::fmt::Display for QueryParamsTargetingMapOfListOfEnumStringOperationError {
|
509 462 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
510 463 | match &self {
|
511 464 | QueryParamsTargetingMapOfListOfEnumStringOperationError::ValidationException(
|
512 465 | _inner,
|
513 466 | ) => _inner.fmt(f),
|
514 467 | }
|
515 468 | }
|
516 469 | }
|
517 470 | impl QueryParamsTargetingMapOfListOfEnumStringOperationError {
|
518 471 | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfEnumStringOperationError::ValidationException`.
|
519 472 | pub fn is_validation_exception(&self) -> bool {
|
520 473 | matches!(
|
521 474 | &self,
|
522 475 | QueryParamsTargetingMapOfListOfEnumStringOperationError::ValidationException(_)
|
523 476 | )
|
524 477 | }
|
525 478 | /// Returns the error name string by matching the correct variant.
|
526 479 | pub fn name(&self) -> &'static str {
|
527 480 | match &self {
|
528 481 | QueryParamsTargetingMapOfListOfEnumStringOperationError::ValidationException(
|
529 482 | _inner,
|
530 483 | ) => _inner.name(),
|
531 484 | }
|
532 485 | }
|
533 486 | }
|
534 487 | impl ::std::error::Error for QueryParamsTargetingMapOfListOfEnumStringOperationError {
|
535 488 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
536 489 | match &self {
|
537 490 | QueryParamsTargetingMapOfListOfEnumStringOperationError::ValidationException(
|
538 491 | _inner,
|
539 492 | ) => Some(_inner),
|
540 493 | }
|
541 494 | }
|
542 495 | }
|
543 496 | impl ::std::convert::From<crate::error::ValidationException>
|
544 497 | for crate::error::QueryParamsTargetingMapOfListOfEnumStringOperationError
|
545 498 | {
|
546 499 | fn from(
|
547 500 | variant: crate::error::ValidationException,
|
548 501 | ) -> crate::error::QueryParamsTargetingMapOfListOfEnumStringOperationError {
|
549 502 | Self::ValidationException(variant)
|
550 503 | }
|
551 504 | }
|
552 505 |
|
553 - | /// Error type for the `QueryParamsTargetingMapOfLengthListOfPatternStringOperation` operation.
|
554 - | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfLengthListOfPatternStringOperation` operation.
|
506 + | /// Error type for the `QueryParamsTargetingMapOfPatternStringOperation` operation.
|
507 + | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfPatternStringOperation` operation.
|
555 508 | #[derive(::std::fmt::Debug)]
|
556 - | pub enum QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
509 + | pub enum QueryParamsTargetingMapOfPatternStringOperationError {
|
557 510 | /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
558 511 | ValidationException(crate::error::ValidationException),
|
559 512 | }
|
560 - | impl ::std::fmt::Display for QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
513 + | impl ::std::fmt::Display for QueryParamsTargetingMapOfPatternStringOperationError {
|
561 514 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
562 515 | match &self {
|
563 - | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException(_inner) =>
|
516 + | QueryParamsTargetingMapOfPatternStringOperationError::ValidationException(_inner) => {
|
564 517 | _inner.fmt(f)
|
565 - | ,
|
518 + | }
|
566 519 | }
|
567 520 | }
|
568 521 | }
|
569 - | impl QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
570 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException`.
|
522 + | impl QueryParamsTargetingMapOfPatternStringOperationError {
|
523 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfPatternStringOperationError::ValidationException`.
|
571 524 | pub fn is_validation_exception(&self) -> bool {
|
572 525 | matches!(
|
573 526 | &self,
|
574 - | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException(
|
575 - | _
|
576 - | )
|
527 + | QueryParamsTargetingMapOfPatternStringOperationError::ValidationException(_)
|
577 528 | )
|
578 529 | }
|
579 530 | /// Returns the error name string by matching the correct variant.
|
580 531 | pub fn name(&self) -> &'static str {
|
581 532 | match &self {
|
582 - | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException(_inner) =>
|
533 + | QueryParamsTargetingMapOfPatternStringOperationError::ValidationException(_inner) => {
|
583 534 | _inner.name()
|
584 - | ,
|
535 + | }
|
585 536 | }
|
586 537 | }
|
587 538 | }
|
588 - | impl ::std::error::Error for QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
539 + | impl ::std::error::Error for QueryParamsTargetingMapOfPatternStringOperationError {
|
589 540 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
590 541 | match &self {
|
591 - | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException(_inner) =>
|
542 + | QueryParamsTargetingMapOfPatternStringOperationError::ValidationException(_inner) => {
|
592 543 | Some(_inner)
|
593 - | ,
|
544 + | }
|
594 545 | }
|
595 546 | }
|
596 547 | }
|
597 548 | impl ::std::convert::From<crate::error::ValidationException>
|
598 - | for crate::error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError
|
549 + | for crate::error::QueryParamsTargetingMapOfPatternStringOperationError
|
599 550 | {
|
600 551 | fn from(
|
601 552 | variant: crate::error::ValidationException,
|
602 - | ) -> crate::error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
553 + | ) -> crate::error::QueryParamsTargetingMapOfPatternStringOperationError {
|
603 554 | Self::ValidationException(variant)
|
604 555 | }
|
605 556 | }
|
606 557 |
|
607 - | /// Error type for the `QueryParamsTargetingMapOfSetOfLengthStringOperation` operation.
|
608 - | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfSetOfLengthStringOperation` operation.
|
558 + | /// Error type for the `QueryParamsTargetingMapOfListOfPatternStringOperation` operation.
|
559 + | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfListOfPatternStringOperation` operation.
|
609 560 | #[derive(::std::fmt::Debug)]
|
610 - | pub enum QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
561 + | pub enum QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
611 562 | /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
612 563 | ValidationException(crate::error::ValidationException),
|
613 564 | }
|
614 - | impl ::std::fmt::Display for QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
565 + | impl ::std::fmt::Display for QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
615 566 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
616 567 | match &self {
|
617 - | QueryParamsTargetingMapOfSetOfLengthStringOperationError::ValidationException(
|
568 + | QueryParamsTargetingMapOfListOfPatternStringOperationError::ValidationException(
|
618 569 | _inner,
|
619 570 | ) => _inner.fmt(f),
|
620 571 | }
|
621 572 | }
|
622 573 | }
|
623 - | impl QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
624 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfSetOfLengthStringOperationError::ValidationException`.
|
574 + | impl QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
575 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfPatternStringOperationError::ValidationException`.
|
625 576 | pub fn is_validation_exception(&self) -> bool {
|
626 577 | matches!(
|
627 578 | &self,
|
628 - | QueryParamsTargetingMapOfSetOfLengthStringOperationError::ValidationException(_)
|
579 + | QueryParamsTargetingMapOfListOfPatternStringOperationError::ValidationException(_)
|
629 580 | )
|
630 581 | }
|
631 582 | /// Returns the error name string by matching the correct variant.
|
632 583 | pub fn name(&self) -> &'static str {
|
633 584 | match &self {
|
634 - | QueryParamsTargetingMapOfSetOfLengthStringOperationError::ValidationException(
|
585 + | QueryParamsTargetingMapOfListOfPatternStringOperationError::ValidationException(
|
635 586 | _inner,
|
636 587 | ) => _inner.name(),
|
637 588 | }
|
638 589 | }
|
639 590 | }
|
640 - | impl ::std::error::Error for QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
591 + | impl ::std::error::Error for QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
641 592 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
642 593 | match &self {
|
643 - | QueryParamsTargetingMapOfSetOfLengthStringOperationError::ValidationException(
|
594 + | QueryParamsTargetingMapOfListOfPatternStringOperationError::ValidationException(
|
644 595 | _inner,
|
645 596 | ) => Some(_inner),
|
646 597 | }
|
647 598 | }
|
648 599 | }
|
649 600 | impl ::std::convert::From<crate::error::ValidationException>
|
650 - | for crate::error::QueryParamsTargetingMapOfSetOfLengthStringOperationError
|
601 + | for crate::error::QueryParamsTargetingMapOfListOfPatternStringOperationError
|
651 602 | {
|
652 603 | fn from(
|
653 604 | variant: crate::error::ValidationException,
|
654 - | ) -> crate::error::QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
605 + | ) -> crate::error::QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
655 606 | Self::ValidationException(variant)
|
656 607 | }
|
657 608 | }
|
658 609 |
|
659 - | /// Error type for the `QueryParamsTargetingMapOfListOfLengthStringOperation` operation.
|
660 - | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfListOfLengthStringOperation` operation.
|
610 + | /// Error type for the `QueryParamsTargetingMapOfLengthPatternStringOperation` operation.
|
611 + | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfLengthPatternStringOperation` operation.
|
661 612 | #[derive(::std::fmt::Debug)]
|
662 - | pub enum QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
613 + | pub enum QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
663 614 | /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
664 615 | ValidationException(crate::error::ValidationException),
|
665 616 | }
|
666 - | impl ::std::fmt::Display for QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
617 + | impl ::std::fmt::Display for QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
667 618 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
668 619 | match &self {
|
669 - | QueryParamsTargetingMapOfListOfLengthStringOperationError::ValidationException(
|
620 + | QueryParamsTargetingMapOfLengthPatternStringOperationError::ValidationException(
|
670 621 | _inner,
|
671 622 | ) => _inner.fmt(f),
|
672 623 | }
|
673 624 | }
|
674 625 | }
|
675 - | impl QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
676 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfLengthStringOperationError::ValidationException`.
|
626 + | impl QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
627 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfLengthPatternStringOperationError::ValidationException`.
|
677 628 | pub fn is_validation_exception(&self) -> bool {
|
678 629 | matches!(
|
679 630 | &self,
|
680 - | QueryParamsTargetingMapOfListOfLengthStringOperationError::ValidationException(_)
|
631 + | QueryParamsTargetingMapOfLengthPatternStringOperationError::ValidationException(_)
|
681 632 | )
|
682 633 | }
|
683 634 | /// Returns the error name string by matching the correct variant.
|
684 635 | pub fn name(&self) -> &'static str {
|
685 636 | match &self {
|
686 - | QueryParamsTargetingMapOfListOfLengthStringOperationError::ValidationException(
|
637 + | QueryParamsTargetingMapOfLengthPatternStringOperationError::ValidationException(
|
687 638 | _inner,
|
688 639 | ) => _inner.name(),
|
689 640 | }
|
690 641 | }
|
691 642 | }
|
692 - | impl ::std::error::Error for QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
643 + | impl ::std::error::Error for QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
693 644 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
694 645 | match &self {
|
695 - | QueryParamsTargetingMapOfListOfLengthStringOperationError::ValidationException(
|
646 + | QueryParamsTargetingMapOfLengthPatternStringOperationError::ValidationException(
|
696 647 | _inner,
|
697 648 | ) => Some(_inner),
|
698 649 | }
|
699 650 | }
|
700 651 | }
|
701 652 | impl ::std::convert::From<crate::error::ValidationException>
|
702 - | for crate::error::QueryParamsTargetingMapOfListOfLengthStringOperationError
|
653 + | for crate::error::QueryParamsTargetingMapOfLengthPatternStringOperationError
|
703 654 | {
|
704 655 | fn from(
|
705 656 | variant: crate::error::ValidationException,
|
706 - | ) -> crate::error::QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
657 + | ) -> crate::error::QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
707 658 | Self::ValidationException(variant)
|
708 659 | }
|
709 660 | }
|
710 661 |
|
711 - | /// Error type for the `QueryParamsTargetingMapOfLengthStringOperation` operation.
|
712 - | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfLengthStringOperation` operation.
|
662 + | /// Error type for the `QueryParamsTargetingMapOfListOfLengthPatternStringOperation` operation.
|
663 + | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfListOfLengthPatternStringOperation` operation.
|
713 664 | #[derive(::std::fmt::Debug)]
|
714 - | pub enum QueryParamsTargetingMapOfLengthStringOperationError {
|
665 + | pub enum QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
715 666 | /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
716 667 | ValidationException(crate::error::ValidationException),
|
717 668 | }
|
718 - | impl ::std::fmt::Display for QueryParamsTargetingMapOfLengthStringOperationError {
|
669 + | impl ::std::fmt::Display for QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
719 670 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
720 671 | match &self {
|
721 - | QueryParamsTargetingMapOfLengthStringOperationError::ValidationException(_inner) => {
|
672 + | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException(_inner) =>
|
722 673 | _inner.fmt(f)
|
723 - | }
|
674 + | ,
|
724 675 | }
|
725 676 | }
|
726 677 | }
|
727 - | impl QueryParamsTargetingMapOfLengthStringOperationError {
|
728 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfLengthStringOperationError::ValidationException`.
|
678 + | impl QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
679 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException`.
|
729 680 | pub fn is_validation_exception(&self) -> bool {
|
730 681 | matches!(
|
731 682 | &self,
|
732 - | QueryParamsTargetingMapOfLengthStringOperationError::ValidationException(_)
|
683 + | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException(
|
684 + | _
|
685 + | )
|
733 686 | )
|
734 687 | }
|
735 688 | /// Returns the error name string by matching the correct variant.
|
736 689 | pub fn name(&self) -> &'static str {
|
737 690 | match &self {
|
738 - | QueryParamsTargetingMapOfLengthStringOperationError::ValidationException(_inner) => {
|
691 + | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException(_inner) =>
|
739 692 | _inner.name()
|
740 - | }
|
693 + | ,
|
741 694 | }
|
742 695 | }
|
743 696 | }
|
744 - | impl ::std::error::Error for QueryParamsTargetingMapOfLengthStringOperationError {
|
697 + | impl ::std::error::Error for QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
745 698 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
746 699 | match &self {
|
747 - | QueryParamsTargetingMapOfLengthStringOperationError::ValidationException(_inner) => {
|
700 + | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException(_inner) =>
|
748 701 | Some(_inner)
|
749 - | }
|
702 + | ,
|
750 703 | }
|
751 704 | }
|
752 705 | }
|
753 706 | impl ::std::convert::From<crate::error::ValidationException>
|
754 - | for crate::error::QueryParamsTargetingMapOfLengthStringOperationError
|
707 + | for crate::error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError
|
755 708 | {
|
756 709 | fn from(
|
757 710 | variant: crate::error::ValidationException,
|
758 - | ) -> crate::error::QueryParamsTargetingMapOfLengthStringOperationError {
|
711 + | ) -> crate::error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
759 712 | Self::ValidationException(variant)
|
760 713 | }
|
761 714 | }
|
762 715 |
|
763 - | /// Error type for the `QueryParamsTargetingLengthMapOperation` operation.
|
764 - | /// Each variant represents an error that can occur for the `QueryParamsTargetingLengthMapOperation` operation.
|
716 + | /// Error type for the `HttpPrefixHeadersTargetingLengthMapOperation` operation.
|
717 + | /// Each variant represents an error that can occur for the `HttpPrefixHeadersTargetingLengthMapOperation` operation.
|
765 718 | #[derive(::std::fmt::Debug)]
|
766 - | pub enum QueryParamsTargetingLengthMapOperationError {
|
719 + | pub enum HttpPrefixHeadersTargetingLengthMapOperationError {
|
767 720 | /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
768 721 | ValidationException(crate::error::ValidationException),
|
769 722 | }
|
770 - | impl ::std::fmt::Display for QueryParamsTargetingLengthMapOperationError {
|
723 + | impl ::std::fmt::Display for HttpPrefixHeadersTargetingLengthMapOperationError {
|
771 724 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
772 725 | match &self {
|
773 - | QueryParamsTargetingLengthMapOperationError::ValidationException(_inner) => {
|
726 + | HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException(_inner) => {
|
774 727 | _inner.fmt(f)
|
775 728 | }
|
776 729 | }
|
777 730 | }
|
778 731 | }
|
779 - | impl QueryParamsTargetingLengthMapOperationError {
|
780 - | /// Returns `true` if the error kind is `QueryParamsTargetingLengthMapOperationError::ValidationException`.
|
732 + | impl HttpPrefixHeadersTargetingLengthMapOperationError {
|
733 + | /// Returns `true` if the error kind is `HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException`.
|
781 734 | pub fn is_validation_exception(&self) -> bool {
|
782 735 | matches!(
|
783 736 | &self,
|
784 - | QueryParamsTargetingLengthMapOperationError::ValidationException(_)
|
737 + | HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException(_)
|
785 738 | )
|
786 739 | }
|
787 740 | /// Returns the error name string by matching the correct variant.
|
788 741 | pub fn name(&self) -> &'static str {
|
789 742 | match &self {
|
790 - | QueryParamsTargetingLengthMapOperationError::ValidationException(_inner) => {
|
743 + | HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException(_inner) => {
|
791 744 | _inner.name()
|
792 745 | }
|
793 746 | }
|
794 747 | }
|
795 748 | }
|
796 - | impl ::std::error::Error for QueryParamsTargetingLengthMapOperationError {
|
749 + | impl ::std::error::Error for HttpPrefixHeadersTargetingLengthMapOperationError {
|
797 750 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
798 751 | match &self {
|
799 - | QueryParamsTargetingLengthMapOperationError::ValidationException(_inner) => {
|
752 + | HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException(_inner) => {
|
800 753 | Some(_inner)
|
801 754 | }
|
802 755 | }
|
803 756 | }
|
804 757 | }
|
805 758 | impl ::std::convert::From<crate::error::ValidationException>
|
806 - | for crate::error::QueryParamsTargetingLengthMapOperationError
|
759 + | for crate::error::HttpPrefixHeadersTargetingLengthMapOperationError
|
807 760 | {
|
808 761 | fn from(
|
809 762 | variant: crate::error::ValidationException,
|
810 - | ) -> crate::error::QueryParamsTargetingLengthMapOperationError {
|
763 + | ) -> crate::error::HttpPrefixHeadersTargetingLengthMapOperationError {
|
811 764 | Self::ValidationException(variant)
|
812 765 | }
|
813 766 | }
|
814 767 |
|
815 - | /// Error type for the `ConstrainedRecursiveShapesOperation` operation.
|
816 - | /// Each variant represents an error that can occur for the `ConstrainedRecursiveShapesOperation` operation.
|
768 + | /// Error type for the `QueryParamsTargetingMapOfEnumStringOperation` operation.
|
769 + | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfEnumStringOperation` operation.
|
817 770 | #[derive(::std::fmt::Debug)]
|
818 - | pub enum ConstrainedRecursiveShapesOperationError {
|
771 + | pub enum QueryParamsTargetingMapOfEnumStringOperationError {
|
819 772 | /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
820 773 | ValidationException(crate::error::ValidationException),
|
821 774 | }
|
822 - | impl ::std::fmt::Display for ConstrainedRecursiveShapesOperationError {
|
775 + | impl ::std::fmt::Display for QueryParamsTargetingMapOfEnumStringOperationError {
|
823 776 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
824 777 | match &self {
|
825 - | ConstrainedRecursiveShapesOperationError::ValidationException(_inner) => _inner.fmt(f),
|
778 + | QueryParamsTargetingMapOfEnumStringOperationError::ValidationException(_inner) => {
|
779 + | _inner.fmt(f)
|
780 + | }
|
826 781 | }
|
827 782 | }
|
828 783 | }
|
829 - | impl ConstrainedRecursiveShapesOperationError {
|
830 - | /// Returns `true` if the error kind is `ConstrainedRecursiveShapesOperationError::ValidationException`.
|
784 + | impl QueryParamsTargetingMapOfEnumStringOperationError {
|
785 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfEnumStringOperationError::ValidationException`.
|
831 786 | pub fn is_validation_exception(&self) -> bool {
|
832 787 | matches!(
|
833 788 | &self,
|
834 - | ConstrainedRecursiveShapesOperationError::ValidationException(_)
|
789 + | QueryParamsTargetingMapOfEnumStringOperationError::ValidationException(_)
|
835 790 | )
|
836 791 | }
|
837 792 | /// Returns the error name string by matching the correct variant.
|
838 793 | pub fn name(&self) -> &'static str {
|
839 794 | match &self {
|
840 - | ConstrainedRecursiveShapesOperationError::ValidationException(_inner) => _inner.name(),
|
795 + | QueryParamsTargetingMapOfEnumStringOperationError::ValidationException(_inner) => {
|
796 + | _inner.name()
|
797 + | }
|
841 798 | }
|
842 799 | }
|
843 800 | }
|
844 - | impl ::std::error::Error for ConstrainedRecursiveShapesOperationError {
|
801 + | impl ::std::error::Error for QueryParamsTargetingMapOfEnumStringOperationError {
|
845 802 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
846 803 | match &self {
|
847 - | ConstrainedRecursiveShapesOperationError::ValidationException(_inner) => Some(_inner),
|
804 + | QueryParamsTargetingMapOfEnumStringOperationError::ValidationException(_inner) => {
|
805 + | Some(_inner)
|
806 + | }
|
848 807 | }
|
849 808 | }
|
850 809 | }
|
851 810 | impl ::std::convert::From<crate::error::ValidationException>
|
852 - | for crate::error::ConstrainedRecursiveShapesOperationError
|
811 + | for crate::error::QueryParamsTargetingMapOfEnumStringOperationError
|
853 812 | {
|
854 813 | fn from(
|
855 814 | variant: crate::error::ValidationException,
|
856 - | ) -> crate::error::ConstrainedRecursiveShapesOperationError {
|
815 + | ) -> crate::error::QueryParamsTargetingMapOfEnumStringOperationError {
|
857 816 | Self::ValidationException(variant)
|
858 817 | }
|
859 818 | }
|
860 819 |
|
861 - | /// Error type for the `ConstrainedHttpPayloadBoundShapeOperation` operation.
|
862 - | /// Each variant represents an error that can occur for the `ConstrainedHttpPayloadBoundShapeOperation` operation.
|
820 + | /// Error type for the `EventStreamsOperation` operation.
|
821 + | /// Each variant represents an error that can occur for the `EventStreamsOperation` operation.
|
863 822 | #[derive(::std::fmt::Debug)]
|
864 - | pub enum ConstrainedHttpPayloadBoundShapeOperationError {
|
823 + | pub enum EventStreamsOperationError {
|
865 824 | /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
866 825 | ValidationException(crate::error::ValidationException),
|
826 + | #[allow(missing_docs)] // documentation missing in model
|
827 + | EventStreamErrorMessage(crate::error::EventStreamErrorMessage),
|
867 828 | }
|
868 - | impl ::std::fmt::Display for ConstrainedHttpPayloadBoundShapeOperationError {
|
829 + | impl ::std::fmt::Display for EventStreamsOperationError {
|
869 830 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
870 831 | match &self {
|
871 - | ConstrainedHttpPayloadBoundShapeOperationError::ValidationException(_inner) => {
|
872 - | _inner.fmt(f)
|
873 - | }
|
832 + | EventStreamsOperationError::ValidationException(_inner) => _inner.fmt(f),
|
833 + | EventStreamsOperationError::EventStreamErrorMessage(_inner) => _inner.fmt(f),
|
874 834 | }
|
875 835 | }
|
876 836 | }
|
877 - | impl ConstrainedHttpPayloadBoundShapeOperationError {
|
878 - | /// Returns `true` if the error kind is `ConstrainedHttpPayloadBoundShapeOperationError::ValidationException`.
|
837 + | impl EventStreamsOperationError {
|
838 + | /// Returns `true` if the error kind is `EventStreamsOperationError::ValidationException`.
|
879 839 | pub fn is_validation_exception(&self) -> bool {
|
840 + | matches!(&self, EventStreamsOperationError::ValidationException(_))
|
841 + | }
|
842 + | /// Returns `true` if the error kind is `EventStreamsOperationError::EventStreamErrorMessage`.
|
843 + | pub fn is_event_stream_error_message(&self) -> bool {
|
880 844 | matches!(
|
881 845 | &self,
|
882 - | ConstrainedHttpPayloadBoundShapeOperationError::ValidationException(_)
|
846 + | EventStreamsOperationError::EventStreamErrorMessage(_)
|
883 847 | )
|
884 848 | }
|
885 849 | /// Returns the error name string by matching the correct variant.
|
886 850 | pub fn name(&self) -> &'static str {
|
887 851 | match &self {
|
888 - | ConstrainedHttpPayloadBoundShapeOperationError::ValidationException(_inner) => {
|
889 - | _inner.name()
|
890 - | }
|
852 + | EventStreamsOperationError::ValidationException(_inner) => _inner.name(),
|
853 + | EventStreamsOperationError::EventStreamErrorMessage(_inner) => _inner.name(),
|
891 854 | }
|
892 855 | }
|
893 856 | }
|
894 - | impl ::std::error::Error for ConstrainedHttpPayloadBoundShapeOperationError {
|
857 + | impl ::std::error::Error for EventStreamsOperationError {
|
895 858 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
896 859 | match &self {
|
897 - | ConstrainedHttpPayloadBoundShapeOperationError::ValidationException(_inner) => {
|
898 - | Some(_inner)
|
899 - | }
|
860 + | EventStreamsOperationError::ValidationException(_inner) => Some(_inner),
|
861 + | EventStreamsOperationError::EventStreamErrorMessage(_inner) => Some(_inner),
|
900 862 | }
|
901 863 | }
|
902 864 | }
|
903 865 | impl ::std::convert::From<crate::error::ValidationException>
|
904 - | for crate::error::ConstrainedHttpPayloadBoundShapeOperationError
|
866 + | for crate::error::EventStreamsOperationError
|
905 867 | {
|
906 868 | fn from(
|
907 869 | variant: crate::error::ValidationException,
|
908 - | ) -> crate::error::ConstrainedHttpPayloadBoundShapeOperationError {
|
870 + | ) -> crate::error::EventStreamsOperationError {
|
909 871 | Self::ValidationException(variant)
|
910 872 | }
|
911 873 | }
|
874 + | impl ::std::convert::From<crate::error::EventStreamErrorMessage>
|
875 + | for crate::error::EventStreamsOperationError
|
876 + | {
|
877 + | fn from(
|
878 + | variant: crate::error::EventStreamErrorMessage,
|
879 + | ) -> crate::error::EventStreamsOperationError {
|
880 + | Self::EventStreamErrorMessage(variant)
|
881 + | }
|
882 + | }
|
912 883 |
|
913 - | /// Error type for the `ConstrainedHttpBoundShapesOperation` operation.
|
914 - | /// Each variant represents an error that can occur for the `ConstrainedHttpBoundShapesOperation` operation.
|
915 - | #[derive(::std::fmt::Debug)]
|
916 - | pub enum ConstrainedHttpBoundShapesOperationError {
|
917 - | /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
918 - | ValidationException(crate::error::ValidationException),
|
884 + | /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
885 + | #[derive(
|
886 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
887 + | )]
|
888 + | pub struct ValidationException {
|
889 + | /// A summary of the validation failure.
|
890 + | pub message: ::std::string::String,
|
891 + | /// A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
|
892 + | pub field_list: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
|
919 893 | }
|
920 - | impl ::std::fmt::Display for ConstrainedHttpBoundShapesOperationError {
|
921 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
922 - | match &self {
|
923 - | ConstrainedHttpBoundShapesOperationError::ValidationException(_inner) => _inner.fmt(f),
|
924 - | }
|
894 + | impl ValidationException {
|
895 + | /// A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
|
896 + | pub fn field_list(&self) -> ::std::option::Option<&[crate::model::ValidationExceptionField]> {
|
897 + | self.field_list.as_deref()
|
925 898 | }
|
926 899 | }
|
927 - | impl ConstrainedHttpBoundShapesOperationError {
|
928 - | /// Returns `true` if the error kind is `ConstrainedHttpBoundShapesOperationError::ValidationException`.
|
929 - | pub fn is_validation_exception(&self) -> bool {
|
930 - | matches!(
|
931 - | &self,
|
932 - | ConstrainedHttpBoundShapesOperationError::ValidationException(_)
|
933 - | )
|
900 + | impl ValidationException {
|
901 + | /// Returns the error message.
|
902 + | pub fn message(&self) -> &str {
|
903 + | &self.message
|
934 904 | }
|
935 - | /// Returns the error name string by matching the correct variant.
|
905 + | #[doc(hidden)]
|
906 + | /// Returns the error name.
|
936 907 | pub fn name(&self) -> &'static str {
|
937 - | match &self {
|
938 - | ConstrainedHttpBoundShapesOperationError::ValidationException(_inner) => _inner.name(),
|
908 + | "ValidationException"
|
939 909 | }
|
910 + | }
|
911 + | impl ::std::fmt::Display for ValidationException {
|
912 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
913 + | ::std::write!(f, "ValidationException")?;
|
914 + | {
|
915 + | ::std::write!(f, ": {}", &self.message)?;
|
916 + | }
|
917 + | Ok(())
|
940 918 | }
|
941 919 | }
|
942 - | impl ::std::error::Error for ConstrainedHttpBoundShapesOperationError {
|
943 - | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
944 - | match &self {
|
945 - | ConstrainedHttpBoundShapesOperationError::ValidationException(_inner) => Some(_inner),
|
920 + | impl ::std::error::Error for ValidationException {}
|
921 + | impl ValidationException {
|
922 + | /// Creates a new builder-style object to manufacture [`ValidationException`](crate::error::ValidationException).
|
923 + | pub fn builder() -> crate::error::validation_exception::Builder {
|
924 + | crate::error::validation_exception::Builder::default()
|
946 925 | }
|
926 + | }
|
927 + |
|
928 + | #[allow(missing_docs)] // documentation missing in model
|
929 + | #[derive(
|
930 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
931 + | )]
|
932 + | pub struct EventStreamErrorMessage {
|
933 + | #[allow(missing_docs)] // documentation missing in model
|
934 + | pub message_content: ::std::option::Option<::std::string::String>,
|
935 + | }
|
936 + | impl EventStreamErrorMessage {
|
937 + | #[allow(missing_docs)] // documentation missing in model
|
938 + | pub fn message_content(&self) -> ::std::option::Option<&str> {
|
939 + | self.message_content.as_deref()
|
947 940 | }
|
948 941 | }
|
949 - | impl ::std::convert::From<crate::error::ValidationException>
|
950 - | for crate::error::ConstrainedHttpBoundShapesOperationError
|
951 - | {
|
952 - | fn from(
|
953 - | variant: crate::error::ValidationException,
|
954 - | ) -> crate::error::ConstrainedHttpBoundShapesOperationError {
|
955 - | Self::ValidationException(variant)
|
942 + | impl EventStreamErrorMessage {
|
943 + | #[doc(hidden)]
|
944 + | /// Returns the error name.
|
945 + | pub fn name(&self) -> &'static str {
|
946 + | "EventStreamErrorMessage"
|
947 + | }
|
948 + | }
|
949 + | impl ::std::fmt::Display for EventStreamErrorMessage {
|
950 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
951 + | ::std::write!(f, "EventStreamErrorMessage")?;
|
952 + | Ok(())
|
953 + | }
|
954 + | }
|
955 + | impl ::std::error::Error for EventStreamErrorMessage {}
|
956 + | impl EventStreamErrorMessage {
|
957 + | /// Creates a new builder-style object to manufacture [`EventStreamErrorMessage`](crate::error::EventStreamErrorMessage).
|
958 + | pub fn builder() -> crate::error::event_stream_error_message::Builder {
|
959 + | crate::error::event_stream_error_message::Builder::default()
|
956 960 | }
|
957 961 | }
|
962 + | impl crate::constrained::Constrained for crate::error::EventStreamErrorMessage {
|
963 + | type Unconstrained = crate::error::event_stream_error_message::Builder;
|
964 + | }
|
958 965 |
|
959 - | /// Error type for the `ConstrainedShapesOperation` operation.
|
960 - | /// Each variant represents an error that can occur for the `ConstrainedShapesOperation` operation.
|
966 + | /// Error type for the `Event` operation.
|
967 + | /// Each variant represents an error that can occur for the `Event` operation.
|
961 968 | #[derive(::std::fmt::Debug)]
|
962 - | pub enum ConstrainedShapesOperationError {
|
963 - | /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
|
964 - | ValidationException(crate::error::ValidationException),
|
969 + | pub enum EventError {
|
970 + | #[allow(missing_docs)] // documentation missing in model
|
971 + | EventStreamErrorMessage(crate::error::EventStreamErrorMessage),
|
965 972 | }
|
966 - | impl ::std::fmt::Display for ConstrainedShapesOperationError {
|
973 + | impl ::std::fmt::Display for EventError {
|
967 974 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
968 975 | match &self {
|
969 - | ConstrainedShapesOperationError::ValidationException(_inner) => _inner.fmt(f),
|
976 + | EventError::EventStreamErrorMessage(_inner) => _inner.fmt(f),
|
970 977 | }
|
971 978 | }
|
972 979 | }
|
973 - | impl ConstrainedShapesOperationError {
|
974 - | /// Returns `true` if the error kind is `ConstrainedShapesOperationError::ValidationException`.
|
975 - | pub fn is_validation_exception(&self) -> bool {
|
976 - | matches!(
|
977 - | &self,
|
978 - | ConstrainedShapesOperationError::ValidationException(_)
|
979 - | )
|
980 + | impl EventError {
|
981 + | /// Returns `true` if the error kind is `EventError::EventStreamErrorMessage`.
|
982 + | pub fn is_event_stream_error_message(&self) -> bool {
|
983 + | matches!(&self, EventError::EventStreamErrorMessage(_))
|
980 984 | }
|
981 985 | /// Returns the error name string by matching the correct variant.
|
982 986 | pub fn name(&self) -> &'static str {
|
983 987 | match &self {
|
984 - | ConstrainedShapesOperationError::ValidationException(_inner) => _inner.name(),
|
988 + | EventError::EventStreamErrorMessage(_inner) => _inner.name(),
|
985 989 | }
|
986 990 | }
|
987 991 | }
|
988 - | impl ::std::error::Error for ConstrainedShapesOperationError {
|
992 + | impl ::std::error::Error for EventError {
|
989 993 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
990 994 | match &self {
|
991 - | ConstrainedShapesOperationError::ValidationException(_inner) => Some(_inner),
|
992 - | }
|
995 + | EventError::EventStreamErrorMessage(_inner) => Some(_inner),
|
993 996 | }
|
994 - | }
|
995 - | impl ::std::convert::From<crate::error::ValidationException>
|
996 - | for crate::error::ConstrainedShapesOperationError
|
997 - | {
|
998 - | fn from(
|
999 - | variant: crate::error::ValidationException,
|
1000 - | ) -> crate::error::ConstrainedShapesOperationError {
|
1001 - | Self::ValidationException(variant)
|
1002 997 | }
|
1003 998 | }
|
1004 - | /// See [`EventStreamErrorMessage`](crate::error::EventStreamErrorMessage).
|
1005 - | pub mod event_stream_error_message {
|
1006 - |
|
1007 - | impl ::std::convert::From<Builder> for crate::error::EventStreamErrorMessage {
|
1008 - | fn from(builder: Builder) -> Self {
|
1009 - | builder.build()
|
1010 - | }
|
1011 - | }
|
1012 - | /// A builder for [`EventStreamErrorMessage`](crate::error::EventStreamErrorMessage).
|
1013 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1014 - | pub struct Builder {
|
1015 - | pub(crate) message_content: ::std::option::Option<::std::string::String>,
|
1016 - | }
|
1017 - | impl Builder {
|
1018 - | #[allow(missing_docs)] // documentation missing in model
|
1019 - | pub fn message_content(
|
1020 - | mut self,
|
1021 - | input: ::std::option::Option<::std::string::String>,
|
1022 - | ) -> Self {
|
1023 - | self.message_content = input;
|
1024 - | self
|
1025 - | }
|
1026 - | #[allow(missing_docs)] // documentation missing in model
|
1027 - | pub(crate) fn set_message_content(
|
1028 - | mut self,
|
1029 - | input: Option<impl ::std::convert::Into<::std::string::String>>,
|
1030 - | ) -> Self {
|
1031 - | self.message_content = input.map(|v| v.into());
|
1032 - | self
|
1033 - | }
|
1034 - | /// Consumes the builder and constructs a [`EventStreamErrorMessage`](crate::error::EventStreamErrorMessage).
|
1035 - | pub fn build(self) -> crate::error::EventStreamErrorMessage {
|
1036 - | self.build_enforcing_all_constraints()
|
1037 - | }
|
1038 - | fn build_enforcing_all_constraints(self) -> crate::error::EventStreamErrorMessage {
|
1039 - | crate::error::EventStreamErrorMessage {
|
1040 - | message_content: self.message_content,
|
1041 - | }
|
1042 - | }
|
999 + | impl ::std::convert::From<crate::error::EventStreamErrorMessage> for crate::error::EventError {
|
1000 + | fn from(variant: crate::error::EventStreamErrorMessage) -> crate::error::EventError {
|
1001 + | Self::EventStreamErrorMessage(variant)
|
1043 1002 | }
|
1044 1003 | }
|
1045 1004 | /// See [`ValidationException`](crate::error::ValidationException).
|
1046 1005 | pub mod validation_exception {
|
1047 1006 |
|
1048 1007 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1049 1008 | /// Holds one variant for each of the ways the builder can fail.
|
1050 1009 | #[non_exhaustive]
|
1051 1010 | #[allow(clippy::enum_variant_names)]
|
1052 1011 | pub enum ConstraintViolation {
|