1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 - | #[allow(missing_docs)] // documentation missing in model
|
3 - | #[derive(
|
4 - | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
5 - | )]
|
6 - | pub struct ExtraError {}
|
7 - | impl ExtraError {
|
8 - | #[doc(hidden)]
|
9 - | /// Returns the error name.
|
10 - | pub fn name(&self) -> &'static str {
|
11 - | "ExtraError"
|
12 - | }
|
13 - | }
|
14 - | impl ::std::fmt::Display for ExtraError {
|
15 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
16 - | ::std::write!(f, "ExtraError")?;
|
17 - | Ok(())
|
18 - | }
|
19 - | }
|
20 - | impl ::std::error::Error for ExtraError {}
|
21 - | impl ExtraError {
|
22 - | /// Creates a new builder-style object to manufacture [`ExtraError`](crate::error::ExtraError).
|
23 - | pub fn builder() -> crate::error::extra_error::Builder {
|
24 - | crate::error::extra_error::Builder::default()
|
25 - | }
|
26 - | }
|
27 - |
|
28 - | /// Error type for the `HttpQueryParamsOnlyOperation` operation.
|
29 - | /// Each variant represents an error that can occur for the `HttpQueryParamsOnlyOperation` operation.
|
2 + | /// Error type for the `StringPayload` operation.
|
3 + | /// Each variant represents an error that can occur for the `StringPayload` operation.
|
30 4 | #[derive(::std::fmt::Debug)]
|
31 - | pub enum HttpQueryParamsOnlyOperationError {
|
5 + | pub enum StringPayloadError {
|
32 6 | #[allow(missing_docs)] // documentation missing in model
|
33 7 | ExtraError(crate::error::ExtraError),
|
34 8 | }
|
35 - | impl ::std::fmt::Display for HttpQueryParamsOnlyOperationError {
|
9 + | impl ::std::fmt::Display for StringPayloadError {
|
36 10 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
37 11 | match &self {
|
38 - | HttpQueryParamsOnlyOperationError::ExtraError(_inner) => _inner.fmt(f),
|
12 + | StringPayloadError::ExtraError(_inner) => _inner.fmt(f),
|
39 13 | }
|
40 14 | }
|
41 15 | }
|
42 - | impl HttpQueryParamsOnlyOperationError {
|
43 - | /// Returns `true` if the error kind is `HttpQueryParamsOnlyOperationError::ExtraError`.
|
16 + | impl StringPayloadError {
|
17 + | /// Returns `true` if the error kind is `StringPayloadError::ExtraError`.
|
44 18 | pub fn is_extra_error(&self) -> bool {
|
45 - | matches!(&self, HttpQueryParamsOnlyOperationError::ExtraError(_))
|
19 + | matches!(&self, StringPayloadError::ExtraError(_))
|
46 20 | }
|
47 21 | /// Returns the error name string by matching the correct variant.
|
48 22 | pub fn name(&self) -> &'static str {
|
49 23 | match &self {
|
50 - | HttpQueryParamsOnlyOperationError::ExtraError(_inner) => _inner.name(),
|
24 + | StringPayloadError::ExtraError(_inner) => _inner.name(),
|
51 25 | }
|
52 26 | }
|
53 27 | }
|
54 - | impl ::std::error::Error for HttpQueryParamsOnlyOperationError {
|
28 + | impl ::std::error::Error for StringPayloadError {
|
55 29 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
56 30 | match &self {
|
57 - | HttpQueryParamsOnlyOperationError::ExtraError(_inner) => Some(_inner),
|
31 + | StringPayloadError::ExtraError(_inner) => Some(_inner),
|
58 32 | }
|
59 33 | }
|
60 34 | }
|
61 - | impl ::std::convert::From<crate::error::ExtraError>
|
62 - | for crate::error::HttpQueryParamsOnlyOperationError
|
63 - | {
|
64 - | fn from(variant: crate::error::ExtraError) -> crate::error::HttpQueryParamsOnlyOperationError {
|
35 + | impl ::std::convert::From<crate::error::ExtraError> for crate::error::StringPayloadError {
|
36 + | fn from(variant: crate::error::ExtraError) -> crate::error::StringPayloadError {
|
65 37 | Self::ExtraError(variant)
|
66 38 | }
|
67 39 | }
|
68 40 |
|
69 - | /// Error type for the `QueryPrecedence` operation.
|
70 - | /// Each variant represents an error that can occur for the `QueryPrecedence` operation.
|
41 + | /// Error type for the `PrimitiveIntHeader` operation.
|
42 + | /// Each variant represents an error that can occur for the `PrimitiveIntHeader` operation.
|
71 43 | #[derive(::std::fmt::Debug)]
|
72 - | pub enum QueryPrecedenceError {
|
44 + | pub enum PrimitiveIntHeaderError {
|
45 + | /// 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.
|
46 + | ValidationException(crate::error::ValidationException),
|
73 47 | #[allow(missing_docs)] // documentation missing in model
|
74 48 | ExtraError(crate::error::ExtraError),
|
75 49 | }
|
76 - | impl ::std::fmt::Display for QueryPrecedenceError {
|
50 + | impl ::std::fmt::Display for PrimitiveIntHeaderError {
|
77 51 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
78 52 | match &self {
|
79 - | QueryPrecedenceError::ExtraError(_inner) => _inner.fmt(f),
|
53 + | PrimitiveIntHeaderError::ValidationException(_inner) => _inner.fmt(f),
|
54 + | PrimitiveIntHeaderError::ExtraError(_inner) => _inner.fmt(f),
|
80 55 | }
|
81 56 | }
|
82 57 | }
|
83 - | impl QueryPrecedenceError {
|
84 - | /// Returns `true` if the error kind is `QueryPrecedenceError::ExtraError`.
|
58 + | impl PrimitiveIntHeaderError {
|
59 + | /// Returns `true` if the error kind is `PrimitiveIntHeaderError::ValidationException`.
|
60 + | pub fn is_validation_exception(&self) -> bool {
|
61 + | matches!(&self, PrimitiveIntHeaderError::ValidationException(_))
|
62 + | }
|
63 + | /// Returns `true` if the error kind is `PrimitiveIntHeaderError::ExtraError`.
|
85 64 | pub fn is_extra_error(&self) -> bool {
|
86 - | matches!(&self, QueryPrecedenceError::ExtraError(_))
|
65 + | matches!(&self, PrimitiveIntHeaderError::ExtraError(_))
|
87 66 | }
|
88 67 | /// Returns the error name string by matching the correct variant.
|
89 68 | pub fn name(&self) -> &'static str {
|
90 69 | match &self {
|
91 - | QueryPrecedenceError::ExtraError(_inner) => _inner.name(),
|
70 + | PrimitiveIntHeaderError::ValidationException(_inner) => _inner.name(),
|
71 + | PrimitiveIntHeaderError::ExtraError(_inner) => _inner.name(),
|
92 72 | }
|
93 73 | }
|
94 74 | }
|
95 - | impl ::std::error::Error for QueryPrecedenceError {
|
75 + | impl ::std::error::Error for PrimitiveIntHeaderError {
|
96 76 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
97 77 | match &self {
|
98 - | QueryPrecedenceError::ExtraError(_inner) => Some(_inner),
|
78 + | PrimitiveIntHeaderError::ValidationException(_inner) => Some(_inner),
|
79 + | PrimitiveIntHeaderError::ExtraError(_inner) => Some(_inner),
|
99 80 | }
|
100 81 | }
|
101 82 | }
|
102 - | impl ::std::convert::From<crate::error::ExtraError> for crate::error::QueryPrecedenceError {
|
103 - | fn from(variant: crate::error::ExtraError) -> crate::error::QueryPrecedenceError {
|
83 + | impl ::std::convert::From<crate::error::ValidationException>
|
84 + | for crate::error::PrimitiveIntHeaderError
|
85 + | {
|
86 + | fn from(variant: crate::error::ValidationException) -> crate::error::PrimitiveIntHeaderError {
|
87 + | Self::ValidationException(variant)
|
88 + | }
|
89 + | }
|
90 + | impl ::std::convert::From<crate::error::ExtraError> for crate::error::PrimitiveIntHeaderError {
|
91 + | fn from(variant: crate::error::ExtraError) -> crate::error::PrimitiveIntHeaderError {
|
104 92 | Self::ExtraError(variant)
|
105 93 | }
|
106 94 | }
|
107 95 |
|
108 - | /// Error type for the `EmptyStructWithContentOnWireOp` operation.
|
109 - | /// Each variant represents an error that can occur for the `EmptyStructWithContentOnWireOp` operation.
|
96 + | /// Error type for the `EnumQuery` operation.
|
97 + | /// Each variant represents an error that can occur for the `EnumQuery` operation.
|
110 98 | #[derive(::std::fmt::Debug)]
|
111 - | pub enum EmptyStructWithContentOnWireOpError {
|
99 + | pub enum EnumQueryError {
|
100 + | /// 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.
|
101 + | ValidationException(crate::error::ValidationException),
|
112 102 | #[allow(missing_docs)] // documentation missing in model
|
113 103 | ExtraError(crate::error::ExtraError),
|
114 104 | }
|
115 - | impl ::std::fmt::Display for EmptyStructWithContentOnWireOpError {
|
105 + | impl ::std::fmt::Display for EnumQueryError {
|
116 106 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
117 107 | match &self {
|
118 - | EmptyStructWithContentOnWireOpError::ExtraError(_inner) => _inner.fmt(f),
|
108 + | EnumQueryError::ValidationException(_inner) => _inner.fmt(f),
|
109 + | EnumQueryError::ExtraError(_inner) => _inner.fmt(f),
|
119 110 | }
|
120 111 | }
|
121 112 | }
|
122 - | impl EmptyStructWithContentOnWireOpError {
|
123 - | /// Returns `true` if the error kind is `EmptyStructWithContentOnWireOpError::ExtraError`.
|
113 + | impl EnumQueryError {
|
114 + | /// Returns `true` if the error kind is `EnumQueryError::ValidationException`.
|
115 + | pub fn is_validation_exception(&self) -> bool {
|
116 + | matches!(&self, EnumQueryError::ValidationException(_))
|
117 + | }
|
118 + | /// Returns `true` if the error kind is `EnumQueryError::ExtraError`.
|
124 119 | pub fn is_extra_error(&self) -> bool {
|
125 - | matches!(&self, EmptyStructWithContentOnWireOpError::ExtraError(_))
|
120 + | matches!(&self, EnumQueryError::ExtraError(_))
|
126 121 | }
|
127 122 | /// Returns the error name string by matching the correct variant.
|
128 123 | pub fn name(&self) -> &'static str {
|
129 124 | match &self {
|
130 - | EmptyStructWithContentOnWireOpError::ExtraError(_inner) => _inner.name(),
|
125 + | EnumQueryError::ValidationException(_inner) => _inner.name(),
|
126 + | EnumQueryError::ExtraError(_inner) => _inner.name(),
|
131 127 | }
|
132 128 | }
|
133 129 | }
|
134 - | impl ::std::error::Error for EmptyStructWithContentOnWireOpError {
|
130 + | impl ::std::error::Error for EnumQueryError {
|
135 131 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
136 132 | match &self {
|
137 - | EmptyStructWithContentOnWireOpError::ExtraError(_inner) => Some(_inner),
|
133 + | EnumQueryError::ValidationException(_inner) => Some(_inner),
|
134 + | EnumQueryError::ExtraError(_inner) => Some(_inner),
|
138 135 | }
|
139 136 | }
|
140 137 | }
|
141 - | impl ::std::convert::From<crate::error::ExtraError>
|
142 - | for crate::error::EmptyStructWithContentOnWireOpError
|
143 - | {
|
144 - | fn from(
|
145 - | variant: crate::error::ExtraError,
|
146 - | ) -> crate::error::EmptyStructWithContentOnWireOpError {
|
138 + | impl ::std::convert::From<crate::error::ValidationException> for crate::error::EnumQueryError {
|
139 + | fn from(variant: crate::error::ValidationException) -> crate::error::EnumQueryError {
|
140 + | Self::ValidationException(variant)
|
141 + | }
|
142 + | }
|
143 + | impl ::std::convert::From<crate::error::ExtraError> for crate::error::EnumQueryError {
|
144 + | fn from(variant: crate::error::ExtraError) -> crate::error::EnumQueryError {
|
147 145 | Self::ExtraError(variant)
|
148 146 | }
|
149 147 | }
|
150 148 |
|
151 - | /// Error type for the `CaseInsensitiveErrorOperation` operation.
|
152 - | /// Each variant represents an error that can occur for the `CaseInsensitiveErrorOperation` operation.
|
149 + | /// Error type for the `StatusResponse` operation.
|
150 + | /// Each variant represents an error that can occur for the `StatusResponse` operation.
|
153 151 | #[derive(::std::fmt::Debug)]
|
154 - | pub enum CaseInsensitiveErrorOperationError {
|
155 - | #[allow(missing_docs)] // documentation missing in model
|
156 - | CaseInsensitiveError(crate::error::CaseInsensitiveError),
|
152 + | pub enum StatusResponseError {
|
157 153 | #[allow(missing_docs)] // documentation missing in model
|
158 154 | ExtraError(crate::error::ExtraError),
|
159 155 | }
|
160 - | impl ::std::fmt::Display for CaseInsensitiveErrorOperationError {
|
156 + | impl ::std::fmt::Display for StatusResponseError {
|
161 157 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
162 158 | match &self {
|
163 - | CaseInsensitiveErrorOperationError::CaseInsensitiveError(_inner) => _inner.fmt(f),
|
164 - | CaseInsensitiveErrorOperationError::ExtraError(_inner) => _inner.fmt(f),
|
159 + | StatusResponseError::ExtraError(_inner) => _inner.fmt(f),
|
165 160 | }
|
166 161 | }
|
167 162 | }
|
168 - | impl CaseInsensitiveErrorOperationError {
|
169 - | /// Returns `true` if the error kind is `CaseInsensitiveErrorOperationError::CaseInsensitiveError`.
|
170 - | pub fn is_case_insensitive_error(&self) -> bool {
|
171 - | matches!(
|
172 - | &self,
|
173 - | CaseInsensitiveErrorOperationError::CaseInsensitiveError(_)
|
174 - | )
|
175 - | }
|
176 - | /// Returns `true` if the error kind is `CaseInsensitiveErrorOperationError::ExtraError`.
|
163 + | impl StatusResponseError {
|
164 + | /// Returns `true` if the error kind is `StatusResponseError::ExtraError`.
|
177 165 | pub fn is_extra_error(&self) -> bool {
|
178 - | matches!(&self, CaseInsensitiveErrorOperationError::ExtraError(_))
|
166 + | matches!(&self, StatusResponseError::ExtraError(_))
|
179 167 | }
|
180 168 | /// Returns the error name string by matching the correct variant.
|
181 169 | pub fn name(&self) -> &'static str {
|
182 170 | match &self {
|
183 - | CaseInsensitiveErrorOperationError::CaseInsensitiveError(_inner) => _inner.name(),
|
184 - | CaseInsensitiveErrorOperationError::ExtraError(_inner) => _inner.name(),
|
171 + | StatusResponseError::ExtraError(_inner) => _inner.name(),
|
185 172 | }
|
186 173 | }
|
187 174 | }
|
188 - | impl ::std::error::Error for CaseInsensitiveErrorOperationError {
|
175 + | impl ::std::error::Error for StatusResponseError {
|
189 176 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
190 177 | match &self {
|
191 - | CaseInsensitiveErrorOperationError::CaseInsensitiveError(_inner) => Some(_inner),
|
192 - | CaseInsensitiveErrorOperationError::ExtraError(_inner) => Some(_inner),
|
193 - | }
|
178 + | StatusResponseError::ExtraError(_inner) => Some(_inner),
|
194 179 | }
|
195 - | }
|
196 - | impl ::std::convert::From<crate::error::CaseInsensitiveError>
|
197 - | for crate::error::CaseInsensitiveErrorOperationError
|
198 - | {
|
199 - | fn from(
|
200 - | variant: crate::error::CaseInsensitiveError,
|
201 - | ) -> crate::error::CaseInsensitiveErrorOperationError {
|
202 - | Self::CaseInsensitiveError(variant)
|
203 180 | }
|
204 181 | }
|
205 - | impl ::std::convert::From<crate::error::ExtraError>
|
206 - | for crate::error::CaseInsensitiveErrorOperationError
|
207 - | {
|
208 - | fn from(variant: crate::error::ExtraError) -> crate::error::CaseInsensitiveErrorOperationError {
|
182 + | impl ::std::convert::From<crate::error::ExtraError> for crate::error::StatusResponseError {
|
183 + | fn from(variant: crate::error::ExtraError) -> crate::error::StatusResponseError {
|
209 184 | Self::ExtraError(variant)
|
210 185 | }
|
211 186 | }
|
212 187 |
|
213 - | #[allow(missing_docs)] // documentation missing in model
|
214 - | #[derive(
|
215 - | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
216 - | )]
|
217 - | pub struct CaseInsensitiveError {
|
188 + | /// Error type for the `MapWithEnumKeyOp` operation.
|
189 + | /// Each variant represents an error that can occur for the `MapWithEnumKeyOp` operation.
|
190 + | #[derive(::std::fmt::Debug)]
|
191 + | pub enum MapWithEnumKeyOpError {
|
192 + | /// 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.
|
193 + | ValidationException(crate::error::ValidationException),
|
218 194 | #[allow(missing_docs)] // documentation missing in model
|
219 - | pub message: ::std::option::Option<::std::string::String>,
|
195 + | ExtraError(crate::error::ExtraError),
|
220 196 | }
|
221 - | impl CaseInsensitiveError {
|
222 - | /// Returns the error message.
|
223 - | pub fn message(&self) -> ::std::option::Option<&str> {
|
224 - | self.message.as_deref()
|
197 + | impl ::std::fmt::Display for MapWithEnumKeyOpError {
|
198 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
199 + | match &self {
|
200 + | MapWithEnumKeyOpError::ValidationException(_inner) => _inner.fmt(f),
|
201 + | MapWithEnumKeyOpError::ExtraError(_inner) => _inner.fmt(f),
|
225 202 | }
|
226 - | #[doc(hidden)]
|
227 - | /// Returns the error name.
|
203 + | }
|
204 + | }
|
205 + | impl MapWithEnumKeyOpError {
|
206 + | /// Returns `true` if the error kind is `MapWithEnumKeyOpError::ValidationException`.
|
207 + | pub fn is_validation_exception(&self) -> bool {
|
208 + | matches!(&self, MapWithEnumKeyOpError::ValidationException(_))
|
209 + | }
|
210 + | /// Returns `true` if the error kind is `MapWithEnumKeyOpError::ExtraError`.
|
211 + | pub fn is_extra_error(&self) -> bool {
|
212 + | matches!(&self, MapWithEnumKeyOpError::ExtraError(_))
|
213 + | }
|
214 + | /// Returns the error name string by matching the correct variant.
|
228 215 | pub fn name(&self) -> &'static str {
|
229 - | "CaseInsensitiveError"
|
216 + | match &self {
|
217 + | MapWithEnumKeyOpError::ValidationException(_inner) => _inner.name(),
|
218 + | MapWithEnumKeyOpError::ExtraError(_inner) => _inner.name(),
|
219 + | }
|
230 220 | }
|
231 221 | }
|
232 - | impl ::std::fmt::Display for CaseInsensitiveError {
|
233 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
234 - | ::std::write!(f, "CaseInsensitiveError")?;
|
235 - | if let ::std::option::Option::Some(inner_1) = &self.message {
|
236 - | {
|
237 - | ::std::write!(f, ": {inner_1}")?;
|
222 + | impl ::std::error::Error for MapWithEnumKeyOpError {
|
223 + | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
224 + | match &self {
|
225 + | MapWithEnumKeyOpError::ValidationException(_inner) => Some(_inner),
|
226 + | MapWithEnumKeyOpError::ExtraError(_inner) => Some(_inner),
|
238 227 | }
|
239 228 | }
|
240 - | Ok(())
|
229 + | }
|
230 + | impl ::std::convert::From<crate::error::ValidationException>
|
231 + | for crate::error::MapWithEnumKeyOpError
|
232 + | {
|
233 + | fn from(variant: crate::error::ValidationException) -> crate::error::MapWithEnumKeyOpError {
|
234 + | Self::ValidationException(variant)
|
241 235 | }
|
242 236 | }
|
243 - | impl ::std::error::Error for CaseInsensitiveError {}
|
244 - | impl CaseInsensitiveError {
|
245 - | /// Creates a new builder-style object to manufacture [`CaseInsensitiveError`](crate::error::CaseInsensitiveError).
|
246 - | pub fn builder() -> crate::error::case_insensitive_error::Builder {
|
247 - | crate::error::case_insensitive_error::Builder::default()
|
237 + | impl ::std::convert::From<crate::error::ExtraError> for crate::error::MapWithEnumKeyOpError {
|
238 + | fn from(variant: crate::error::ExtraError) -> crate::error::MapWithEnumKeyOpError {
|
239 + | Self::ExtraError(variant)
|
248 240 | }
|
249 241 | }
|
250 242 |
|
251 - | /// Error type for the `NullInNonSparse` operation.
|
252 - | /// Each variant represents an error that can occur for the `NullInNonSparse` operation.
|
243 + | /// Error type for the `PrimitiveIntOp` operation.
|
244 + | /// Each variant represents an error that can occur for the `PrimitiveIntOp` operation.
|
253 245 | #[derive(::std::fmt::Debug)]
|
254 - | pub enum NullInNonSparseError {
|
246 + | pub enum PrimitiveIntOpError {
|
255 247 | #[allow(missing_docs)] // documentation missing in model
|
256 248 | ExtraError(crate::error::ExtraError),
|
257 249 | }
|
258 - | impl ::std::fmt::Display for NullInNonSparseError {
|
250 + | impl ::std::fmt::Display for PrimitiveIntOpError {
|
259 251 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
260 252 | match &self {
|
261 - | NullInNonSparseError::ExtraError(_inner) => _inner.fmt(f),
|
253 + | PrimitiveIntOpError::ExtraError(_inner) => _inner.fmt(f),
|
262 254 | }
|
263 255 | }
|
264 256 | }
|
265 - | impl NullInNonSparseError {
|
266 - | /// Returns `true` if the error kind is `NullInNonSparseError::ExtraError`.
|
257 + | impl PrimitiveIntOpError {
|
258 + | /// Returns `true` if the error kind is `PrimitiveIntOpError::ExtraError`.
|
267 259 | pub fn is_extra_error(&self) -> bool {
|
268 - | matches!(&self, NullInNonSparseError::ExtraError(_))
|
260 + | matches!(&self, PrimitiveIntOpError::ExtraError(_))
|
269 261 | }
|
270 262 | /// Returns the error name string by matching the correct variant.
|
271 263 | pub fn name(&self) -> &'static str {
|
272 264 | match &self {
|
273 - | NullInNonSparseError::ExtraError(_inner) => _inner.name(),
|
265 + | PrimitiveIntOpError::ExtraError(_inner) => _inner.name(),
|
274 266 | }
|
275 267 | }
|
276 268 | }
|
277 - | impl ::std::error::Error for NullInNonSparseError {
|
269 + | impl ::std::error::Error for PrimitiveIntOpError {
|
278 270 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
279 271 | match &self {
|
280 - | NullInNonSparseError::ExtraError(_inner) => Some(_inner),
|
272 + | PrimitiveIntOpError::ExtraError(_inner) => Some(_inner),
|
281 273 | }
|
282 274 | }
|
283 275 | }
|
284 - | impl ::std::convert::From<crate::error::ExtraError> for crate::error::NullInNonSparseError {
|
285 - | fn from(variant: crate::error::ExtraError) -> crate::error::NullInNonSparseError {
|
276 + | impl ::std::convert::From<crate::error::ExtraError> for crate::error::PrimitiveIntOpError {
|
277 + | fn from(variant: crate::error::ExtraError) -> crate::error::PrimitiveIntOpError {
|
286 278 | Self::ExtraError(variant)
|
287 279 | }
|
288 280 | }
|
289 281 |
|
290 282 | /// Error type for the `EscapedStringValues` operation.
|
291 283 | /// Each variant represents an error that can occur for the `EscapedStringValues` operation.
|
292 284 | #[derive(::std::fmt::Debug)]
|
293 285 | pub enum EscapedStringValuesError {
|
294 286 | /// 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.
|
295 287 | ValidationException(crate::error::ValidationException),
|
296 288 | #[allow(missing_docs)] // documentation missing in model
|
297 289 | ExtraError(crate::error::ExtraError),
|
298 290 | }
|
299 291 | impl ::std::fmt::Display for EscapedStringValuesError {
|
300 292 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
301 293 | match &self {
|
302 294 | EscapedStringValuesError::ValidationException(_inner) => _inner.fmt(f),
|
303 295 | EscapedStringValuesError::ExtraError(_inner) => _inner.fmt(f),
|
304 296 | }
|
305 297 | }
|
306 298 | }
|
307 299 | impl EscapedStringValuesError {
|
308 300 | /// Returns `true` if the error kind is `EscapedStringValuesError::ValidationException`.
|
309 301 | pub fn is_validation_exception(&self) -> bool {
|
310 302 | matches!(&self, EscapedStringValuesError::ValidationException(_))
|
311 303 | }
|
312 304 | /// Returns `true` if the error kind is `EscapedStringValuesError::ExtraError`.
|
313 305 | pub fn is_extra_error(&self) -> bool {
|
314 306 | matches!(&self, EscapedStringValuesError::ExtraError(_))
|
315 307 | }
|
316 308 | /// Returns the error name string by matching the correct variant.
|
317 309 | pub fn name(&self) -> &'static str {
|
318 310 | match &self {
|
319 311 | EscapedStringValuesError::ValidationException(_inner) => _inner.name(),
|
320 312 | EscapedStringValuesError::ExtraError(_inner) => _inner.name(),
|
321 313 | }
|
322 314 | }
|
323 315 | }
|
324 316 | impl ::std::error::Error for EscapedStringValuesError {
|
325 317 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
326 318 | match &self {
|
327 319 | EscapedStringValuesError::ValidationException(_inner) => Some(_inner),
|
328 320 | EscapedStringValuesError::ExtraError(_inner) => Some(_inner),
|
329 321 | }
|
330 322 | }
|
331 323 | }
|
332 324 | impl ::std::convert::From<crate::error::ValidationException>
|
333 325 | for crate::error::EscapedStringValuesError
|
334 326 | {
|
335 327 | fn from(variant: crate::error::ValidationException) -> crate::error::EscapedStringValuesError {
|
336 328 | Self::ValidationException(variant)
|
337 329 | }
|
338 330 | }
|
339 331 | impl ::std::convert::From<crate::error::ExtraError> for crate::error::EscapedStringValuesError {
|
340 332 | fn from(variant: crate::error::ExtraError) -> crate::error::EscapedStringValuesError {
|
341 333 | Self::ExtraError(variant)
|
342 334 | }
|
343 335 | }
|
344 336 |
|
345 - | /// 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.
|
346 - | #[derive(
|
347 - | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
348 - | )]
|
349 - | pub struct ValidationException {
|
350 - | /// A summary of the validation failure.
|
351 - | pub message: ::std::string::String,
|
352 - | /// 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.
|
353 - | pub field_list: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
|
354 - | }
|
355 - | impl ValidationException {
|
356 - | /// 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.
|
357 - | pub fn field_list(&self) -> ::std::option::Option<&[crate::model::ValidationExceptionField]> {
|
358 - | self.field_list.as_deref()
|
359 - | }
|
360 - | }
|
361 - | impl ValidationException {
|
362 - | /// Returns the error message.
|
363 - | pub fn message(&self) -> &str {
|
364 - | &self.message
|
365 - | }
|
366 - | #[doc(hidden)]
|
367 - | /// Returns the error name.
|
368 - | pub fn name(&self) -> &'static str {
|
369 - | "ValidationException"
|
370 - | }
|
371 - | }
|
372 - | impl ::std::fmt::Display for ValidationException {
|
373 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
374 - | ::std::write!(f, "ValidationException")?;
|
375 - | {
|
376 - | ::std::write!(f, ": {}", &self.message)?;
|
377 - | }
|
378 - | Ok(())
|
379 - | }
|
380 - | }
|
381 - | impl ::std::error::Error for ValidationException {}
|
382 - | impl ValidationException {
|
383 - | /// Creates a new builder-style object to manufacture [`ValidationException`](crate::error::ValidationException).
|
384 - | pub fn builder() -> crate::error::validation_exception::Builder {
|
385 - | crate::error::validation_exception::Builder::default()
|
386 - | }
|
387 - | }
|
388 - |
|
389 - | /// Error type for the `PrimitiveIntOp` operation.
|
390 - | /// Each variant represents an error that can occur for the `PrimitiveIntOp` operation.
|
337 + | /// Error type for the `NullInNonSparse` operation.
|
338 + | /// Each variant represents an error that can occur for the `NullInNonSparse` operation.
|
391 339 | #[derive(::std::fmt::Debug)]
|
392 - | pub enum PrimitiveIntOpError {
|
340 + | pub enum NullInNonSparseError {
|
393 341 | #[allow(missing_docs)] // documentation missing in model
|
394 342 | ExtraError(crate::error::ExtraError),
|
395 343 | }
|
396 - | impl ::std::fmt::Display for PrimitiveIntOpError {
|
344 + | impl ::std::fmt::Display for NullInNonSparseError {
|
397 345 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
398 346 | match &self {
|
399 - | PrimitiveIntOpError::ExtraError(_inner) => _inner.fmt(f),
|
347 + | NullInNonSparseError::ExtraError(_inner) => _inner.fmt(f),
|
400 348 | }
|
401 349 | }
|
402 350 | }
|
403 - | impl PrimitiveIntOpError {
|
404 - | /// Returns `true` if the error kind is `PrimitiveIntOpError::ExtraError`.
|
351 + | impl NullInNonSparseError {
|
352 + | /// Returns `true` if the error kind is `NullInNonSparseError::ExtraError`.
|
405 353 | pub fn is_extra_error(&self) -> bool {
|
406 - | matches!(&self, PrimitiveIntOpError::ExtraError(_))
|
354 + | matches!(&self, NullInNonSparseError::ExtraError(_))
|
407 355 | }
|
408 356 | /// Returns the error name string by matching the correct variant.
|
409 357 | pub fn name(&self) -> &'static str {
|
410 358 | match &self {
|
411 - | PrimitiveIntOpError::ExtraError(_inner) => _inner.name(),
|
359 + | NullInNonSparseError::ExtraError(_inner) => _inner.name(),
|
412 360 | }
|
413 361 | }
|
414 362 | }
|
415 - | impl ::std::error::Error for PrimitiveIntOpError {
|
363 + | impl ::std::error::Error for NullInNonSparseError {
|
416 364 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
417 365 | match &self {
|
418 - | PrimitiveIntOpError::ExtraError(_inner) => Some(_inner),
|
366 + | NullInNonSparseError::ExtraError(_inner) => Some(_inner),
|
419 367 | }
|
420 368 | }
|
421 369 | }
|
422 - | impl ::std::convert::From<crate::error::ExtraError> for crate::error::PrimitiveIntOpError {
|
423 - | fn from(variant: crate::error::ExtraError) -> crate::error::PrimitiveIntOpError {
|
370 + | impl ::std::convert::From<crate::error::ExtraError> for crate::error::NullInNonSparseError {
|
371 + | fn from(variant: crate::error::ExtraError) -> crate::error::NullInNonSparseError {
|
424 372 | Self::ExtraError(variant)
|
425 373 | }
|
426 374 | }
|
427 375 |
|
428 - | /// Error type for the `MapWithEnumKeyOp` operation.
|
429 - | /// Each variant represents an error that can occur for the `MapWithEnumKeyOp` operation.
|
376 + | /// Error type for the `CaseInsensitiveErrorOperation` operation.
|
377 + | /// Each variant represents an error that can occur for the `CaseInsensitiveErrorOperation` operation.
|
430 378 | #[derive(::std::fmt::Debug)]
|
431 - | pub enum MapWithEnumKeyOpError {
|
432 - | /// 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.
|
433 - | ValidationException(crate::error::ValidationException),
|
379 + | pub enum CaseInsensitiveErrorOperationError {
|
380 + | #[allow(missing_docs)] // documentation missing in model
|
381 + | CaseInsensitiveError(crate::error::CaseInsensitiveError),
|
434 382 | #[allow(missing_docs)] // documentation missing in model
|
435 383 | ExtraError(crate::error::ExtraError),
|
436 384 | }
|
437 - | impl ::std::fmt::Display for MapWithEnumKeyOpError {
|
385 + | impl ::std::fmt::Display for CaseInsensitiveErrorOperationError {
|
438 386 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
439 387 | match &self {
|
440 - | MapWithEnumKeyOpError::ValidationException(_inner) => _inner.fmt(f),
|
441 - | MapWithEnumKeyOpError::ExtraError(_inner) => _inner.fmt(f),
|
388 + | CaseInsensitiveErrorOperationError::CaseInsensitiveError(_inner) => _inner.fmt(f),
|
389 + | CaseInsensitiveErrorOperationError::ExtraError(_inner) => _inner.fmt(f),
|
442 390 | }
|
443 391 | }
|
444 392 | }
|
445 - | impl MapWithEnumKeyOpError {
|
446 - | /// Returns `true` if the error kind is `MapWithEnumKeyOpError::ValidationException`.
|
447 - | pub fn is_validation_exception(&self) -> bool {
|
448 - | matches!(&self, MapWithEnumKeyOpError::ValidationException(_))
|
393 + | impl CaseInsensitiveErrorOperationError {
|
394 + | /// Returns `true` if the error kind is `CaseInsensitiveErrorOperationError::CaseInsensitiveError`.
|
395 + | pub fn is_case_insensitive_error(&self) -> bool {
|
396 + | matches!(
|
397 + | &self,
|
398 + | CaseInsensitiveErrorOperationError::CaseInsensitiveError(_)
|
399 + | )
|
449 400 | }
|
450 - | /// Returns `true` if the error kind is `MapWithEnumKeyOpError::ExtraError`.
|
401 + | /// Returns `true` if the error kind is `CaseInsensitiveErrorOperationError::ExtraError`.
|
451 402 | pub fn is_extra_error(&self) -> bool {
|
452 - | matches!(&self, MapWithEnumKeyOpError::ExtraError(_))
|
403 + | matches!(&self, CaseInsensitiveErrorOperationError::ExtraError(_))
|
453 404 | }
|
454 405 | /// Returns the error name string by matching the correct variant.
|
455 406 | pub fn name(&self) -> &'static str {
|
456 407 | match &self {
|
457 - | MapWithEnumKeyOpError::ValidationException(_inner) => _inner.name(),
|
458 - | MapWithEnumKeyOpError::ExtraError(_inner) => _inner.name(),
|
408 + | CaseInsensitiveErrorOperationError::CaseInsensitiveError(_inner) => _inner.name(),
|
409 + | CaseInsensitiveErrorOperationError::ExtraError(_inner) => _inner.name(),
|
459 410 | }
|
460 411 | }
|
461 412 | }
|
462 - | impl ::std::error::Error for MapWithEnumKeyOpError {
|
413 + | impl ::std::error::Error for CaseInsensitiveErrorOperationError {
|
463 414 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
464 415 | match &self {
|
465 - | MapWithEnumKeyOpError::ValidationException(_inner) => Some(_inner),
|
466 - | MapWithEnumKeyOpError::ExtraError(_inner) => Some(_inner),
|
416 + | CaseInsensitiveErrorOperationError::CaseInsensitiveError(_inner) => Some(_inner),
|
417 + | CaseInsensitiveErrorOperationError::ExtraError(_inner) => Some(_inner),
|
467 418 | }
|
468 419 | }
|
469 420 | }
|
470 - | impl ::std::convert::From<crate::error::ValidationException>
|
471 - | for crate::error::MapWithEnumKeyOpError
|
421 + | impl ::std::convert::From<crate::error::CaseInsensitiveError>
|
422 + | for crate::error::CaseInsensitiveErrorOperationError
|
472 423 | {
|
473 - | fn from(variant: crate::error::ValidationException) -> crate::error::MapWithEnumKeyOpError {
|
474 - | Self::ValidationException(variant)
|
475 - | }
|
476 - | }
|
477 - | impl ::std::convert::From<crate::error::ExtraError> for crate::error::MapWithEnumKeyOpError {
|
478 - | fn from(variant: crate::error::ExtraError) -> crate::error::MapWithEnumKeyOpError {
|
479 - | Self::ExtraError(variant)
|
480 - | }
|
481 - | }
|
482 - |
|
483 - | /// Error type for the `StatusResponse` operation.
|
484 - | /// Each variant represents an error that can occur for the `StatusResponse` operation.
|
485 - | #[derive(::std::fmt::Debug)]
|
486 - | pub enum StatusResponseError {
|
487 - | #[allow(missing_docs)] // documentation missing in model
|
488 - | ExtraError(crate::error::ExtraError),
|
489 - | }
|
490 - | impl ::std::fmt::Display for StatusResponseError {
|
491 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
492 - | match &self {
|
493 - | StatusResponseError::ExtraError(_inner) => _inner.fmt(f),
|
494 - | }
|
495 - | }
|
496 - | }
|
497 - | impl StatusResponseError {
|
498 - | /// Returns `true` if the error kind is `StatusResponseError::ExtraError`.
|
499 - | pub fn is_extra_error(&self) -> bool {
|
500 - | matches!(&self, StatusResponseError::ExtraError(_))
|
501 - | }
|
502 - | /// Returns the error name string by matching the correct variant.
|
503 - | pub fn name(&self) -> &'static str {
|
504 - | match &self {
|
505 - | StatusResponseError::ExtraError(_inner) => _inner.name(),
|
506 - | }
|
507 - | }
|
508 - | }
|
509 - | impl ::std::error::Error for StatusResponseError {
|
510 - | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
511 - | match &self {
|
512 - | StatusResponseError::ExtraError(_inner) => Some(_inner),
|
513 - | }
|
424 + | fn from(
|
425 + | variant: crate::error::CaseInsensitiveError,
|
426 + | ) -> crate::error::CaseInsensitiveErrorOperationError {
|
427 + | Self::CaseInsensitiveError(variant)
|
514 428 | }
|
515 429 | }
|
516 - | impl ::std::convert::From<crate::error::ExtraError> for crate::error::StatusResponseError {
|
517 - | fn from(variant: crate::error::ExtraError) -> crate::error::StatusResponseError {
|
430 + | impl ::std::convert::From<crate::error::ExtraError>
|
431 + | for crate::error::CaseInsensitiveErrorOperationError
|
432 + | {
|
433 + | fn from(variant: crate::error::ExtraError) -> crate::error::CaseInsensitiveErrorOperationError {
|
518 434 | Self::ExtraError(variant)
|
519 435 | }
|
520 436 | }
|
521 437 |
|
522 - | /// Error type for the `EnumQuery` operation.
|
523 - | /// Each variant represents an error that can occur for the `EnumQuery` operation.
|
524 - | #[derive(::std::fmt::Debug)]
|
525 - | pub enum EnumQueryError {
|
526 - | /// 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.
|
527 - | ValidationException(crate::error::ValidationException),
|
438 + | /// Error type for the `EmptyStructWithContentOnWireOp` operation.
|
439 + | /// Each variant represents an error that can occur for the `EmptyStructWithContentOnWireOp` operation.
|
440 + | #[derive(::std::fmt::Debug)]
|
441 + | pub enum EmptyStructWithContentOnWireOpError {
|
528 442 | #[allow(missing_docs)] // documentation missing in model
|
529 443 | ExtraError(crate::error::ExtraError),
|
530 444 | }
|
531 - | impl ::std::fmt::Display for EnumQueryError {
|
445 + | impl ::std::fmt::Display for EmptyStructWithContentOnWireOpError {
|
532 446 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
533 447 | match &self {
|
534 - | EnumQueryError::ValidationException(_inner) => _inner.fmt(f),
|
535 - | EnumQueryError::ExtraError(_inner) => _inner.fmt(f),
|
448 + | EmptyStructWithContentOnWireOpError::ExtraError(_inner) => _inner.fmt(f),
|
536 449 | }
|
537 450 | }
|
538 451 | }
|
539 - | impl EnumQueryError {
|
540 - | /// Returns `true` if the error kind is `EnumQueryError::ValidationException`.
|
541 - | pub fn is_validation_exception(&self) -> bool {
|
542 - | matches!(&self, EnumQueryError::ValidationException(_))
|
543 - | }
|
544 - | /// Returns `true` if the error kind is `EnumQueryError::ExtraError`.
|
452 + | impl EmptyStructWithContentOnWireOpError {
|
453 + | /// Returns `true` if the error kind is `EmptyStructWithContentOnWireOpError::ExtraError`.
|
545 454 | pub fn is_extra_error(&self) -> bool {
|
546 - | matches!(&self, EnumQueryError::ExtraError(_))
|
455 + | matches!(&self, EmptyStructWithContentOnWireOpError::ExtraError(_))
|
547 456 | }
|
548 457 | /// Returns the error name string by matching the correct variant.
|
549 458 | pub fn name(&self) -> &'static str {
|
550 459 | match &self {
|
551 - | EnumQueryError::ValidationException(_inner) => _inner.name(),
|
552 - | EnumQueryError::ExtraError(_inner) => _inner.name(),
|
460 + | EmptyStructWithContentOnWireOpError::ExtraError(_inner) => _inner.name(),
|
553 461 | }
|
554 462 | }
|
555 463 | }
|
556 - | impl ::std::error::Error for EnumQueryError {
|
464 + | impl ::std::error::Error for EmptyStructWithContentOnWireOpError {
|
557 465 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
558 466 | match &self {
|
559 - | EnumQueryError::ValidationException(_inner) => Some(_inner),
|
560 - | EnumQueryError::ExtraError(_inner) => Some(_inner),
|
561 - | }
|
467 + | EmptyStructWithContentOnWireOpError::ExtraError(_inner) => Some(_inner),
|
562 468 | }
|
563 - | }
|
564 - | impl ::std::convert::From<crate::error::ValidationException> for crate::error::EnumQueryError {
|
565 - | fn from(variant: crate::error::ValidationException) -> crate::error::EnumQueryError {
|
566 - | Self::ValidationException(variant)
|
567 469 | }
|
568 470 | }
|
569 - | impl ::std::convert::From<crate::error::ExtraError> for crate::error::EnumQueryError {
|
570 - | fn from(variant: crate::error::ExtraError) -> crate::error::EnumQueryError {
|
471 + | impl ::std::convert::From<crate::error::ExtraError>
|
472 + | for crate::error::EmptyStructWithContentOnWireOpError
|
473 + | {
|
474 + | fn from(
|
475 + | variant: crate::error::ExtraError,
|
476 + | ) -> crate::error::EmptyStructWithContentOnWireOpError {
|
571 477 | Self::ExtraError(variant)
|
572 478 | }
|
573 479 | }
|
574 480 |
|
575 - | /// Error type for the `PrimitiveIntHeader` operation.
|
576 - | /// Each variant represents an error that can occur for the `PrimitiveIntHeader` operation.
|
481 + | /// Error type for the `QueryPrecedence` operation.
|
482 + | /// Each variant represents an error that can occur for the `QueryPrecedence` operation.
|
577 483 | #[derive(::std::fmt::Debug)]
|
578 - | pub enum PrimitiveIntHeaderError {
|
579 - | /// 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.
|
580 - | ValidationException(crate::error::ValidationException),
|
484 + | pub enum QueryPrecedenceError {
|
581 485 | #[allow(missing_docs)] // documentation missing in model
|
582 486 | ExtraError(crate::error::ExtraError),
|
583 487 | }
|
584 - | impl ::std::fmt::Display for PrimitiveIntHeaderError {
|
488 + | impl ::std::fmt::Display for QueryPrecedenceError {
|
585 489 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
586 490 | match &self {
|
587 - | PrimitiveIntHeaderError::ValidationException(_inner) => _inner.fmt(f),
|
588 - | PrimitiveIntHeaderError::ExtraError(_inner) => _inner.fmt(f),
|
491 + | QueryPrecedenceError::ExtraError(_inner) => _inner.fmt(f),
|
589 492 | }
|
590 493 | }
|
591 494 | }
|
592 - | impl PrimitiveIntHeaderError {
|
593 - | /// Returns `true` if the error kind is `PrimitiveIntHeaderError::ValidationException`.
|
594 - | pub fn is_validation_exception(&self) -> bool {
|
595 - | matches!(&self, PrimitiveIntHeaderError::ValidationException(_))
|
596 - | }
|
597 - | /// Returns `true` if the error kind is `PrimitiveIntHeaderError::ExtraError`.
|
495 + | impl QueryPrecedenceError {
|
496 + | /// Returns `true` if the error kind is `QueryPrecedenceError::ExtraError`.
|
598 497 | pub fn is_extra_error(&self) -> bool {
|
599 - | matches!(&self, PrimitiveIntHeaderError::ExtraError(_))
|
498 + | matches!(&self, QueryPrecedenceError::ExtraError(_))
|
600 499 | }
|
601 500 | /// Returns the error name string by matching the correct variant.
|
602 501 | pub fn name(&self) -> &'static str {
|
603 502 | match &self {
|
604 - | PrimitiveIntHeaderError::ValidationException(_inner) => _inner.name(),
|
605 - | PrimitiveIntHeaderError::ExtraError(_inner) => _inner.name(),
|
503 + | QueryPrecedenceError::ExtraError(_inner) => _inner.name(),
|
606 504 | }
|
607 505 | }
|
608 506 | }
|
609 - | impl ::std::error::Error for PrimitiveIntHeaderError {
|
507 + | impl ::std::error::Error for QueryPrecedenceError {
|
610 508 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
611 509 | match &self {
|
612 - | PrimitiveIntHeaderError::ValidationException(_inner) => Some(_inner),
|
613 - | PrimitiveIntHeaderError::ExtraError(_inner) => Some(_inner),
|
614 - | }
|
510 + | QueryPrecedenceError::ExtraError(_inner) => Some(_inner),
|
615 511 | }
|
616 - | }
|
617 - | impl ::std::convert::From<crate::error::ValidationException>
|
618 - | for crate::error::PrimitiveIntHeaderError
|
619 - | {
|
620 - | fn from(variant: crate::error::ValidationException) -> crate::error::PrimitiveIntHeaderError {
|
621 - | Self::ValidationException(variant)
|
622 512 | }
|
623 513 | }
|
624 - | impl ::std::convert::From<crate::error::ExtraError> for crate::error::PrimitiveIntHeaderError {
|
625 - | fn from(variant: crate::error::ExtraError) -> crate::error::PrimitiveIntHeaderError {
|
514 + | impl ::std::convert::From<crate::error::ExtraError> for crate::error::QueryPrecedenceError {
|
515 + | fn from(variant: crate::error::ExtraError) -> crate::error::QueryPrecedenceError {
|
626 516 | Self::ExtraError(variant)
|
627 517 | }
|
628 518 | }
|
629 519 |
|
630 - | /// Error type for the `StringPayload` operation.
|
631 - | /// Each variant represents an error that can occur for the `StringPayload` operation.
|
632 - | #[derive(::std::fmt::Debug)]
|
633 - | pub enum StringPayloadError {
|
634 - | #[allow(missing_docs)] // documentation missing in model
|
635 - | ExtraError(crate::error::ExtraError),
|
520 + | #[allow(missing_docs)] // documentation missing in model
|
521 + | #[derive(
|
522 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
523 + | )]
|
524 + | pub struct ExtraError {}
|
525 + | impl ExtraError {
|
526 + | #[doc(hidden)]
|
527 + | /// Returns the error name.
|
528 + | pub fn name(&self) -> &'static str {
|
529 + | "ExtraError"
|
530 + | }
|
636 531 | }
|
637 - | impl ::std::fmt::Display for StringPayloadError {
|
532 + | impl ::std::fmt::Display for ExtraError {
|
638 533 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
639 - | match &self {
|
640 - | StringPayloadError::ExtraError(_inner) => _inner.fmt(f),
|
534 + | ::std::write!(f, "ExtraError")?;
|
535 + | Ok(())
|
641 536 | }
|
537 + | }
|
538 + | impl ::std::error::Error for ExtraError {}
|
539 + | impl ExtraError {
|
540 + | /// Creates a new builder-style object to manufacture [`ExtraError`](crate::error::ExtraError).
|
541 + | pub fn builder() -> crate::error::extra_error::Builder {
|
542 + | crate::error::extra_error::Builder::default()
|
642 543 | }
|
643 544 | }
|
644 - | impl StringPayloadError {
|
645 - | /// Returns `true` if the error kind is `StringPayloadError::ExtraError`.
|
646 - | pub fn is_extra_error(&self) -> bool {
|
647 - | matches!(&self, StringPayloadError::ExtraError(_))
|
545 + |
|
546 + | /// 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.
|
547 + | #[derive(
|
548 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
549 + | )]
|
550 + | pub struct ValidationException {
|
551 + | /// A summary of the validation failure.
|
552 + | pub message: ::std::string::String,
|
553 + | /// 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.
|
554 + | pub field_list: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
|
555 + | }
|
556 + | impl ValidationException {
|
557 + | /// 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.
|
558 + | pub fn field_list(&self) -> ::std::option::Option<&[crate::model::ValidationExceptionField]> {
|
559 + | self.field_list.as_deref()
|
648 560 | }
|
649 - | /// Returns the error name string by matching the correct variant.
|
561 + | }
|
562 + | impl ValidationException {
|
563 + | /// Returns the error message.
|
564 + | pub fn message(&self) -> &str {
|
565 + | &self.message
|
566 + | }
|
567 + | #[doc(hidden)]
|
568 + | /// Returns the error name.
|
650 569 | pub fn name(&self) -> &'static str {
|
651 - | match &self {
|
652 - | StringPayloadError::ExtraError(_inner) => _inner.name(),
|
570 + | "ValidationException"
|
571 + | }
|
572 + | }
|
573 + | impl ::std::fmt::Display for ValidationException {
|
574 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
575 + | ::std::write!(f, "ValidationException")?;
|
576 + | {
|
577 + | ::std::write!(f, ": {}", &self.message)?;
|
653 578 | }
|
579 + | Ok(())
|
654 580 | }
|
655 581 | }
|
656 - | impl ::std::error::Error for StringPayloadError {
|
657 - | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
658 - | match &self {
|
659 - | StringPayloadError::ExtraError(_inner) => Some(_inner),
|
582 + | impl ::std::error::Error for ValidationException {}
|
583 + | impl ValidationException {
|
584 + | /// Creates a new builder-style object to manufacture [`ValidationException`](crate::error::ValidationException).
|
585 + | pub fn builder() -> crate::error::validation_exception::Builder {
|
586 + | crate::error::validation_exception::Builder::default()
|
587 + | }
|
588 + | }
|
589 + |
|
590 + | #[allow(missing_docs)] // documentation missing in model
|
591 + | #[derive(
|
592 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
593 + | )]
|
594 + | pub struct CaseInsensitiveError {
|
595 + | #[allow(missing_docs)] // documentation missing in model
|
596 + | pub message: ::std::option::Option<::std::string::String>,
|
597 + | }
|
598 + | impl CaseInsensitiveError {
|
599 + | /// Returns the error message.
|
600 + | pub fn message(&self) -> ::std::option::Option<&str> {
|
601 + | self.message.as_deref()
|
602 + | }
|
603 + | #[doc(hidden)]
|
604 + | /// Returns the error name.
|
605 + | pub fn name(&self) -> &'static str {
|
606 + | "CaseInsensitiveError"
|
607 + | }
|
608 + | }
|
609 + | impl ::std::fmt::Display for CaseInsensitiveError {
|
610 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
611 + | ::std::write!(f, "CaseInsensitiveError")?;
|
612 + | if let ::std::option::Option::Some(inner_1) = &self.message {
|
613 + | {
|
614 + | ::std::write!(f, ": {inner_1}")?;
|
660 615 | }
|
661 616 | }
|
617 + | Ok(())
|
618 + | }
|
662 619 | }
|
663 - | impl ::std::convert::From<crate::error::ExtraError> for crate::error::StringPayloadError {
|
664 - | fn from(variant: crate::error::ExtraError) -> crate::error::StringPayloadError {
|
665 - | Self::ExtraError(variant)
|
620 + | impl ::std::error::Error for CaseInsensitiveError {}
|
621 + | impl CaseInsensitiveError {
|
622 + | /// Creates a new builder-style object to manufacture [`CaseInsensitiveError`](crate::error::CaseInsensitiveError).
|
623 + | pub fn builder() -> crate::error::case_insensitive_error::Builder {
|
624 + | crate::error::case_insensitive_error::Builder::default()
|
666 625 | }
|
667 626 | }
|
668 627 | /// See [`ExtraError`](crate::error::ExtraError).
|
669 628 | pub mod extra_error {
|
670 629 |
|
671 630 | impl ::std::convert::From<Builder> for crate::error::ExtraError {
|
672 631 | fn from(builder: Builder) -> Self {
|
673 632 | builder.build()
|
674 633 | }
|
675 634 | }
|
676 635 | /// A builder for [`ExtraError`](crate::error::ExtraError).
|
677 636 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
678 637 | pub struct Builder {}
|
679 638 | impl Builder {
|
680 639 | /// Consumes the builder and constructs a [`ExtraError`](crate::error::ExtraError).
|
681 640 | pub fn build(self) -> crate::error::ExtraError {
|
682 641 | self.build_enforcing_all_constraints()
|
683 642 | }
|
684 643 | fn build_enforcing_all_constraints(self) -> crate::error::ExtraError {
|
685 644 | crate::error::ExtraError {}
|
686 645 | }
|
687 646 | }
|
688 647 | }
|
689 - | /// See [`CaseInsensitiveError`](crate::error::CaseInsensitiveError).
|
690 - | pub mod case_insensitive_error {
|
691 - |
|
692 - | impl ::std::convert::From<Builder> for crate::error::CaseInsensitiveError {
|
693 - | fn from(builder: Builder) -> Self {
|
694 - | builder.build()
|
695 - | }
|
696 - | }
|
697 - | /// A builder for [`CaseInsensitiveError`](crate::error::CaseInsensitiveError).
|
698 - | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
699 - | pub struct Builder {
|
700 - | pub(crate) message: ::std::option::Option<::std::string::String>,
|
701 - | }
|
702 - | impl Builder {
|
703 - | #[allow(missing_docs)] // documentation missing in model
|
704 - | pub fn message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
705 - | self.message = input;
|
706 - | self
|
707 - | }
|
708 - | /// Consumes the builder and constructs a [`CaseInsensitiveError`](crate::error::CaseInsensitiveError).
|
709 - | pub fn build(self) -> crate::error::CaseInsensitiveError {
|
710 - | self.build_enforcing_all_constraints()
|
711 - | }
|
712 - | fn build_enforcing_all_constraints(self) -> crate::error::CaseInsensitiveError {
|
713 - | crate::error::CaseInsensitiveError {
|
714 - | message: self.message,
|
715 - | }
|
716 - | }
|
717 - | }
|
718 - | }
|
719 648 | /// See [`ValidationException`](crate::error::ValidationException).
|
720 649 | pub mod validation_exception {
|
721 650 |
|
722 651 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
723 652 | /// Holds one variant for each of the ways the builder can fail.
|
724 653 | #[non_exhaustive]
|
725 654 | #[allow(clippy::enum_variant_names)]
|
726 655 | pub enum ConstraintViolation {
|
727 656 | /// `message` was not provided but it is required when building `ValidationException`.
|
728 657 | MissingMessage,
|