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 8 | #[allow(missing_docs)] // documentation missing in model
|
9 - | EventStreamErrorMessage(crate::error::EventStreamErrorMessage),
|
10 - | #[allow(missing_docs)] // documentation missing in model
|
11 9 | InternalServerError(crate::error::InternalServerError),
|
12 10 | }
|
13 - | impl ::std::fmt::Display for EventStreamsOperationError {
|
11 + | impl ::std::fmt::Display for ConstrainedShapesOperationError {
|
14 12 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
15 13 | match &self {
|
16 - | EventStreamsOperationError::ValidationException(_inner) => _inner.fmt(f),
|
17 - | EventStreamsOperationError::EventStreamErrorMessage(_inner) => _inner.fmt(f),
|
18 - | EventStreamsOperationError::InternalServerError(_inner) => _inner.fmt(f),
|
14 + | ConstrainedShapesOperationError::ValidationException(_inner) => _inner.fmt(f),
|
15 + | ConstrainedShapesOperationError::InternalServerError(_inner) => _inner.fmt(f),
|
19 16 | }
|
20 17 | }
|
21 18 | }
|
22 - | impl EventStreamsOperationError {
|
23 - | /// Returns `true` if the error kind is `EventStreamsOperationError::ValidationException`.
|
19 + | impl ConstrainedShapesOperationError {
|
20 + | /// Returns `true` if the error kind is `ConstrainedShapesOperationError::ValidationException`.
|
24 21 | pub fn is_validation_exception(&self) -> bool {
|
25 - | matches!(&self, EventStreamsOperationError::ValidationException(_))
|
26 - | }
|
27 - | /// Returns `true` if the error kind is `EventStreamsOperationError::EventStreamErrorMessage`.
|
28 - | pub fn is_event_stream_error_message(&self) -> bool {
|
29 22 | matches!(
|
30 23 | &self,
|
31 - | EventStreamsOperationError::EventStreamErrorMessage(_)
|
24 + | ConstrainedShapesOperationError::ValidationException(_)
|
32 25 | )
|
33 26 | }
|
34 - | /// Returns `true` if the error kind is `EventStreamsOperationError::InternalServerError`.
|
27 + | /// Returns `true` if the error kind is `ConstrainedShapesOperationError::InternalServerError`.
|
35 28 | pub fn is_internal_server_error(&self) -> bool {
|
36 - | matches!(&self, EventStreamsOperationError::InternalServerError(_))
|
29 + | matches!(
|
30 + | &self,
|
31 + | ConstrainedShapesOperationError::InternalServerError(_)
|
32 + | )
|
37 33 | }
|
38 34 | /// Returns the error name string by matching the correct variant.
|
39 35 | pub fn name(&self) -> &'static str {
|
40 36 | match &self {
|
41 - | EventStreamsOperationError::ValidationException(_inner) => _inner.name(),
|
42 - | EventStreamsOperationError::EventStreamErrorMessage(_inner) => _inner.name(),
|
43 - | EventStreamsOperationError::InternalServerError(_inner) => _inner.name(),
|
37 + | ConstrainedShapesOperationError::ValidationException(_inner) => _inner.name(),
|
38 + | ConstrainedShapesOperationError::InternalServerError(_inner) => _inner.name(),
|
44 39 | }
|
45 40 | }
|
46 41 | }
|
47 - | impl ::std::error::Error for EventStreamsOperationError {
|
42 + | impl ::std::error::Error for ConstrainedShapesOperationError {
|
48 43 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
49 44 | match &self {
|
50 - | EventStreamsOperationError::ValidationException(_inner) => Some(_inner),
|
51 - | EventStreamsOperationError::EventStreamErrorMessage(_inner) => Some(_inner),
|
52 - | EventStreamsOperationError::InternalServerError(_inner) => Some(_inner),
|
45 + | ConstrainedShapesOperationError::ValidationException(_inner) => Some(_inner),
|
46 + | ConstrainedShapesOperationError::InternalServerError(_inner) => Some(_inner),
|
53 47 | }
|
54 48 | }
|
55 49 | }
|
56 50 | impl ::std::convert::From<crate::error::ValidationException>
|
57 - | for crate::error::EventStreamsOperationError
|
51 + | for crate::error::ConstrainedShapesOperationError
|
58 52 | {
|
59 53 | fn from(
|
60 54 | variant: crate::error::ValidationException,
|
61 - | ) -> crate::error::EventStreamsOperationError {
|
55 + | ) -> crate::error::ConstrainedShapesOperationError {
|
62 56 | Self::ValidationException(variant)
|
63 57 | }
|
64 58 | }
|
65 - | impl ::std::convert::From<crate::error::EventStreamErrorMessage>
|
66 - | for crate::error::EventStreamsOperationError
|
67 - | {
|
68 - | fn from(
|
69 - | variant: crate::error::EventStreamErrorMessage,
|
70 - | ) -> crate::error::EventStreamsOperationError {
|
71 - | Self::EventStreamErrorMessage(variant)
|
72 - | }
|
73 - | }
|
74 59 | impl ::std::convert::From<crate::error::InternalServerError>
|
75 - | for crate::error::EventStreamsOperationError
|
60 + | for crate::error::ConstrainedShapesOperationError
|
76 61 | {
|
77 62 | fn from(
|
78 63 | variant: crate::error::InternalServerError,
|
79 - | ) -> crate::error::EventStreamsOperationError {
|
64 + | ) -> crate::error::ConstrainedShapesOperationError {
|
80 65 | Self::InternalServerError(variant)
|
81 66 | }
|
82 67 | }
|
83 68 |
|
84 - | impl ::std::convert::From<::pyo3::PyErr> for crate::error::EventStreamsOperationError {
|
85 - | fn from(variant: ::pyo3::PyErr) -> crate::error::EventStreamsOperationError {
|
69 + | impl ::std::convert::From<::pyo3::PyErr> for crate::error::ConstrainedShapesOperationError {
|
70 + | fn from(variant: ::pyo3::PyErr) -> crate::error::ConstrainedShapesOperationError {
|
86 71 | ::pyo3::Python::with_gil(|py| {
|
87 72 | let error = variant.value(py);
|
88 73 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
89 74 | return error.into();
|
90 75 | }
|
91 - | if let Ok(error) = error.extract::<crate::error::EventStreamErrorMessage>() {
|
92 - | return error.into();
|
93 - | }
|
94 76 | crate::error::InternalServerError {
|
95 77 | message: error.to_string(),
|
96 78 | }
|
97 79 | .into()
|
98 80 | })
|
99 81 | }
|
100 82 | }
|
101 83 |
|
102 - | #[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
|
103 - | /// :param message str:
|
104 - | /// :rtype None:
|
105 - | #[allow(missing_docs)] // documentation missing in model
|
106 - | #[derive(
|
107 - | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
108 - | )]
|
109 - | pub struct InternalServerError {
|
110 - | #[pyo3(get, set)]
|
111 - | /// :type str:
|
84 + | /// Error type for the `ConstrainedShapesOnlyInOutputOperation` operation.
|
85 + | /// Each variant represents an error that can occur for the `ConstrainedShapesOnlyInOutputOperation` operation.
|
86 + | #[derive(::std::fmt::Debug)]
|
87 + | pub enum ConstrainedShapesOnlyInOutputOperationError {
|
112 88 | #[allow(missing_docs)] // documentation missing in model
|
113 - | pub message: ::std::string::String,
|
89 + | InternalServerError(crate::error::InternalServerError),
|
114 90 | }
|
115 - | #[allow(clippy::new_without_default)]
|
116 - | #[allow(clippy::too_many_arguments)]
|
117 - | #[::pyo3::pymethods]
|
118 - | impl InternalServerError {
|
119 - | #[new]
|
120 - | pub fn new(message: ::std::string::String) -> Self {
|
121 - | Self { message }
|
122 - | }
|
123 - | fn __repr__(&self) -> String {
|
124 - | format!("{self:?}")
|
125 - | }
|
126 - | fn __str__(&self) -> String {
|
127 - | format!("{self:?}")
|
91 + | impl ::std::fmt::Display for ConstrainedShapesOnlyInOutputOperationError {
|
92 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
93 + | match &self {
|
94 + | ConstrainedShapesOnlyInOutputOperationError::InternalServerError(_inner) => {
|
95 + | _inner.fmt(f)
|
96 + | }
|
97 + | }
|
128 98 | }
|
129 99 | }
|
130 - | impl InternalServerError {
|
131 - | /// Returns the error message.
|
132 - | pub fn message(&self) -> &str {
|
133 - | &self.message
|
100 + | impl ConstrainedShapesOnlyInOutputOperationError {
|
101 + | /// Returns `true` if the error kind is `ConstrainedShapesOnlyInOutputOperationError::InternalServerError`.
|
102 + | pub fn is_internal_server_error(&self) -> bool {
|
103 + | matches!(
|
104 + | &self,
|
105 + | ConstrainedShapesOnlyInOutputOperationError::InternalServerError(_)
|
106 + | )
|
134 107 | }
|
135 - | #[doc(hidden)]
|
136 - | /// Returns the error name.
|
108 + | /// Returns the error name string by matching the correct variant.
|
137 109 | pub fn name(&self) -> &'static str {
|
138 - | "InternalServerError"
|
110 + | match &self {
|
111 + | ConstrainedShapesOnlyInOutputOperationError::InternalServerError(_inner) => {
|
112 + | _inner.name()
|
113 + | }
|
114 + | }
|
139 115 | }
|
140 116 | }
|
141 - | impl ::std::fmt::Display for InternalServerError {
|
142 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
143 - | ::std::write!(f, "InternalServerError")?;
|
144 - | {
|
145 - | ::std::write!(f, ": {}", &self.message)?;
|
117 + | impl ::std::error::Error for ConstrainedShapesOnlyInOutputOperationError {
|
118 + | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
119 + | match &self {
|
120 + | ConstrainedShapesOnlyInOutputOperationError::InternalServerError(_inner) => {
|
121 + | Some(_inner)
|
122 + | }
|
146 123 | }
|
147 - | Ok(())
|
148 124 | }
|
149 125 | }
|
150 - | impl ::std::error::Error for InternalServerError {}
|
151 - | impl InternalServerError {
|
152 - | /// Creates a new builder-style object to manufacture [`InternalServerError`](crate::error::InternalServerError).
|
153 - | pub fn builder() -> crate::error::internal_server_error::Builder {
|
154 - | crate::error::internal_server_error::Builder::default()
|
126 + | impl ::std::convert::From<crate::error::InternalServerError>
|
127 + | for crate::error::ConstrainedShapesOnlyInOutputOperationError
|
128 + | {
|
129 + | fn from(
|
130 + | variant: crate::error::InternalServerError,
|
131 + | ) -> crate::error::ConstrainedShapesOnlyInOutputOperationError {
|
132 + | Self::InternalServerError(variant)
|
155 133 | }
|
156 134 | }
|
157 135 |
|
158 - | #[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
|
159 - | /// :param message_content typing.Optional\[str\]:
|
160 - | /// :rtype None:
|
161 - | #[allow(missing_docs)] // documentation missing in model
|
162 - | #[derive(
|
163 - | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
164 - | )]
|
165 - | pub struct EventStreamErrorMessage {
|
166 - | #[pyo3(get, set)]
|
167 - | /// :type typing.Optional\[str\]:
|
168 - | #[allow(missing_docs)] // documentation missing in model
|
169 - | pub message_content: ::std::option::Option<::std::string::String>,
|
136 + | impl ::std::convert::From<::pyo3::PyErr>
|
137 + | for crate::error::ConstrainedShapesOnlyInOutputOperationError
|
138 + | {
|
139 + | fn from(variant: ::pyo3::PyErr) -> crate::error::ConstrainedShapesOnlyInOutputOperationError {
|
140 + | ::pyo3::Python::with_gil(|py| {
|
141 + | let error = variant.value(py);
|
142 + |
|
143 + | crate::error::InternalServerError {
|
144 + | message: error.to_string(),
|
145 + | }
|
146 + | .into()
|
147 + | })
|
148 + | }
|
170 149 | }
|
171 - | impl EventStreamErrorMessage {
|
150 + |
|
151 + | /// Error type for the `ConstrainedHttpBoundShapesOperation` operation.
|
152 + | /// Each variant represents an error that can occur for the `ConstrainedHttpBoundShapesOperation` operation.
|
153 + | #[derive(::std::fmt::Debug)]
|
154 + | pub enum ConstrainedHttpBoundShapesOperationError {
|
155 + | /// 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.
|
156 + | ValidationException(crate::error::ValidationException),
|
172 157 | #[allow(missing_docs)] // documentation missing in model
|
173 - | pub fn message_content(&self) -> ::std::option::Option<&str> {
|
174 - | self.message_content.as_deref()
|
175 - | }
|
158 + | InternalServerError(crate::error::InternalServerError),
|
176 159 | }
|
177 - | #[allow(clippy::new_without_default)]
|
178 - | #[allow(clippy::too_many_arguments)]
|
179 - | #[::pyo3::pymethods]
|
180 - | impl EventStreamErrorMessage {
|
181 - | #[new]
|
182 - | pub fn new(message_content: ::std::option::Option<::std::string::String>) -> Self {
|
183 - | Self { message_content }
|
160 + | impl ::std::fmt::Display for ConstrainedHttpBoundShapesOperationError {
|
161 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
162 + | match &self {
|
163 + | ConstrainedHttpBoundShapesOperationError::ValidationException(_inner) => _inner.fmt(f),
|
164 + | ConstrainedHttpBoundShapesOperationError::InternalServerError(_inner) => _inner.fmt(f),
|
165 + | }
|
184 166 | }
|
185 - | fn __repr__(&self) -> String {
|
186 - | format!("{self:?}")
|
167 + | }
|
168 + | impl ConstrainedHttpBoundShapesOperationError {
|
169 + | /// Returns `true` if the error kind is `ConstrainedHttpBoundShapesOperationError::ValidationException`.
|
170 + | pub fn is_validation_exception(&self) -> bool {
|
171 + | matches!(
|
172 + | &self,
|
173 + | ConstrainedHttpBoundShapesOperationError::ValidationException(_)
|
174 + | )
|
187 175 | }
|
188 - | fn __str__(&self) -> String {
|
189 - | format!("{self:?}")
|
176 + | /// Returns `true` if the error kind is `ConstrainedHttpBoundShapesOperationError::InternalServerError`.
|
177 + | pub fn is_internal_server_error(&self) -> bool {
|
178 + | matches!(
|
179 + | &self,
|
180 + | ConstrainedHttpBoundShapesOperationError::InternalServerError(_)
|
181 + | )
|
190 182 | }
|
191 - | }
|
192 - | impl EventStreamErrorMessage {
|
193 - | #[doc(hidden)]
|
194 - | /// Returns the error name.
|
183 + | /// Returns the error name string by matching the correct variant.
|
195 184 | pub fn name(&self) -> &'static str {
|
196 - | "EventStreamErrorMessage"
|
185 + | match &self {
|
186 + | ConstrainedHttpBoundShapesOperationError::ValidationException(_inner) => _inner.name(),
|
187 + | ConstrainedHttpBoundShapesOperationError::InternalServerError(_inner) => _inner.name(),
|
188 + | }
|
197 189 | }
|
198 190 | }
|
199 - | impl ::std::fmt::Display for EventStreamErrorMessage {
|
200 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
201 - | ::std::write!(f, "EventStreamErrorMessage")?;
|
202 - | Ok(())
|
191 + | impl ::std::error::Error for ConstrainedHttpBoundShapesOperationError {
|
192 + | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
193 + | match &self {
|
194 + | ConstrainedHttpBoundShapesOperationError::ValidationException(_inner) => Some(_inner),
|
195 + | ConstrainedHttpBoundShapesOperationError::InternalServerError(_inner) => Some(_inner),
|
196 + | }
|
203 197 | }
|
204 198 | }
|
205 - | impl ::std::error::Error for EventStreamErrorMessage {}
|
206 - | impl crate::constrained::Constrained for crate::error::EventStreamErrorMessage {
|
207 - | type Unconstrained = crate::error::event_stream_error_message_internal::Builder;
|
208 - | }
|
209 - | impl EventStreamErrorMessage {
|
210 - | /// Creates a new builder-style object to manufacture [`EventStreamErrorMessage`](crate::error::EventStreamErrorMessage).
|
211 - | pub fn builder() -> crate::error::event_stream_error_message::Builder {
|
212 - | crate::error::event_stream_error_message::Builder::default()
|
199 + | impl ::std::convert::From<crate::error::ValidationException>
|
200 + | for crate::error::ConstrainedHttpBoundShapesOperationError
|
201 + | {
|
202 + | fn from(
|
203 + | variant: crate::error::ValidationException,
|
204 + | ) -> crate::error::ConstrainedHttpBoundShapesOperationError {
|
205 + | Self::ValidationException(variant)
|
213 206 | }
|
214 207 | }
|
215 - |
|
216 - | #[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
|
217 - | /// :param message str:
|
218 - | /// :param field_list typing.Optional\[typing.List\[constraints.model.ValidationExceptionField\]\]:
|
219 - | /// :rtype None:
|
220 - | /// 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.
|
221 - | #[derive(
|
222 - | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
223 - | )]
|
224 - | pub struct ValidationException {
|
225 - | #[pyo3(get, set)]
|
226 - | /// :type str:
|
227 - | /// A summary of the validation failure.
|
228 - | pub message: ::std::string::String,
|
229 - | #[pyo3(get, set)]
|
230 - | /// :type typing.Optional\[typing.List\[constraints.model.ValidationExceptionField\]\]:
|
231 - | /// 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.
|
232 - | pub field_list: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
|
233 - | }
|
234 - | impl ValidationException {
|
235 - | /// 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.
|
236 - | pub fn field_list(&self) -> ::std::option::Option<&[crate::model::ValidationExceptionField]> {
|
237 - | self.field_list.as_deref()
|
238 - | }
|
239 - | }
|
240 - | #[allow(clippy::new_without_default)]
|
241 - | #[allow(clippy::too_many_arguments)]
|
242 - | #[::pyo3::pymethods]
|
243 - | impl ValidationException {
|
244 - | #[new]
|
245 - | pub fn new(
|
246 - | message: ::std::string::String,
|
247 - | field_list: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
|
248 - | ) -> Self {
|
249 - | Self {
|
250 - | message,
|
251 - | field_list,
|
252 - | }
|
253 - | }
|
254 - | fn __repr__(&self) -> String {
|
255 - | format!("{self:?}")
|
256 - | }
|
257 - | fn __str__(&self) -> String {
|
258 - | format!("{self:?}")
|
259 - | }
|
260 - | }
|
261 - | impl ValidationException {
|
262 - | /// Returns the error message.
|
263 - | pub fn message(&self) -> &str {
|
264 - | &self.message
|
265 - | }
|
266 - | #[doc(hidden)]
|
267 - | /// Returns the error name.
|
268 - | pub fn name(&self) -> &'static str {
|
269 - | "ValidationException"
|
270 - | }
|
271 - | }
|
272 - | impl ::std::fmt::Display for ValidationException {
|
273 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
274 - | ::std::write!(f, "ValidationException")?;
|
275 - | {
|
276 - | ::std::write!(f, ": {}", &self.message)?;
|
277 - | }
|
278 - | Ok(())
|
208 + | impl ::std::convert::From<crate::error::InternalServerError>
|
209 + | for crate::error::ConstrainedHttpBoundShapesOperationError
|
210 + | {
|
211 + | fn from(
|
212 + | variant: crate::error::InternalServerError,
|
213 + | ) -> crate::error::ConstrainedHttpBoundShapesOperationError {
|
214 + | Self::InternalServerError(variant)
|
279 215 | }
|
280 216 | }
|
281 - | impl ::std::error::Error for ValidationException {}
|
282 - | impl ValidationException {
|
283 - | /// Creates a new builder-style object to manufacture [`ValidationException`](crate::error::ValidationException).
|
284 - | pub fn builder() -> crate::error::validation_exception::Builder {
|
285 - | crate::error::validation_exception::Builder::default()
|
217 + |
|
218 + | impl ::std::convert::From<::pyo3::PyErr>
|
219 + | for crate::error::ConstrainedHttpBoundShapesOperationError
|
220 + | {
|
221 + | fn from(variant: ::pyo3::PyErr) -> crate::error::ConstrainedHttpBoundShapesOperationError {
|
222 + | ::pyo3::Python::with_gil(|py| {
|
223 + | let error = variant.value(py);
|
224 + | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
225 + | return error.into();
|
226 + | }
|
227 + | crate::error::InternalServerError {
|
228 + | message: error.to_string(),
|
229 + | }
|
230 + | .into()
|
231 + | })
|
286 232 | }
|
287 233 | }
|
288 234 |
|
289 - | /// Error type for the `Event` operation.
|
290 - | /// Each variant represents an error that can occur for the `Event` operation.
|
235 + | /// Error type for the `ConstrainedHttpPayloadBoundShapeOperation` operation.
|
236 + | /// Each variant represents an error that can occur for the `ConstrainedHttpPayloadBoundShapeOperation` operation.
|
291 237 | #[derive(::std::fmt::Debug)]
|
292 - | pub enum EventError {
|
238 + | pub enum ConstrainedHttpPayloadBoundShapeOperationError {
|
239 + | /// 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.
|
240 + | ValidationException(crate::error::ValidationException),
|
293 241 | #[allow(missing_docs)] // documentation missing in model
|
294 - | EventStreamErrorMessage(crate::error::EventStreamErrorMessage),
|
242 + | InternalServerError(crate::error::InternalServerError),
|
295 243 | }
|
296 - | impl ::std::fmt::Display for EventError {
|
244 + | impl ::std::fmt::Display for ConstrainedHttpPayloadBoundShapeOperationError {
|
297 245 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
298 246 | match &self {
|
299 - | EventError::EventStreamErrorMessage(_inner) => _inner.fmt(f),
|
247 + | ConstrainedHttpPayloadBoundShapeOperationError::ValidationException(_inner) => {
|
248 + | _inner.fmt(f)
|
249 + | }
|
250 + | ConstrainedHttpPayloadBoundShapeOperationError::InternalServerError(_inner) => {
|
251 + | _inner.fmt(f)
|
252 + | }
|
300 253 | }
|
301 254 | }
|
302 255 | }
|
303 - | impl EventError {
|
304 - | /// Returns `true` if the error kind is `EventError::EventStreamErrorMessage`.
|
305 - | pub fn is_event_stream_error_message(&self) -> bool {
|
306 - | matches!(&self, EventError::EventStreamErrorMessage(_))
|
256 + | impl ConstrainedHttpPayloadBoundShapeOperationError {
|
257 + | /// Returns `true` if the error kind is `ConstrainedHttpPayloadBoundShapeOperationError::ValidationException`.
|
258 + | pub fn is_validation_exception(&self) -> bool {
|
259 + | matches!(
|
260 + | &self,
|
261 + | ConstrainedHttpPayloadBoundShapeOperationError::ValidationException(_)
|
262 + | )
|
263 + | }
|
264 + | /// Returns `true` if the error kind is `ConstrainedHttpPayloadBoundShapeOperationError::InternalServerError`.
|
265 + | pub fn is_internal_server_error(&self) -> bool {
|
266 + | matches!(
|
267 + | &self,
|
268 + | ConstrainedHttpPayloadBoundShapeOperationError::InternalServerError(_)
|
269 + | )
|
307 270 | }
|
308 271 | /// Returns the error name string by matching the correct variant.
|
309 272 | pub fn name(&self) -> &'static str {
|
310 273 | match &self {
|
311 - | EventError::EventStreamErrorMessage(_inner) => _inner.name(),
|
274 + | ConstrainedHttpPayloadBoundShapeOperationError::ValidationException(_inner) => {
|
275 + | _inner.name()
|
276 + | }
|
277 + | ConstrainedHttpPayloadBoundShapeOperationError::InternalServerError(_inner) => {
|
278 + | _inner.name()
|
279 + | }
|
312 280 | }
|
313 281 | }
|
314 282 | }
|
315 - | impl ::std::error::Error for EventError {
|
283 + | impl ::std::error::Error for ConstrainedHttpPayloadBoundShapeOperationError {
|
316 284 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
317 285 | match &self {
|
318 - | EventError::EventStreamErrorMessage(_inner) => Some(_inner),
|
286 + | ConstrainedHttpPayloadBoundShapeOperationError::ValidationException(_inner) => {
|
287 + | Some(_inner)
|
288 + | }
|
289 + | ConstrainedHttpPayloadBoundShapeOperationError::InternalServerError(_inner) => {
|
290 + | Some(_inner)
|
291 + | }
|
319 292 | }
|
320 293 | }
|
321 294 | }
|
322 - | impl ::std::convert::From<crate::error::EventStreamErrorMessage> for crate::error::EventError {
|
323 - | fn from(variant: crate::error::EventStreamErrorMessage) -> crate::error::EventError {
|
324 - | Self::EventStreamErrorMessage(variant)
|
325 - | }
|
326 - | }
|
327 - | impl<'source> ::pyo3::FromPyObject<'source> for EventError {
|
328 - | fn extract(obj: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
329 - | if let Ok(it) = obj.extract::<crate::error::EventStreamErrorMessage>() {
|
330 - | return Ok(Self::EventStreamErrorMessage(it));
|
331 - | }
|
332 - | Err(::pyo3::exceptions::PyTypeError::new_err(format!(
|
333 - | "failed to extract 'EventError' from '{}'",
|
334 - | obj
|
335 - | )))
|
295 + | impl ::std::convert::From<crate::error::ValidationException>
|
296 + | for crate::error::ConstrainedHttpPayloadBoundShapeOperationError
|
297 + | {
|
298 + | fn from(
|
299 + | variant: crate::error::ValidationException,
|
300 + | ) -> crate::error::ConstrainedHttpPayloadBoundShapeOperationError {
|
301 + | Self::ValidationException(variant)
|
336 302 | }
|
337 303 | }
|
338 - | impl ::pyo3::IntoPy<::pyo3::PyObject> for EventError {
|
339 - | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
340 - | match self {
|
341 - | Self::EventStreamErrorMessage(it) => match ::pyo3::Py::new(py, it) {
|
342 - | Ok(it) => it.into_py(py),
|
343 - | Err(err) => err.into_py(py),
|
344 - | },
|
345 - | }
|
304 + | impl ::std::convert::From<crate::error::InternalServerError>
|
305 + | for crate::error::ConstrainedHttpPayloadBoundShapeOperationError
|
306 + | {
|
307 + | fn from(
|
308 + | variant: crate::error::InternalServerError,
|
309 + | ) -> crate::error::ConstrainedHttpPayloadBoundShapeOperationError {
|
310 + | Self::InternalServerError(variant)
|
346 311 | }
|
347 312 | }
|
348 - | impl ::std::convert::From<EventError> for ::pyo3::PyErr {
|
349 - | fn from(err: EventError) -> ::pyo3::PyErr {
|
313 + |
|
314 + | impl ::std::convert::From<::pyo3::PyErr>
|
315 + | for crate::error::ConstrainedHttpPayloadBoundShapeOperationError
|
316 + | {
|
317 + | fn from(
|
318 + | variant: ::pyo3::PyErr,
|
319 + | ) -> crate::error::ConstrainedHttpPayloadBoundShapeOperationError {
|
350 320 | ::pyo3::Python::with_gil(|py| {
|
351 - | let py_err = ::pyo3::IntoPy::into_py(err, py);
|
352 - | ::pyo3::PyErr::from_value(py_err.as_ref(py))
|
321 + | let error = variant.value(py);
|
322 + | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
323 + | return error.into();
|
324 + | }
|
325 + | crate::error::InternalServerError {
|
326 + | message: error.to_string(),
|
327 + | }
|
328 + | .into()
|
353 329 | })
|
354 330 | }
|
355 331 | }
|
356 332 |
|
357 - | /// Error type for the `StreamingBlobOperation` operation.
|
358 - | /// Each variant represents an error that can occur for the `StreamingBlobOperation` operation.
|
333 + | /// Error type for the `ConstrainedRecursiveShapesOperation` operation.
|
334 + | /// Each variant represents an error that can occur for the `ConstrainedRecursiveShapesOperation` operation.
|
359 335 | #[derive(::std::fmt::Debug)]
|
360 - | pub enum StreamingBlobOperationError {
|
336 + | pub enum ConstrainedRecursiveShapesOperationError {
|
337 + | /// 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.
|
338 + | ValidationException(crate::error::ValidationException),
|
361 339 | #[allow(missing_docs)] // documentation missing in model
|
362 340 | InternalServerError(crate::error::InternalServerError),
|
363 341 | }
|
364 - | impl ::std::fmt::Display for StreamingBlobOperationError {
|
342 + | impl ::std::fmt::Display for ConstrainedRecursiveShapesOperationError {
|
365 343 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
366 344 | match &self {
|
367 - | StreamingBlobOperationError::InternalServerError(_inner) => _inner.fmt(f),
|
345 + | ConstrainedRecursiveShapesOperationError::ValidationException(_inner) => _inner.fmt(f),
|
346 + | ConstrainedRecursiveShapesOperationError::InternalServerError(_inner) => _inner.fmt(f),
|
368 347 | }
|
369 348 | }
|
370 349 | }
|
371 - | impl StreamingBlobOperationError {
|
372 - | /// Returns `true` if the error kind is `StreamingBlobOperationError::InternalServerError`.
|
350 + | impl ConstrainedRecursiveShapesOperationError {
|
351 + | /// Returns `true` if the error kind is `ConstrainedRecursiveShapesOperationError::ValidationException`.
|
352 + | pub fn is_validation_exception(&self) -> bool {
|
353 + | matches!(
|
354 + | &self,
|
355 + | ConstrainedRecursiveShapesOperationError::ValidationException(_)
|
356 + | )
|
357 + | }
|
358 + | /// Returns `true` if the error kind is `ConstrainedRecursiveShapesOperationError::InternalServerError`.
|
373 359 | pub fn is_internal_server_error(&self) -> bool {
|
374 - | matches!(&self, StreamingBlobOperationError::InternalServerError(_))
|
360 + | matches!(
|
361 + | &self,
|
362 + | ConstrainedRecursiveShapesOperationError::InternalServerError(_)
|
363 + | )
|
375 364 | }
|
376 365 | /// Returns the error name string by matching the correct variant.
|
377 366 | pub fn name(&self) -> &'static str {
|
378 367 | match &self {
|
379 - | StreamingBlobOperationError::InternalServerError(_inner) => _inner.name(),
|
368 + | ConstrainedRecursiveShapesOperationError::ValidationException(_inner) => _inner.name(),
|
369 + | ConstrainedRecursiveShapesOperationError::InternalServerError(_inner) => _inner.name(),
|
380 370 | }
|
381 371 | }
|
382 372 | }
|
383 - | impl ::std::error::Error for StreamingBlobOperationError {
|
373 + | impl ::std::error::Error for ConstrainedRecursiveShapesOperationError {
|
384 374 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
385 375 | match &self {
|
386 - | StreamingBlobOperationError::InternalServerError(_inner) => Some(_inner),
|
376 + | ConstrainedRecursiveShapesOperationError::ValidationException(_inner) => Some(_inner),
|
377 + | ConstrainedRecursiveShapesOperationError::InternalServerError(_inner) => Some(_inner),
|
387 378 | }
|
388 379 | }
|
389 380 | }
|
381 + | impl ::std::convert::From<crate::error::ValidationException>
|
382 + | for crate::error::ConstrainedRecursiveShapesOperationError
|
383 + | {
|
384 + | fn from(
|
385 + | variant: crate::error::ValidationException,
|
386 + | ) -> crate::error::ConstrainedRecursiveShapesOperationError {
|
387 + | Self::ValidationException(variant)
|
388 + | }
|
389 + | }
|
390 390 | impl ::std::convert::From<crate::error::InternalServerError>
|
391 - | for crate::error::StreamingBlobOperationError
|
391 + | for crate::error::ConstrainedRecursiveShapesOperationError
|
392 392 | {
|
393 393 | fn from(
|
394 394 | variant: crate::error::InternalServerError,
|
395 - | ) -> crate::error::StreamingBlobOperationError {
|
395 + | ) -> crate::error::ConstrainedRecursiveShapesOperationError {
|
396 396 | Self::InternalServerError(variant)
|
397 397 | }
|
398 398 | }
|
399 399 |
|
400 - | impl ::std::convert::From<::pyo3::PyErr> for crate::error::StreamingBlobOperationError {
|
401 - | fn from(variant: ::pyo3::PyErr) -> crate::error::StreamingBlobOperationError {
|
400 + | impl ::std::convert::From<::pyo3::PyErr>
|
401 + | for crate::error::ConstrainedRecursiveShapesOperationError
|
402 + | {
|
403 + | fn from(variant: ::pyo3::PyErr) -> crate::error::ConstrainedRecursiveShapesOperationError {
|
402 404 | ::pyo3::Python::with_gil(|py| {
|
403 405 | let error = variant.value(py);
|
404 - |
|
406 + | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
407 + | return error.into();
|
408 + | }
|
405 409 | crate::error::InternalServerError {
|
406 410 | message: error.to_string(),
|
407 411 | }
|
408 412 | .into()
|
409 413 | })
|
410 414 | }
|
411 415 | }
|
412 416 |
|
413 - | /// Error type for the `NonStreamingBlobOperation` operation.
|
414 - | /// Each variant represents an error that can occur for the `NonStreamingBlobOperation` operation.
|
417 + | /// Error type for the `QueryParamsTargetingLengthMapOperation` operation.
|
418 + | /// Each variant represents an error that can occur for the `QueryParamsTargetingLengthMapOperation` operation.
|
415 419 | #[derive(::std::fmt::Debug)]
|
416 - | pub enum NonStreamingBlobOperationError {
|
420 + | pub enum QueryParamsTargetingLengthMapOperationError {
|
421 + | /// 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.
|
422 + | ValidationException(crate::error::ValidationException),
|
417 423 | #[allow(missing_docs)] // documentation missing in model
|
418 424 | InternalServerError(crate::error::InternalServerError),
|
419 425 | }
|
420 - | impl ::std::fmt::Display for NonStreamingBlobOperationError {
|
426 + | impl ::std::fmt::Display for QueryParamsTargetingLengthMapOperationError {
|
421 427 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
422 428 | match &self {
|
423 - | NonStreamingBlobOperationError::InternalServerError(_inner) => _inner.fmt(f),
|
429 + | QueryParamsTargetingLengthMapOperationError::ValidationException(_inner) => {
|
430 + | _inner.fmt(f)
|
431 + | }
|
432 + | QueryParamsTargetingLengthMapOperationError::InternalServerError(_inner) => {
|
433 + | _inner.fmt(f)
|
434 + | }
|
424 435 | }
|
425 436 | }
|
426 437 | }
|
427 - | impl NonStreamingBlobOperationError {
|
428 - | /// Returns `true` if the error kind is `NonStreamingBlobOperationError::InternalServerError`.
|
438 + | impl QueryParamsTargetingLengthMapOperationError {
|
439 + | /// Returns `true` if the error kind is `QueryParamsTargetingLengthMapOperationError::ValidationException`.
|
440 + | pub fn is_validation_exception(&self) -> bool {
|
441 + | matches!(
|
442 + | &self,
|
443 + | QueryParamsTargetingLengthMapOperationError::ValidationException(_)
|
444 + | )
|
445 + | }
|
446 + | /// Returns `true` if the error kind is `QueryParamsTargetingLengthMapOperationError::InternalServerError`.
|
429 447 | pub fn is_internal_server_error(&self) -> bool {
|
430 448 | matches!(
|
431 449 | &self,
|
432 - | NonStreamingBlobOperationError::InternalServerError(_)
|
450 + | QueryParamsTargetingLengthMapOperationError::InternalServerError(_)
|
433 451 | )
|
434 452 | }
|
435 453 | /// Returns the error name string by matching the correct variant.
|
436 454 | pub fn name(&self) -> &'static str {
|
437 455 | match &self {
|
438 - | NonStreamingBlobOperationError::InternalServerError(_inner) => _inner.name(),
|
456 + | QueryParamsTargetingLengthMapOperationError::ValidationException(_inner) => {
|
457 + | _inner.name()
|
458 + | }
|
459 + | QueryParamsTargetingLengthMapOperationError::InternalServerError(_inner) => {
|
460 + | _inner.name()
|
461 + | }
|
439 462 | }
|
440 463 | }
|
441 464 | }
|
442 - | impl ::std::error::Error for NonStreamingBlobOperationError {
|
465 + | impl ::std::error::Error for QueryParamsTargetingLengthMapOperationError {
|
443 466 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
444 467 | match &self {
|
445 - | NonStreamingBlobOperationError::InternalServerError(_inner) => Some(_inner),
|
468 + | QueryParamsTargetingLengthMapOperationError::ValidationException(_inner) => {
|
469 + | Some(_inner)
|
470 + | }
|
471 + | QueryParamsTargetingLengthMapOperationError::InternalServerError(_inner) => {
|
472 + | Some(_inner)
|
473 + | }
|
446 474 | }
|
447 475 | }
|
448 476 | }
|
477 + | impl ::std::convert::From<crate::error::ValidationException>
|
478 + | for crate::error::QueryParamsTargetingLengthMapOperationError
|
479 + | {
|
480 + | fn from(
|
481 + | variant: crate::error::ValidationException,
|
482 + | ) -> crate::error::QueryParamsTargetingLengthMapOperationError {
|
483 + | Self::ValidationException(variant)
|
484 + | }
|
485 + | }
|
449 486 | impl ::std::convert::From<crate::error::InternalServerError>
|
450 - | for crate::error::NonStreamingBlobOperationError
|
487 + | for crate::error::QueryParamsTargetingLengthMapOperationError
|
451 488 | {
|
452 489 | fn from(
|
453 490 | variant: crate::error::InternalServerError,
|
454 - | ) -> crate::error::NonStreamingBlobOperationError {
|
491 + | ) -> crate::error::QueryParamsTargetingLengthMapOperationError {
|
455 492 | Self::InternalServerError(variant)
|
456 493 | }
|
457 494 | }
|
458 495 |
|
459 - | impl ::std::convert::From<::pyo3::PyErr> for crate::error::NonStreamingBlobOperationError {
|
460 - | fn from(variant: ::pyo3::PyErr) -> crate::error::NonStreamingBlobOperationError {
|
496 + | impl ::std::convert::From<::pyo3::PyErr>
|
497 + | for crate::error::QueryParamsTargetingLengthMapOperationError
|
498 + | {
|
499 + | fn from(variant: ::pyo3::PyErr) -> crate::error::QueryParamsTargetingLengthMapOperationError {
|
461 500 | ::pyo3::Python::with_gil(|py| {
|
462 501 | let error = variant.value(py);
|
463 - |
|
502 + | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
503 + | return error.into();
|
504 + | }
|
464 505 | crate::error::InternalServerError {
|
465 506 | message: error.to_string(),
|
466 507 | }
|
467 508 | .into()
|
468 509 | })
|
469 510 | }
|
470 511 | }
|
471 512 |
|
472 - | /// Error type for the `QueryParamsTargetingMapOfEnumStringOperation` operation.
|
473 - | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfEnumStringOperation` operation.
|
513 + | /// Error type for the `QueryParamsTargetingMapOfLengthStringOperation` operation.
|
514 + | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfLengthStringOperation` operation.
|
474 515 | #[derive(::std::fmt::Debug)]
|
475 - | pub enum QueryParamsTargetingMapOfEnumStringOperationError {
|
516 + | pub enum QueryParamsTargetingMapOfLengthStringOperationError {
|
476 517 | /// 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.
|
477 518 | ValidationException(crate::error::ValidationException),
|
478 519 | #[allow(missing_docs)] // documentation missing in model
|
479 520 | InternalServerError(crate::error::InternalServerError),
|
480 521 | }
|
481 - | impl ::std::fmt::Display for QueryParamsTargetingMapOfEnumStringOperationError {
|
522 + | impl ::std::fmt::Display for QueryParamsTargetingMapOfLengthStringOperationError {
|
482 523 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
483 524 | match &self {
|
484 - | QueryParamsTargetingMapOfEnumStringOperationError::ValidationException(_inner) => {
|
525 + | QueryParamsTargetingMapOfLengthStringOperationError::ValidationException(_inner) => {
|
485 526 | _inner.fmt(f)
|
486 527 | }
|
487 - | QueryParamsTargetingMapOfEnumStringOperationError::InternalServerError(_inner) => {
|
528 + | QueryParamsTargetingMapOfLengthStringOperationError::InternalServerError(_inner) => {
|
488 529 | _inner.fmt(f)
|
489 530 | }
|
490 531 | }
|
491 532 | }
|
492 533 | }
|
493 - | impl QueryParamsTargetingMapOfEnumStringOperationError {
|
494 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfEnumStringOperationError::ValidationException`.
|
534 + | impl QueryParamsTargetingMapOfLengthStringOperationError {
|
535 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfLengthStringOperationError::ValidationException`.
|
495 536 | pub fn is_validation_exception(&self) -> bool {
|
496 537 | matches!(
|
497 538 | &self,
|
498 - | QueryParamsTargetingMapOfEnumStringOperationError::ValidationException(_)
|
539 + | QueryParamsTargetingMapOfLengthStringOperationError::ValidationException(_)
|
499 540 | )
|
500 541 | }
|
501 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfEnumStringOperationError::InternalServerError`.
|
542 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfLengthStringOperationError::InternalServerError`.
|
502 543 | pub fn is_internal_server_error(&self) -> bool {
|
503 544 | matches!(
|
504 545 | &self,
|
505 - | QueryParamsTargetingMapOfEnumStringOperationError::InternalServerError(_)
|
546 + | QueryParamsTargetingMapOfLengthStringOperationError::InternalServerError(_)
|
506 547 | )
|
507 548 | }
|
508 549 | /// Returns the error name string by matching the correct variant.
|
509 550 | pub fn name(&self) -> &'static str {
|
510 551 | match &self {
|
511 - | QueryParamsTargetingMapOfEnumStringOperationError::ValidationException(_inner) => {
|
552 + | QueryParamsTargetingMapOfLengthStringOperationError::ValidationException(_inner) => {
|
512 553 | _inner.name()
|
513 554 | }
|
514 - | QueryParamsTargetingMapOfEnumStringOperationError::InternalServerError(_inner) => {
|
555 + | QueryParamsTargetingMapOfLengthStringOperationError::InternalServerError(_inner) => {
|
515 556 | _inner.name()
|
516 557 | }
|
517 558 | }
|
518 559 | }
|
519 560 | }
|
520 - | impl ::std::error::Error for QueryParamsTargetingMapOfEnumStringOperationError {
|
561 + | impl ::std::error::Error for QueryParamsTargetingMapOfLengthStringOperationError {
|
521 562 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
522 563 | match &self {
|
523 - | QueryParamsTargetingMapOfEnumStringOperationError::ValidationException(_inner) => {
|
564 + | QueryParamsTargetingMapOfLengthStringOperationError::ValidationException(_inner) => {
|
524 565 | Some(_inner)
|
525 566 | }
|
526 - | QueryParamsTargetingMapOfEnumStringOperationError::InternalServerError(_inner) => {
|
567 + | QueryParamsTargetingMapOfLengthStringOperationError::InternalServerError(_inner) => {
|
527 568 | Some(_inner)
|
528 569 | }
|
529 570 | }
|
530 571 | }
|
531 572 | }
|
532 573 | impl ::std::convert::From<crate::error::ValidationException>
|
533 - | for crate::error::QueryParamsTargetingMapOfEnumStringOperationError
|
574 + | for crate::error::QueryParamsTargetingMapOfLengthStringOperationError
|
534 575 | {
|
535 576 | fn from(
|
536 577 | variant: crate::error::ValidationException,
|
537 - | ) -> crate::error::QueryParamsTargetingMapOfEnumStringOperationError {
|
578 + | ) -> crate::error::QueryParamsTargetingMapOfLengthStringOperationError {
|
538 579 | Self::ValidationException(variant)
|
539 580 | }
|
540 581 | }
|
541 582 | impl ::std::convert::From<crate::error::InternalServerError>
|
542 - | for crate::error::QueryParamsTargetingMapOfEnumStringOperationError
|
583 + | for crate::error::QueryParamsTargetingMapOfLengthStringOperationError
|
543 584 | {
|
544 585 | fn from(
|
545 586 | variant: crate::error::InternalServerError,
|
546 - | ) -> crate::error::QueryParamsTargetingMapOfEnumStringOperationError {
|
587 + | ) -> crate::error::QueryParamsTargetingMapOfLengthStringOperationError {
|
547 588 | Self::InternalServerError(variant)
|
548 589 | }
|
549 590 | }
|
550 591 |
|
551 592 | impl ::std::convert::From<::pyo3::PyErr>
|
552 - | for crate::error::QueryParamsTargetingMapOfEnumStringOperationError
|
593 + | for crate::error::QueryParamsTargetingMapOfLengthStringOperationError
|
553 594 | {
|
554 595 | fn from(
|
555 596 | variant: ::pyo3::PyErr,
|
556 - | ) -> crate::error::QueryParamsTargetingMapOfEnumStringOperationError {
|
597 + | ) -> crate::error::QueryParamsTargetingMapOfLengthStringOperationError {
|
557 598 | ::pyo3::Python::with_gil(|py| {
|
558 599 | let error = variant.value(py);
|
559 600 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
560 601 | return error.into();
|
561 602 | }
|
562 603 | crate::error::InternalServerError {
|
563 604 | message: error.to_string(),
|
564 605 | }
|
565 606 | .into()
|
566 607 | })
|
567 608 | }
|
568 609 | }
|
569 610 |
|
570 - | /// Error type for the `HttpPrefixHeadersTargetingLengthMapOperation` operation.
|
571 - | /// Each variant represents an error that can occur for the `HttpPrefixHeadersTargetingLengthMapOperation` operation.
|
611 + | /// Error type for the `QueryParamsTargetingMapOfListOfLengthStringOperation` operation.
|
612 + | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfListOfLengthStringOperation` operation.
|
572 613 | #[derive(::std::fmt::Debug)]
|
573 - | pub enum HttpPrefixHeadersTargetingLengthMapOperationError {
|
614 + | pub enum QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
574 615 | /// 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.
|
575 616 | ValidationException(crate::error::ValidationException),
|
576 617 | #[allow(missing_docs)] // documentation missing in model
|
577 618 | InternalServerError(crate::error::InternalServerError),
|
578 619 | }
|
579 - | impl ::std::fmt::Display for HttpPrefixHeadersTargetingLengthMapOperationError {
|
620 + | impl ::std::fmt::Display for QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
580 621 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
581 622 | match &self {
|
582 - | HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException(_inner) => {
|
583 - | _inner.fmt(f)
|
584 - | }
|
585 - | HttpPrefixHeadersTargetingLengthMapOperationError::InternalServerError(_inner) => {
|
586 - | _inner.fmt(f)
|
587 - | }
|
623 + | QueryParamsTargetingMapOfListOfLengthStringOperationError::ValidationException(
|
624 + | _inner,
|
625 + | ) => _inner.fmt(f),
|
626 + | QueryParamsTargetingMapOfListOfLengthStringOperationError::InternalServerError(
|
627 + | _inner,
|
628 + | ) => _inner.fmt(f),
|
588 629 | }
|
589 630 | }
|
590 631 | }
|
591 - | impl HttpPrefixHeadersTargetingLengthMapOperationError {
|
592 - | /// Returns `true` if the error kind is `HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException`.
|
632 + | impl QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
633 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfLengthStringOperationError::ValidationException`.
|
593 634 | pub fn is_validation_exception(&self) -> bool {
|
594 635 | matches!(
|
595 636 | &self,
|
596 - | HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException(_)
|
637 + | QueryParamsTargetingMapOfListOfLengthStringOperationError::ValidationException(_)
|
597 638 | )
|
598 639 | }
|
599 - | /// Returns `true` if the error kind is `HttpPrefixHeadersTargetingLengthMapOperationError::InternalServerError`.
|
640 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfLengthStringOperationError::InternalServerError`.
|
600 641 | pub fn is_internal_server_error(&self) -> bool {
|
601 642 | matches!(
|
602 643 | &self,
|
603 - | HttpPrefixHeadersTargetingLengthMapOperationError::InternalServerError(_)
|
644 + | QueryParamsTargetingMapOfListOfLengthStringOperationError::InternalServerError(_)
|
604 645 | )
|
605 646 | }
|
606 647 | /// Returns the error name string by matching the correct variant.
|
607 648 | pub fn name(&self) -> &'static str {
|
608 649 | match &self {
|
609 - | HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException(_inner) => {
|
610 - | _inner.name()
|
611 - | }
|
612 - | HttpPrefixHeadersTargetingLengthMapOperationError::InternalServerError(_inner) => {
|
613 - | _inner.name()
|
614 - | }
|
650 + | QueryParamsTargetingMapOfListOfLengthStringOperationError::ValidationException(
|
651 + | _inner,
|
652 + | ) => _inner.name(),
|
653 + | QueryParamsTargetingMapOfListOfLengthStringOperationError::InternalServerError(
|
654 + | _inner,
|
655 + | ) => _inner.name(),
|
615 656 | }
|
616 657 | }
|
617 658 | }
|
618 - | impl ::std::error::Error for HttpPrefixHeadersTargetingLengthMapOperationError {
|
659 + | impl ::std::error::Error for QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
619 660 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
620 661 | match &self {
|
621 - | HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException(_inner) => {
|
622 - | Some(_inner)
|
623 - | }
|
624 - | HttpPrefixHeadersTargetingLengthMapOperationError::InternalServerError(_inner) => {
|
625 - | Some(_inner)
|
626 - | }
|
662 + | QueryParamsTargetingMapOfListOfLengthStringOperationError::ValidationException(
|
663 + | _inner,
|
664 + | ) => Some(_inner),
|
665 + | QueryParamsTargetingMapOfListOfLengthStringOperationError::InternalServerError(
|
666 + | _inner,
|
667 + | ) => Some(_inner),
|
627 668 | }
|
628 669 | }
|
629 670 | }
|
630 671 | impl ::std::convert::From<crate::error::ValidationException>
|
631 - | for crate::error::HttpPrefixHeadersTargetingLengthMapOperationError
|
672 + | for crate::error::QueryParamsTargetingMapOfListOfLengthStringOperationError
|
632 673 | {
|
633 674 | fn from(
|
634 675 | variant: crate::error::ValidationException,
|
635 - | ) -> crate::error::HttpPrefixHeadersTargetingLengthMapOperationError {
|
676 + | ) -> crate::error::QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
636 677 | Self::ValidationException(variant)
|
637 678 | }
|
638 679 | }
|
639 680 | impl ::std::convert::From<crate::error::InternalServerError>
|
640 - | for crate::error::HttpPrefixHeadersTargetingLengthMapOperationError
|
681 + | for crate::error::QueryParamsTargetingMapOfListOfLengthStringOperationError
|
641 682 | {
|
642 683 | fn from(
|
643 684 | variant: crate::error::InternalServerError,
|
644 - | ) -> crate::error::HttpPrefixHeadersTargetingLengthMapOperationError {
|
685 + | ) -> crate::error::QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
645 686 | Self::InternalServerError(variant)
|
646 687 | }
|
647 688 | }
|
648 689 |
|
649 690 | impl ::std::convert::From<::pyo3::PyErr>
|
650 - | for crate::error::HttpPrefixHeadersTargetingLengthMapOperationError
|
691 + | for crate::error::QueryParamsTargetingMapOfListOfLengthStringOperationError
|
651 692 | {
|
652 693 | fn from(
|
653 694 | variant: ::pyo3::PyErr,
|
654 - | ) -> crate::error::HttpPrefixHeadersTargetingLengthMapOperationError {
|
695 + | ) -> crate::error::QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
655 696 | ::pyo3::Python::with_gil(|py| {
|
656 697 | let error = variant.value(py);
|
657 698 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
658 699 | return error.into();
|
659 700 | }
|
660 701 | crate::error::InternalServerError {
|
661 702 | message: error.to_string(),
|
662 703 | }
|
663 704 | .into()
|
664 705 | })
|
665 706 | }
|
666 707 | }
|
667 708 |
|
668 - | /// Error type for the `QueryParamsTargetingMapOfListOfLengthPatternStringOperation` operation.
|
669 - | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfListOfLengthPatternStringOperation` operation.
|
709 + | /// Error type for the `QueryParamsTargetingMapOfSetOfLengthStringOperation` operation.
|
710 + | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfSetOfLengthStringOperation` operation.
|
670 711 | #[derive(::std::fmt::Debug)]
|
671 - | pub enum QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
712 + | pub enum QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
672 713 | /// 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.
|
673 714 | ValidationException(crate::error::ValidationException),
|
674 715 | #[allow(missing_docs)] // documentation missing in model
|
675 716 | InternalServerError(crate::error::InternalServerError),
|
676 717 | }
|
677 - | impl ::std::fmt::Display for QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
718 + | impl ::std::fmt::Display for QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
678 719 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
679 720 | match &self {
|
680 - | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException(_inner) =>
|
681 - | _inner.fmt(f)
|
682 - | ,
|
683 - | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::InternalServerError(_inner) =>
|
684 - | _inner.fmt(f)
|
685 - | ,
|
721 + | QueryParamsTargetingMapOfSetOfLengthStringOperationError::ValidationException(
|
722 + | _inner,
|
723 + | ) => _inner.fmt(f),
|
724 + | QueryParamsTargetingMapOfSetOfLengthStringOperationError::InternalServerError(
|
725 + | _inner,
|
726 + | ) => _inner.fmt(f),
|
686 727 | }
|
687 728 | }
|
688 729 | }
|
689 - | impl QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
690 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException`.
|
730 + | impl QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
731 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfSetOfLengthStringOperationError::ValidationException`.
|
691 732 | pub fn is_validation_exception(&self) -> bool {
|
692 733 | matches!(
|
693 734 | &self,
|
694 - | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException(
|
695 - | _
|
696 - | )
|
735 + | QueryParamsTargetingMapOfSetOfLengthStringOperationError::ValidationException(_)
|
697 736 | )
|
698 737 | }
|
699 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::InternalServerError`.
|
738 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfSetOfLengthStringOperationError::InternalServerError`.
|
700 739 | pub fn is_internal_server_error(&self) -> bool {
|
701 740 | matches!(
|
702 741 | &self,
|
703 - | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::InternalServerError(
|
704 - | _
|
705 - | )
|
742 + | QueryParamsTargetingMapOfSetOfLengthStringOperationError::InternalServerError(_)
|
706 743 | )
|
707 744 | }
|
708 745 | /// Returns the error name string by matching the correct variant.
|
709 746 | pub fn name(&self) -> &'static str {
|
710 747 | match &self {
|
711 - | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException(_inner) =>
|
712 - | _inner.name()
|
713 - | ,
|
714 - | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::InternalServerError(_inner) =>
|
715 - | _inner.name()
|
716 - | ,
|
748 + | QueryParamsTargetingMapOfSetOfLengthStringOperationError::ValidationException(
|
749 + | _inner,
|
750 + | ) => _inner.name(),
|
751 + | QueryParamsTargetingMapOfSetOfLengthStringOperationError::InternalServerError(
|
752 + | _inner,
|
753 + | ) => _inner.name(),
|
717 754 | }
|
718 755 | }
|
719 756 | }
|
720 - | impl ::std::error::Error for QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
757 + | impl ::std::error::Error for QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
721 758 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
722 759 | match &self {
|
723 - | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException(_inner) =>
|
724 - | Some(_inner)
|
725 - | ,
|
726 - | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::InternalServerError(_inner) =>
|
727 - | Some(_inner)
|
728 - | ,
|
760 + | QueryParamsTargetingMapOfSetOfLengthStringOperationError::ValidationException(
|
761 + | _inner,
|
762 + | ) => Some(_inner),
|
763 + | QueryParamsTargetingMapOfSetOfLengthStringOperationError::InternalServerError(
|
764 + | _inner,
|
765 + | ) => Some(_inner),
|
729 766 | }
|
730 767 | }
|
731 768 | }
|
732 769 | impl ::std::convert::From<crate::error::ValidationException>
|
733 - | for crate::error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError
|
770 + | for crate::error::QueryParamsTargetingMapOfSetOfLengthStringOperationError
|
734 771 | {
|
735 772 | fn from(
|
736 773 | variant: crate::error::ValidationException,
|
737 - | ) -> crate::error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
774 + | ) -> crate::error::QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
738 775 | Self::ValidationException(variant)
|
739 776 | }
|
740 777 | }
|
741 778 | impl ::std::convert::From<crate::error::InternalServerError>
|
742 - | for crate::error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError
|
779 + | for crate::error::QueryParamsTargetingMapOfSetOfLengthStringOperationError
|
743 780 | {
|
744 781 | fn from(
|
745 782 | variant: crate::error::InternalServerError,
|
746 - | ) -> crate::error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
783 + | ) -> crate::error::QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
747 784 | Self::InternalServerError(variant)
|
748 785 | }
|
749 786 | }
|
750 787 |
|
751 788 | impl ::std::convert::From<::pyo3::PyErr>
|
752 - | for crate::error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError
|
789 + | for crate::error::QueryParamsTargetingMapOfSetOfLengthStringOperationError
|
753 790 | {
|
754 791 | fn from(
|
755 792 | variant: ::pyo3::PyErr,
|
756 - | ) -> crate::error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
793 + | ) -> crate::error::QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
757 794 | ::pyo3::Python::with_gil(|py| {
|
758 795 | let error = variant.value(py);
|
759 796 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
760 797 | return error.into();
|
761 798 | }
|
762 799 | crate::error::InternalServerError {
|
763 800 | message: error.to_string(),
|
764 801 | }
|
765 802 | .into()
|
766 803 | })
|
767 804 | }
|
768 805 | }
|
769 806 |
|
770 - | /// Error type for the `QueryParamsTargetingMapOfLengthPatternStringOperation` operation.
|
771 - | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfLengthPatternStringOperation` operation.
|
807 + | /// Error type for the `QueryParamsTargetingMapOfLengthListOfPatternStringOperation` operation.
|
808 + | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfLengthListOfPatternStringOperation` operation.
|
772 809 | #[derive(::std::fmt::Debug)]
|
773 - | pub enum QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
810 + | pub enum QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
774 811 | /// 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.
|
775 812 | ValidationException(crate::error::ValidationException),
|
776 813 | #[allow(missing_docs)] // documentation missing in model
|
777 814 | InternalServerError(crate::error::InternalServerError),
|
778 815 | }
|
779 - | impl ::std::fmt::Display for QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
816 + | impl ::std::fmt::Display for QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
780 817 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
781 818 | match &self {
|
782 - | QueryParamsTargetingMapOfLengthPatternStringOperationError::ValidationException(
|
783 - | _inner,
|
784 - | ) => _inner.fmt(f),
|
785 - | QueryParamsTargetingMapOfLengthPatternStringOperationError::InternalServerError(
|
786 - | _inner,
|
787 - | ) => _inner.fmt(f),
|
819 + | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException(_inner) =>
|
820 + | _inner.fmt(f)
|
821 + | ,
|
822 + | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::InternalServerError(_inner) =>
|
823 + | _inner.fmt(f)
|
824 + | ,
|
788 825 | }
|
789 826 | }
|
790 827 | }
|
791 - | impl QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
792 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfLengthPatternStringOperationError::ValidationException`.
|
828 + | impl QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
829 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException`.
|
793 830 | pub fn is_validation_exception(&self) -> bool {
|
794 831 | matches!(
|
795 832 | &self,
|
796 - | QueryParamsTargetingMapOfLengthPatternStringOperationError::ValidationException(_)
|
833 + | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException(
|
834 + | _
|
835 + | )
|
797 836 | )
|
798 837 | }
|
799 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfLengthPatternStringOperationError::InternalServerError`.
|
838 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::InternalServerError`.
|
800 839 | pub fn is_internal_server_error(&self) -> bool {
|
801 840 | matches!(
|
802 841 | &self,
|
803 - | QueryParamsTargetingMapOfLengthPatternStringOperationError::InternalServerError(_)
|
842 + | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::InternalServerError(
|
843 + | _
|
844 + | )
|
804 845 | )
|
805 846 | }
|
806 847 | /// Returns the error name string by matching the correct variant.
|
807 848 | pub fn name(&self) -> &'static str {
|
808 849 | match &self {
|
809 - | QueryParamsTargetingMapOfLengthPatternStringOperationError::ValidationException(
|
810 - | _inner,
|
811 - | ) => _inner.name(),
|
812 - | QueryParamsTargetingMapOfLengthPatternStringOperationError::InternalServerError(
|
813 - | _inner,
|
814 - | ) => _inner.name(),
|
850 + | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException(_inner) =>
|
851 + | _inner.name()
|
852 + | ,
|
853 + | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::InternalServerError(_inner) =>
|
854 + | _inner.name()
|
855 + | ,
|
815 856 | }
|
816 857 | }
|
817 858 | }
|
818 - | impl ::std::error::Error for QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
859 + | impl ::std::error::Error for QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
819 860 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
820 861 | match &self {
|
821 - | QueryParamsTargetingMapOfLengthPatternStringOperationError::ValidationException(
|
822 - | _inner,
|
823 - | ) => Some(_inner),
|
824 - | QueryParamsTargetingMapOfLengthPatternStringOperationError::InternalServerError(
|
825 - | _inner,
|
826 - | ) => Some(_inner),
|
862 + | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException(_inner) =>
|
863 + | Some(_inner)
|
864 + | ,
|
865 + | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::InternalServerError(_inner) =>
|
866 + | Some(_inner)
|
867 + | ,
|
827 868 | }
|
828 869 | }
|
829 870 | }
|
830 871 | impl ::std::convert::From<crate::error::ValidationException>
|
831 - | for crate::error::QueryParamsTargetingMapOfLengthPatternStringOperationError
|
872 + | for crate::error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError
|
832 873 | {
|
833 874 | fn from(
|
834 875 | variant: crate::error::ValidationException,
|
835 - | ) -> crate::error::QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
876 + | ) -> crate::error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
836 877 | Self::ValidationException(variant)
|
837 878 | }
|
838 879 | }
|
839 880 | impl ::std::convert::From<crate::error::InternalServerError>
|
840 - | for crate::error::QueryParamsTargetingMapOfLengthPatternStringOperationError
|
881 + | for crate::error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError
|
841 882 | {
|
842 883 | fn from(
|
843 884 | variant: crate::error::InternalServerError,
|
844 - | ) -> crate::error::QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
885 + | ) -> crate::error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
845 886 | Self::InternalServerError(variant)
|
846 887 | }
|
847 888 | }
|
848 889 |
|
849 890 | impl ::std::convert::From<::pyo3::PyErr>
|
850 - | for crate::error::QueryParamsTargetingMapOfLengthPatternStringOperationError
|
891 + | for crate::error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError
|
851 892 | {
|
852 893 | fn from(
|
853 894 | variant: ::pyo3::PyErr,
|
854 - | ) -> crate::error::QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
895 + | ) -> crate::error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
855 896 | ::pyo3::Python::with_gil(|py| {
|
856 897 | let error = variant.value(py);
|
857 898 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
858 899 | return error.into();
|
859 900 | }
|
860 901 | crate::error::InternalServerError {
|
861 902 | message: error.to_string(),
|
862 903 | }
|
863 904 | .into()
|
864 905 | })
|
865 906 | }
|
866 907 | }
|
867 908 |
|
868 - | /// Error type for the `QueryParamsTargetingMapOfListOfPatternStringOperation` operation.
|
869 - | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfListOfPatternStringOperation` operation.
|
909 + | /// Error type for the `QueryParamsTargetingMapOfListOfEnumStringOperation` operation.
|
910 + | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfListOfEnumStringOperation` operation.
|
870 911 | #[derive(::std::fmt::Debug)]
|
871 - | pub enum QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
912 + | pub enum QueryParamsTargetingMapOfListOfEnumStringOperationError {
|
872 913 | /// 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.
|
873 914 | ValidationException(crate::error::ValidationException),
|
874 915 | #[allow(missing_docs)] // documentation missing in model
|
875 916 | InternalServerError(crate::error::InternalServerError),
|
876 917 | }
|
877 - | impl ::std::fmt::Display for QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
918 + | impl ::std::fmt::Display for QueryParamsTargetingMapOfListOfEnumStringOperationError {
|
878 919 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
879 920 | match &self {
|
880 - | QueryParamsTargetingMapOfListOfPatternStringOperationError::ValidationException(
|
921 + | QueryParamsTargetingMapOfListOfEnumStringOperationError::ValidationException(
|
881 922 | _inner,
|
882 923 | ) => _inner.fmt(f),
|
883 - | QueryParamsTargetingMapOfListOfPatternStringOperationError::InternalServerError(
|
924 + | QueryParamsTargetingMapOfListOfEnumStringOperationError::InternalServerError(
|
884 925 | _inner,
|
885 926 | ) => _inner.fmt(f),
|
886 927 | }
|
887 928 | }
|
888 929 | }
|
889 - | impl QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
890 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfPatternStringOperationError::ValidationException`.
|
930 + | impl QueryParamsTargetingMapOfListOfEnumStringOperationError {
|
931 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfEnumStringOperationError::ValidationException`.
|
891 932 | pub fn is_validation_exception(&self) -> bool {
|
892 933 | matches!(
|
893 934 | &self,
|
894 - | QueryParamsTargetingMapOfListOfPatternStringOperationError::ValidationException(_)
|
935 + | QueryParamsTargetingMapOfListOfEnumStringOperationError::ValidationException(_)
|
895 936 | )
|
896 937 | }
|
897 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfPatternStringOperationError::InternalServerError`.
|
938 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfEnumStringOperationError::InternalServerError`.
|
898 939 | pub fn is_internal_server_error(&self) -> bool {
|
899 940 | matches!(
|
900 941 | &self,
|
901 - | QueryParamsTargetingMapOfListOfPatternStringOperationError::InternalServerError(_)
|
942 + | QueryParamsTargetingMapOfListOfEnumStringOperationError::InternalServerError(_)
|
902 943 | )
|
903 944 | }
|
904 945 | /// Returns the error name string by matching the correct variant.
|
905 946 | pub fn name(&self) -> &'static str {
|
906 947 | match &self {
|
907 - | QueryParamsTargetingMapOfListOfPatternStringOperationError::ValidationException(
|
948 + | QueryParamsTargetingMapOfListOfEnumStringOperationError::ValidationException(
|
908 949 | _inner,
|
909 950 | ) => _inner.name(),
|
910 - | QueryParamsTargetingMapOfListOfPatternStringOperationError::InternalServerError(
|
951 + | QueryParamsTargetingMapOfListOfEnumStringOperationError::InternalServerError(
|
911 952 | _inner,
|
912 953 | ) => _inner.name(),
|
913 954 | }
|
914 955 | }
|
915 956 | }
|
916 - | impl ::std::error::Error for QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
957 + | impl ::std::error::Error for QueryParamsTargetingMapOfListOfEnumStringOperationError {
|
917 958 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
918 959 | match &self {
|
919 - | QueryParamsTargetingMapOfListOfPatternStringOperationError::ValidationException(
|
960 + | QueryParamsTargetingMapOfListOfEnumStringOperationError::ValidationException(
|
920 961 | _inner,
|
921 962 | ) => Some(_inner),
|
922 - | QueryParamsTargetingMapOfListOfPatternStringOperationError::InternalServerError(
|
963 + | QueryParamsTargetingMapOfListOfEnumStringOperationError::InternalServerError(
|
923 964 | _inner,
|
924 965 | ) => Some(_inner),
|
925 966 | }
|
926 967 | }
|
927 968 | }
|
928 969 | impl ::std::convert::From<crate::error::ValidationException>
|
929 - | for crate::error::QueryParamsTargetingMapOfListOfPatternStringOperationError
|
970 + | for crate::error::QueryParamsTargetingMapOfListOfEnumStringOperationError
|
930 971 | {
|
931 972 | fn from(
|
932 973 | variant: crate::error::ValidationException,
|
933 - | ) -> crate::error::QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
974 + | ) -> crate::error::QueryParamsTargetingMapOfListOfEnumStringOperationError {
|
934 975 | Self::ValidationException(variant)
|
935 976 | }
|
936 977 | }
|
937 978 | impl ::std::convert::From<crate::error::InternalServerError>
|
938 - | for crate::error::QueryParamsTargetingMapOfListOfPatternStringOperationError
|
979 + | for crate::error::QueryParamsTargetingMapOfListOfEnumStringOperationError
|
939 980 | {
|
940 981 | fn from(
|
941 982 | variant: crate::error::InternalServerError,
|
942 - | ) -> crate::error::QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
983 + | ) -> crate::error::QueryParamsTargetingMapOfListOfEnumStringOperationError {
|
943 984 | Self::InternalServerError(variant)
|
944 985 | }
|
945 986 | }
|
946 987 |
|
947 988 | impl ::std::convert::From<::pyo3::PyErr>
|
948 - | for crate::error::QueryParamsTargetingMapOfListOfPatternStringOperationError
|
989 + | for crate::error::QueryParamsTargetingMapOfListOfEnumStringOperationError
|
949 990 | {
|
950 991 | fn from(
|
951 992 | variant: ::pyo3::PyErr,
|
952 - | ) -> crate::error::QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
993 + | ) -> crate::error::QueryParamsTargetingMapOfListOfEnumStringOperationError {
|
953 994 | ::pyo3::Python::with_gil(|py| {
|
954 995 | let error = variant.value(py);
|
955 996 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
956 997 | return error.into();
|
957 998 | }
|
958 999 | crate::error::InternalServerError {
|
959 1000 | message: error.to_string(),
|
960 1001 | }
|
961 1002 | .into()
|
962 1003 | })
|
1054 1095 | return error.into();
|
1055 1096 | }
|
1056 1097 | crate::error::InternalServerError {
|
1057 1098 | message: error.to_string(),
|
1058 1099 | }
|
1059 1100 | .into()
|
1060 1101 | })
|
1061 1102 | }
|
1062 1103 | }
|
1063 1104 |
|
1064 - | /// Error type for the `QueryParamsTargetingMapOfListOfEnumStringOperation` operation.
|
1065 - | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfListOfEnumStringOperation` operation.
|
1105 + | /// Error type for the `QueryParamsTargetingMapOfListOfPatternStringOperation` operation.
|
1106 + | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfListOfPatternStringOperation` operation.
|
1066 1107 | #[derive(::std::fmt::Debug)]
|
1067 - | pub enum QueryParamsTargetingMapOfListOfEnumStringOperationError {
|
1108 + | pub enum QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
1068 1109 | /// 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.
|
1069 1110 | ValidationException(crate::error::ValidationException),
|
1070 1111 | #[allow(missing_docs)] // documentation missing in model
|
1071 1112 | InternalServerError(crate::error::InternalServerError),
|
1072 1113 | }
|
1073 - | impl ::std::fmt::Display for QueryParamsTargetingMapOfListOfEnumStringOperationError {
|
1114 + | impl ::std::fmt::Display for QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
1074 1115 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1075 1116 | match &self {
|
1076 - | QueryParamsTargetingMapOfListOfEnumStringOperationError::ValidationException(
|
1117 + | QueryParamsTargetingMapOfListOfPatternStringOperationError::ValidationException(
|
1077 1118 | _inner,
|
1078 1119 | ) => _inner.fmt(f),
|
1079 - | QueryParamsTargetingMapOfListOfEnumStringOperationError::InternalServerError(
|
1120 + | QueryParamsTargetingMapOfListOfPatternStringOperationError::InternalServerError(
|
1080 1121 | _inner,
|
1081 1122 | ) => _inner.fmt(f),
|
1082 1123 | }
|
1083 1124 | }
|
1084 1125 | }
|
1085 - | impl QueryParamsTargetingMapOfListOfEnumStringOperationError {
|
1086 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfEnumStringOperationError::ValidationException`.
|
1126 + | impl QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
1127 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfPatternStringOperationError::ValidationException`.
|
1087 1128 | pub fn is_validation_exception(&self) -> bool {
|
1088 1129 | matches!(
|
1089 1130 | &self,
|
1090 - | QueryParamsTargetingMapOfListOfEnumStringOperationError::ValidationException(_)
|
1131 + | QueryParamsTargetingMapOfListOfPatternStringOperationError::ValidationException(_)
|
1091 1132 | )
|
1092 1133 | }
|
1093 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfEnumStringOperationError::InternalServerError`.
|
1134 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfPatternStringOperationError::InternalServerError`.
|
1094 1135 | pub fn is_internal_server_error(&self) -> bool {
|
1095 1136 | matches!(
|
1096 1137 | &self,
|
1097 - | QueryParamsTargetingMapOfListOfEnumStringOperationError::InternalServerError(_)
|
1138 + | QueryParamsTargetingMapOfListOfPatternStringOperationError::InternalServerError(_)
|
1098 1139 | )
|
1099 1140 | }
|
1100 1141 | /// Returns the error name string by matching the correct variant.
|
1101 1142 | pub fn name(&self) -> &'static str {
|
1102 1143 | match &self {
|
1103 - | QueryParamsTargetingMapOfListOfEnumStringOperationError::ValidationException(
|
1144 + | QueryParamsTargetingMapOfListOfPatternStringOperationError::ValidationException(
|
1104 1145 | _inner,
|
1105 1146 | ) => _inner.name(),
|
1106 - | QueryParamsTargetingMapOfListOfEnumStringOperationError::InternalServerError(
|
1147 + | QueryParamsTargetingMapOfListOfPatternStringOperationError::InternalServerError(
|
1107 1148 | _inner,
|
1108 1149 | ) => _inner.name(),
|
1109 1150 | }
|
1110 1151 | }
|
1111 1152 | }
|
1112 - | impl ::std::error::Error for QueryParamsTargetingMapOfListOfEnumStringOperationError {
|
1153 + | impl ::std::error::Error for QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
1113 1154 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1114 1155 | match &self {
|
1115 - | QueryParamsTargetingMapOfListOfEnumStringOperationError::ValidationException(
|
1156 + | QueryParamsTargetingMapOfListOfPatternStringOperationError::ValidationException(
|
1116 1157 | _inner,
|
1117 1158 | ) => Some(_inner),
|
1118 - | QueryParamsTargetingMapOfListOfEnumStringOperationError::InternalServerError(
|
1159 + | QueryParamsTargetingMapOfListOfPatternStringOperationError::InternalServerError(
|
1119 1160 | _inner,
|
1120 1161 | ) => Some(_inner),
|
1121 1162 | }
|
1122 1163 | }
|
1123 1164 | }
|
1124 1165 | impl ::std::convert::From<crate::error::ValidationException>
|
1125 - | for crate::error::QueryParamsTargetingMapOfListOfEnumStringOperationError
|
1126 - | {
|
1127 - | fn from(
|
1128 - | variant: crate::error::ValidationException,
|
1129 - | ) -> crate::error::QueryParamsTargetingMapOfListOfEnumStringOperationError {
|
1130 - | Self::ValidationException(variant)
|
1131 - | }
|
1132 - | }
|
1133 - | impl ::std::convert::From<crate::error::InternalServerError>
|
1134 - | for crate::error::QueryParamsTargetingMapOfListOfEnumStringOperationError
|
1135 - | {
|
1136 - | fn from(
|
1137 - | variant: crate::error::InternalServerError,
|
1138 - | ) -> crate::error::QueryParamsTargetingMapOfListOfEnumStringOperationError {
|
1139 - | Self::InternalServerError(variant)
|
1140 - | }
|
1141 - | }
|
1142 - |
|
1143 - | impl ::std::convert::From<::pyo3::PyErr>
|
1144 - | for crate::error::QueryParamsTargetingMapOfListOfEnumStringOperationError
|
1145 - | {
|
1146 - | fn from(
|
1147 - | variant: ::pyo3::PyErr,
|
1148 - | ) -> crate::error::QueryParamsTargetingMapOfListOfEnumStringOperationError {
|
1149 - | ::pyo3::Python::with_gil(|py| {
|
1150 - | let error = variant.value(py);
|
1151 - | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
1152 - | return error.into();
|
1153 - | }
|
1154 - | crate::error::InternalServerError {
|
1155 - | message: error.to_string(),
|
1156 - | }
|
1157 - | .into()
|
1158 - | })
|
1159 - | }
|
1160 - | }
|
1161 - |
|
1162 - | /// Error type for the `QueryParamsTargetingMapOfLengthListOfPatternStringOperation` operation.
|
1163 - | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfLengthListOfPatternStringOperation` operation.
|
1164 - | #[derive(::std::fmt::Debug)]
|
1165 - | pub enum QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
1166 - | /// 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.
|
1167 - | ValidationException(crate::error::ValidationException),
|
1168 - | #[allow(missing_docs)] // documentation missing in model
|
1169 - | InternalServerError(crate::error::InternalServerError),
|
1170 - | }
|
1171 - | impl ::std::fmt::Display for QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
1172 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1173 - | match &self {
|
1174 - | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException(_inner) =>
|
1175 - | _inner.fmt(f)
|
1176 - | ,
|
1177 - | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::InternalServerError(_inner) =>
|
1178 - | _inner.fmt(f)
|
1179 - | ,
|
1180 - | }
|
1181 - | }
|
1182 - | }
|
1183 - | impl QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
1184 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException`.
|
1185 - | pub fn is_validation_exception(&self) -> bool {
|
1186 - | matches!(
|
1187 - | &self,
|
1188 - | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException(
|
1189 - | _
|
1190 - | )
|
1191 - | )
|
1192 - | }
|
1193 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::InternalServerError`.
|
1194 - | pub fn is_internal_server_error(&self) -> bool {
|
1195 - | matches!(
|
1196 - | &self,
|
1197 - | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::InternalServerError(
|
1198 - | _
|
1199 - | )
|
1200 - | )
|
1201 - | }
|
1202 - | /// Returns the error name string by matching the correct variant.
|
1203 - | pub fn name(&self) -> &'static str {
|
1204 - | match &self {
|
1205 - | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException(_inner) =>
|
1206 - | _inner.name()
|
1207 - | ,
|
1208 - | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::InternalServerError(_inner) =>
|
1209 - | _inner.name()
|
1210 - | ,
|
1211 - | }
|
1212 - | }
|
1213 - | }
|
1214 - | impl ::std::error::Error for QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
1215 - | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1216 - | match &self {
|
1217 - | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException(_inner) =>
|
1218 - | Some(_inner)
|
1219 - | ,
|
1220 - | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::InternalServerError(_inner) =>
|
1221 - | Some(_inner)
|
1222 - | ,
|
1223 - | }
|
1224 - | }
|
1225 - | }
|
1226 - | impl ::std::convert::From<crate::error::ValidationException>
|
1227 - | for crate::error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError
|
1166 + | for crate::error::QueryParamsTargetingMapOfListOfPatternStringOperationError
|
1228 1167 | {
|
1229 1168 | fn from(
|
1230 1169 | variant: crate::error::ValidationException,
|
1231 - | ) -> crate::error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
1170 + | ) -> crate::error::QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
1232 1171 | Self::ValidationException(variant)
|
1233 1172 | }
|
1234 1173 | }
|
1235 1174 | impl ::std::convert::From<crate::error::InternalServerError>
|
1236 - | for crate::error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError
|
1175 + | for crate::error::QueryParamsTargetingMapOfListOfPatternStringOperationError
|
1237 1176 | {
|
1238 1177 | fn from(
|
1239 1178 | variant: crate::error::InternalServerError,
|
1240 - | ) -> crate::error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
1179 + | ) -> crate::error::QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
1241 1180 | Self::InternalServerError(variant)
|
1242 1181 | }
|
1243 1182 | }
|
1244 1183 |
|
1245 1184 | impl ::std::convert::From<::pyo3::PyErr>
|
1246 - | for crate::error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError
|
1185 + | for crate::error::QueryParamsTargetingMapOfListOfPatternStringOperationError
|
1247 1186 | {
|
1248 1187 | fn from(
|
1249 1188 | variant: ::pyo3::PyErr,
|
1250 - | ) -> crate::error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
1189 + | ) -> crate::error::QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
1251 1190 | ::pyo3::Python::with_gil(|py| {
|
1252 1191 | let error = variant.value(py);
|
1253 1192 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
1254 1193 | return error.into();
|
1255 1194 | }
|
1256 1195 | crate::error::InternalServerError {
|
1257 1196 | message: error.to_string(),
|
1258 1197 | }
|
1259 1198 | .into()
|
1260 1199 | })
|
1261 1200 | }
|
1262 1201 | }
|
1263 1202 |
|
1264 - | /// Error type for the `QueryParamsTargetingMapOfSetOfLengthStringOperation` operation.
|
1265 - | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfSetOfLengthStringOperation` operation.
|
1203 + | /// Error type for the `QueryParamsTargetingMapOfLengthPatternStringOperation` operation.
|
1204 + | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfLengthPatternStringOperation` operation.
|
1266 1205 | #[derive(::std::fmt::Debug)]
|
1267 - | pub enum QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
1206 + | pub enum QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
1268 1207 | /// 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.
|
1269 1208 | ValidationException(crate::error::ValidationException),
|
1270 1209 | #[allow(missing_docs)] // documentation missing in model
|
1271 1210 | InternalServerError(crate::error::InternalServerError),
|
1272 1211 | }
|
1273 - | impl ::std::fmt::Display for QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
1212 + | impl ::std::fmt::Display for QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
1274 1213 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1275 1214 | match &self {
|
1276 - | QueryParamsTargetingMapOfSetOfLengthStringOperationError::ValidationException(
|
1215 + | QueryParamsTargetingMapOfLengthPatternStringOperationError::ValidationException(
|
1277 1216 | _inner,
|
1278 1217 | ) => _inner.fmt(f),
|
1279 - | QueryParamsTargetingMapOfSetOfLengthStringOperationError::InternalServerError(
|
1218 + | QueryParamsTargetingMapOfLengthPatternStringOperationError::InternalServerError(
|
1280 1219 | _inner,
|
1281 1220 | ) => _inner.fmt(f),
|
1282 1221 | }
|
1283 1222 | }
|
1284 1223 | }
|
1285 - | impl QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
1286 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfSetOfLengthStringOperationError::ValidationException`.
|
1224 + | impl QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
1225 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfLengthPatternStringOperationError::ValidationException`.
|
1287 1226 | pub fn is_validation_exception(&self) -> bool {
|
1288 1227 | matches!(
|
1289 1228 | &self,
|
1290 - | QueryParamsTargetingMapOfSetOfLengthStringOperationError::ValidationException(_)
|
1229 + | QueryParamsTargetingMapOfLengthPatternStringOperationError::ValidationException(_)
|
1291 1230 | )
|
1292 1231 | }
|
1293 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfSetOfLengthStringOperationError::InternalServerError`.
|
1232 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfLengthPatternStringOperationError::InternalServerError`.
|
1294 1233 | pub fn is_internal_server_error(&self) -> bool {
|
1295 1234 | matches!(
|
1296 1235 | &self,
|
1297 - | QueryParamsTargetingMapOfSetOfLengthStringOperationError::InternalServerError(_)
|
1236 + | QueryParamsTargetingMapOfLengthPatternStringOperationError::InternalServerError(_)
|
1298 1237 | )
|
1299 1238 | }
|
1300 1239 | /// Returns the error name string by matching the correct variant.
|
1301 1240 | pub fn name(&self) -> &'static str {
|
1302 1241 | match &self {
|
1303 - | QueryParamsTargetingMapOfSetOfLengthStringOperationError::ValidationException(
|
1242 + | QueryParamsTargetingMapOfLengthPatternStringOperationError::ValidationException(
|
1304 1243 | _inner,
|
1305 1244 | ) => _inner.name(),
|
1306 - | QueryParamsTargetingMapOfSetOfLengthStringOperationError::InternalServerError(
|
1245 + | QueryParamsTargetingMapOfLengthPatternStringOperationError::InternalServerError(
|
1307 1246 | _inner,
|
1308 1247 | ) => _inner.name(),
|
1309 1248 | }
|
1310 1249 | }
|
1311 1250 | }
|
1312 - | impl ::std::error::Error for QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
1251 + | impl ::std::error::Error for QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
1313 1252 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1314 1253 | match &self {
|
1315 - | QueryParamsTargetingMapOfSetOfLengthStringOperationError::ValidationException(
|
1254 + | QueryParamsTargetingMapOfLengthPatternStringOperationError::ValidationException(
|
1316 1255 | _inner,
|
1317 1256 | ) => Some(_inner),
|
1318 - | QueryParamsTargetingMapOfSetOfLengthStringOperationError::InternalServerError(
|
1257 + | QueryParamsTargetingMapOfLengthPatternStringOperationError::InternalServerError(
|
1319 1258 | _inner,
|
1320 1259 | ) => Some(_inner),
|
1321 1260 | }
|
1322 1261 | }
|
1323 1262 | }
|
1324 1263 | impl ::std::convert::From<crate::error::ValidationException>
|
1325 - | for crate::error::QueryParamsTargetingMapOfSetOfLengthStringOperationError
|
1264 + | for crate::error::QueryParamsTargetingMapOfLengthPatternStringOperationError
|
1326 1265 | {
|
1327 1266 | fn from(
|
1328 1267 | variant: crate::error::ValidationException,
|
1329 - | ) -> crate::error::QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
1268 + | ) -> crate::error::QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
1330 1269 | Self::ValidationException(variant)
|
1331 1270 | }
|
1332 1271 | }
|
1333 1272 | impl ::std::convert::From<crate::error::InternalServerError>
|
1334 - | for crate::error::QueryParamsTargetingMapOfSetOfLengthStringOperationError
|
1273 + | for crate::error::QueryParamsTargetingMapOfLengthPatternStringOperationError
|
1335 1274 | {
|
1336 1275 | fn from(
|
1337 1276 | variant: crate::error::InternalServerError,
|
1338 - | ) -> crate::error::QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
1277 + | ) -> crate::error::QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
1339 1278 | Self::InternalServerError(variant)
|
1340 1279 | }
|
1341 1280 | }
|
1342 1281 |
|
1343 1282 | impl ::std::convert::From<::pyo3::PyErr>
|
1344 - | for crate::error::QueryParamsTargetingMapOfSetOfLengthStringOperationError
|
1283 + | for crate::error::QueryParamsTargetingMapOfLengthPatternStringOperationError
|
1345 1284 | {
|
1346 1285 | fn from(
|
1347 1286 | variant: ::pyo3::PyErr,
|
1348 - | ) -> crate::error::QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
1287 + | ) -> crate::error::QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
1349 1288 | ::pyo3::Python::with_gil(|py| {
|
1350 1289 | let error = variant.value(py);
|
1351 1290 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
1352 1291 | return error.into();
|
1353 1292 | }
|
1354 1293 | crate::error::InternalServerError {
|
1355 1294 | message: error.to_string(),
|
1356 1295 | }
|
1357 1296 | .into()
|
1358 1297 | })
|
1359 1298 | }
|
1360 1299 | }
|
1361 1300 |
|
1362 - | /// Error type for the `QueryParamsTargetingMapOfListOfLengthStringOperation` operation.
|
1363 - | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfListOfLengthStringOperation` operation.
|
1301 + | /// Error type for the `QueryParamsTargetingMapOfListOfLengthPatternStringOperation` operation.
|
1302 + | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfListOfLengthPatternStringOperation` operation.
|
1364 1303 | #[derive(::std::fmt::Debug)]
|
1365 - | pub enum QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
1304 + | pub enum QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
1366 1305 | /// 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.
|
1367 1306 | ValidationException(crate::error::ValidationException),
|
1368 1307 | #[allow(missing_docs)] // documentation missing in model
|
1369 1308 | InternalServerError(crate::error::InternalServerError),
|
1370 1309 | }
|
1371 - | impl ::std::fmt::Display for QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
1310 + | impl ::std::fmt::Display for QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
1372 1311 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1373 1312 | match &self {
|
1374 - | QueryParamsTargetingMapOfListOfLengthStringOperationError::ValidationException(
|
1375 - | _inner,
|
1376 - | ) => _inner.fmt(f),
|
1377 - | QueryParamsTargetingMapOfListOfLengthStringOperationError::InternalServerError(
|
1378 - | _inner,
|
1379 - | ) => _inner.fmt(f),
|
1313 + | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException(_inner) =>
|
1314 + | _inner.fmt(f)
|
1315 + | ,
|
1316 + | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::InternalServerError(_inner) =>
|
1317 + | _inner.fmt(f)
|
1318 + | ,
|
1380 1319 | }
|
1381 1320 | }
|
1382 1321 | }
|
1383 - | impl QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
1384 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfLengthStringOperationError::ValidationException`.
|
1322 + | impl QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
1323 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException`.
|
1385 1324 | pub fn is_validation_exception(&self) -> bool {
|
1386 1325 | matches!(
|
1387 1326 | &self,
|
1388 - | QueryParamsTargetingMapOfListOfLengthStringOperationError::ValidationException(_)
|
1327 + | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException(
|
1328 + | _
|
1329 + | )
|
1389 1330 | )
|
1390 1331 | }
|
1391 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfLengthStringOperationError::InternalServerError`.
|
1332 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::InternalServerError`.
|
1392 1333 | pub fn is_internal_server_error(&self) -> bool {
|
1393 1334 | matches!(
|
1394 1335 | &self,
|
1395 - | QueryParamsTargetingMapOfListOfLengthStringOperationError::InternalServerError(_)
|
1336 + | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::InternalServerError(
|
1337 + | _
|
1338 + | )
|
1396 1339 | )
|
1397 1340 | }
|
1398 1341 | /// Returns the error name string by matching the correct variant.
|
1399 1342 | pub fn name(&self) -> &'static str {
|
1400 1343 | match &self {
|
1401 - | QueryParamsTargetingMapOfListOfLengthStringOperationError::ValidationException(
|
1402 - | _inner,
|
1403 - | ) => _inner.name(),
|
1404 - | QueryParamsTargetingMapOfListOfLengthStringOperationError::InternalServerError(
|
1405 - | _inner,
|
1406 - | ) => _inner.name(),
|
1344 + | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException(_inner) =>
|
1345 + | _inner.name()
|
1346 + | ,
|
1347 + | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::InternalServerError(_inner) =>
|
1348 + | _inner.name()
|
1349 + | ,
|
1407 1350 | }
|
1408 1351 | }
|
1409 1352 | }
|
1410 - | impl ::std::error::Error for QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
1353 + | impl ::std::error::Error for QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
1411 1354 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1412 1355 | match &self {
|
1413 - | QueryParamsTargetingMapOfListOfLengthStringOperationError::ValidationException(
|
1414 - | _inner,
|
1415 - | ) => Some(_inner),
|
1416 - | QueryParamsTargetingMapOfListOfLengthStringOperationError::InternalServerError(
|
1417 - | _inner,
|
1418 - | ) => Some(_inner),
|
1356 + | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException(_inner) =>
|
1357 + | Some(_inner)
|
1358 + | ,
|
1359 + | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::InternalServerError(_inner) =>
|
1360 + | Some(_inner)
|
1361 + | ,
|
1419 1362 | }
|
1420 1363 | }
|
1421 1364 | }
|
1422 1365 | impl ::std::convert::From<crate::error::ValidationException>
|
1423 - | for crate::error::QueryParamsTargetingMapOfListOfLengthStringOperationError
|
1366 + | for crate::error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError
|
1424 1367 | {
|
1425 1368 | fn from(
|
1426 1369 | variant: crate::error::ValidationException,
|
1427 - | ) -> crate::error::QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
1370 + | ) -> crate::error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
1428 1371 | Self::ValidationException(variant)
|
1429 1372 | }
|
1430 1373 | }
|
1431 1374 | impl ::std::convert::From<crate::error::InternalServerError>
|
1432 - | for crate::error::QueryParamsTargetingMapOfListOfLengthStringOperationError
|
1375 + | for crate::error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError
|
1433 1376 | {
|
1434 1377 | fn from(
|
1435 1378 | variant: crate::error::InternalServerError,
|
1436 - | ) -> crate::error::QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
1379 + | ) -> crate::error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
1437 1380 | Self::InternalServerError(variant)
|
1438 1381 | }
|
1439 1382 | }
|
1440 1383 |
|
1441 1384 | impl ::std::convert::From<::pyo3::PyErr>
|
1442 - | for crate::error::QueryParamsTargetingMapOfListOfLengthStringOperationError
|
1385 + | for crate::error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError
|
1443 1386 | {
|
1444 1387 | fn from(
|
1445 1388 | variant: ::pyo3::PyErr,
|
1446 - | ) -> crate::error::QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
1389 + | ) -> crate::error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
1447 1390 | ::pyo3::Python::with_gil(|py| {
|
1448 1391 | let error = variant.value(py);
|
1449 1392 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
1450 1393 | return error.into();
|
1451 1394 | }
|
1452 1395 | crate::error::InternalServerError {
|
1453 1396 | message: error.to_string(),
|
1454 1397 | }
|
1455 1398 | .into()
|
1456 1399 | })
|
1457 1400 | }
|
1458 1401 | }
|
1459 1402 |
|
1460 - | /// Error type for the `QueryParamsTargetingMapOfLengthStringOperation` operation.
|
1461 - | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfLengthStringOperation` operation.
|
1403 + | /// Error type for the `HttpPrefixHeadersTargetingLengthMapOperation` operation.
|
1404 + | /// Each variant represents an error that can occur for the `HttpPrefixHeadersTargetingLengthMapOperation` operation.
|
1462 1405 | #[derive(::std::fmt::Debug)]
|
1463 - | pub enum QueryParamsTargetingMapOfLengthStringOperationError {
|
1406 + | pub enum HttpPrefixHeadersTargetingLengthMapOperationError {
|
1464 1407 | /// 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.
|
1465 1408 | ValidationException(crate::error::ValidationException),
|
1466 1409 | #[allow(missing_docs)] // documentation missing in model
|
1467 1410 | InternalServerError(crate::error::InternalServerError),
|
1468 1411 | }
|
1469 - | impl ::std::fmt::Display for QueryParamsTargetingMapOfLengthStringOperationError {
|
1412 + | impl ::std::fmt::Display for HttpPrefixHeadersTargetingLengthMapOperationError {
|
1470 1413 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1471 1414 | match &self {
|
1472 - | QueryParamsTargetingMapOfLengthStringOperationError::ValidationException(_inner) => {
|
1415 + | HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException(_inner) => {
|
1473 1416 | _inner.fmt(f)
|
1474 1417 | }
|
1475 - | QueryParamsTargetingMapOfLengthStringOperationError::InternalServerError(_inner) => {
|
1418 + | HttpPrefixHeadersTargetingLengthMapOperationError::InternalServerError(_inner) => {
|
1476 1419 | _inner.fmt(f)
|
1477 1420 | }
|
1478 1421 | }
|
1479 1422 | }
|
1480 1423 | }
|
1481 - | impl QueryParamsTargetingMapOfLengthStringOperationError {
|
1482 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfLengthStringOperationError::ValidationException`.
|
1424 + | impl HttpPrefixHeadersTargetingLengthMapOperationError {
|
1425 + | /// Returns `true` if the error kind is `HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException`.
|
1483 1426 | pub fn is_validation_exception(&self) -> bool {
|
1484 1427 | matches!(
|
1485 1428 | &self,
|
1486 - | QueryParamsTargetingMapOfLengthStringOperationError::ValidationException(_)
|
1429 + | HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException(_)
|
1487 1430 | )
|
1488 1431 | }
|
1489 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfLengthStringOperationError::InternalServerError`.
|
1432 + | /// Returns `true` if the error kind is `HttpPrefixHeadersTargetingLengthMapOperationError::InternalServerError`.
|
1490 1433 | pub fn is_internal_server_error(&self) -> bool {
|
1491 1434 | matches!(
|
1492 1435 | &self,
|
1493 - | QueryParamsTargetingMapOfLengthStringOperationError::InternalServerError(_)
|
1436 + | HttpPrefixHeadersTargetingLengthMapOperationError::InternalServerError(_)
|
1494 1437 | )
|
1495 1438 | }
|
1496 1439 | /// Returns the error name string by matching the correct variant.
|
1497 1440 | pub fn name(&self) -> &'static str {
|
1498 1441 | match &self {
|
1499 - | QueryParamsTargetingMapOfLengthStringOperationError::ValidationException(_inner) => {
|
1442 + | HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException(_inner) => {
|
1500 1443 | _inner.name()
|
1501 1444 | }
|
1502 - | QueryParamsTargetingMapOfLengthStringOperationError::InternalServerError(_inner) => {
|
1445 + | HttpPrefixHeadersTargetingLengthMapOperationError::InternalServerError(_inner) => {
|
1503 1446 | _inner.name()
|
1504 1447 | }
|
1505 1448 | }
|
1506 1449 | }
|
1507 1450 | }
|
1508 - | impl ::std::error::Error for QueryParamsTargetingMapOfLengthStringOperationError {
|
1451 + | impl ::std::error::Error for HttpPrefixHeadersTargetingLengthMapOperationError {
|
1509 1452 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1510 1453 | match &self {
|
1511 - | QueryParamsTargetingMapOfLengthStringOperationError::ValidationException(_inner) => {
|
1454 + | HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException(_inner) => {
|
1512 1455 | Some(_inner)
|
1513 1456 | }
|
1514 - | QueryParamsTargetingMapOfLengthStringOperationError::InternalServerError(_inner) => {
|
1457 + | HttpPrefixHeadersTargetingLengthMapOperationError::InternalServerError(_inner) => {
|
1515 1458 | Some(_inner)
|
1516 1459 | }
|
1517 1460 | }
|
1518 1461 | }
|
1519 1462 | }
|
1520 1463 | impl ::std::convert::From<crate::error::ValidationException>
|
1521 - | for crate::error::QueryParamsTargetingMapOfLengthStringOperationError
|
1464 + | for crate::error::HttpPrefixHeadersTargetingLengthMapOperationError
|
1522 1465 | {
|
1523 1466 | fn from(
|
1524 1467 | variant: crate::error::ValidationException,
|
1525 - | ) -> crate::error::QueryParamsTargetingMapOfLengthStringOperationError {
|
1468 + | ) -> crate::error::HttpPrefixHeadersTargetingLengthMapOperationError {
|
1526 1469 | Self::ValidationException(variant)
|
1527 1470 | }
|
1528 1471 | }
|
1529 1472 | impl ::std::convert::From<crate::error::InternalServerError>
|
1530 - | for crate::error::QueryParamsTargetingMapOfLengthStringOperationError
|
1473 + | for crate::error::HttpPrefixHeadersTargetingLengthMapOperationError
|
1531 1474 | {
|
1532 1475 | fn from(
|
1533 1476 | variant: crate::error::InternalServerError,
|
1534 - | ) -> crate::error::QueryParamsTargetingMapOfLengthStringOperationError {
|
1477 + | ) -> crate::error::HttpPrefixHeadersTargetingLengthMapOperationError {
|
1535 1478 | Self::InternalServerError(variant)
|
1536 1479 | }
|
1537 1480 | }
|
1538 1481 |
|
1539 1482 | impl ::std::convert::From<::pyo3::PyErr>
|
1540 - | for crate::error::QueryParamsTargetingMapOfLengthStringOperationError
|
1483 + | for crate::error::HttpPrefixHeadersTargetingLengthMapOperationError
|
1541 1484 | {
|
1542 1485 | fn from(
|
1543 1486 | variant: ::pyo3::PyErr,
|
1544 - | ) -> crate::error::QueryParamsTargetingMapOfLengthStringOperationError {
|
1487 + | ) -> crate::error::HttpPrefixHeadersTargetingLengthMapOperationError {
|
1545 1488 | ::pyo3::Python::with_gil(|py| {
|
1546 1489 | let error = variant.value(py);
|
1547 1490 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
1548 1491 | return error.into();
|
1549 1492 | }
|
1550 1493 | crate::error::InternalServerError {
|
1551 1494 | message: error.to_string(),
|
1552 1495 | }
|
1553 1496 | .into()
|
1554 1497 | })
|
1555 1498 | }
|
1556 1499 | }
|
1557 1500 |
|
1558 - | /// Error type for the `QueryParamsTargetingLengthMapOperation` operation.
|
1559 - | /// Each variant represents an error that can occur for the `QueryParamsTargetingLengthMapOperation` operation.
|
1501 + | /// Error type for the `QueryParamsTargetingMapOfEnumStringOperation` operation.
|
1502 + | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfEnumStringOperation` operation.
|
1560 1503 | #[derive(::std::fmt::Debug)]
|
1561 - | pub enum QueryParamsTargetingLengthMapOperationError {
|
1504 + | pub enum QueryParamsTargetingMapOfEnumStringOperationError {
|
1562 1505 | /// 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.
|
1563 1506 | ValidationException(crate::error::ValidationException),
|
1564 1507 | #[allow(missing_docs)] // documentation missing in model
|
1565 1508 | InternalServerError(crate::error::InternalServerError),
|
1566 1509 | }
|
1567 - | impl ::std::fmt::Display for QueryParamsTargetingLengthMapOperationError {
|
1510 + | impl ::std::fmt::Display for QueryParamsTargetingMapOfEnumStringOperationError {
|
1568 1511 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1569 1512 | match &self {
|
1570 - | QueryParamsTargetingLengthMapOperationError::ValidationException(_inner) => {
|
1513 + | QueryParamsTargetingMapOfEnumStringOperationError::ValidationException(_inner) => {
|
1571 1514 | _inner.fmt(f)
|
1572 1515 | }
|
1573 - | QueryParamsTargetingLengthMapOperationError::InternalServerError(_inner) => {
|
1516 + | QueryParamsTargetingMapOfEnumStringOperationError::InternalServerError(_inner) => {
|
1574 1517 | _inner.fmt(f)
|
1575 1518 | }
|
1576 1519 | }
|
1577 1520 | }
|
1578 1521 | }
|
1579 - | impl QueryParamsTargetingLengthMapOperationError {
|
1580 - | /// Returns `true` if the error kind is `QueryParamsTargetingLengthMapOperationError::ValidationException`.
|
1522 + | impl QueryParamsTargetingMapOfEnumStringOperationError {
|
1523 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfEnumStringOperationError::ValidationException`.
|
1581 1524 | pub fn is_validation_exception(&self) -> bool {
|
1582 1525 | matches!(
|
1583 1526 | &self,
|
1584 - | QueryParamsTargetingLengthMapOperationError::ValidationException(_)
|
1527 + | QueryParamsTargetingMapOfEnumStringOperationError::ValidationException(_)
|
1585 1528 | )
|
1586 1529 | }
|
1587 - | /// Returns `true` if the error kind is `QueryParamsTargetingLengthMapOperationError::InternalServerError`.
|
1530 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfEnumStringOperationError::InternalServerError`.
|
1588 1531 | pub fn is_internal_server_error(&self) -> bool {
|
1589 1532 | matches!(
|
1590 1533 | &self,
|
1591 - | QueryParamsTargetingLengthMapOperationError::InternalServerError(_)
|
1534 + | QueryParamsTargetingMapOfEnumStringOperationError::InternalServerError(_)
|
1592 1535 | )
|
1593 1536 | }
|
1594 1537 | /// Returns the error name string by matching the correct variant.
|
1595 1538 | pub fn name(&self) -> &'static str {
|
1596 1539 | match &self {
|
1597 - | QueryParamsTargetingLengthMapOperationError::ValidationException(_inner) => {
|
1540 + | QueryParamsTargetingMapOfEnumStringOperationError::ValidationException(_inner) => {
|
1598 1541 | _inner.name()
|
1599 1542 | }
|
1600 - | QueryParamsTargetingLengthMapOperationError::InternalServerError(_inner) => {
|
1543 + | QueryParamsTargetingMapOfEnumStringOperationError::InternalServerError(_inner) => {
|
1601 1544 | _inner.name()
|
1602 1545 | }
|
1603 1546 | }
|
1604 1547 | }
|
1605 1548 | }
|
1606 - | impl ::std::error::Error for QueryParamsTargetingLengthMapOperationError {
|
1549 + | impl ::std::error::Error for QueryParamsTargetingMapOfEnumStringOperationError {
|
1607 1550 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1608 1551 | match &self {
|
1609 - | QueryParamsTargetingLengthMapOperationError::ValidationException(_inner) => {
|
1552 + | QueryParamsTargetingMapOfEnumStringOperationError::ValidationException(_inner) => {
|
1610 1553 | Some(_inner)
|
1611 1554 | }
|
1612 - | QueryParamsTargetingLengthMapOperationError::InternalServerError(_inner) => {
|
1555 + | QueryParamsTargetingMapOfEnumStringOperationError::InternalServerError(_inner) => {
|
1613 1556 | Some(_inner)
|
1614 1557 | }
|
1615 1558 | }
|
1616 1559 | }
|
1617 1560 | }
|
1618 1561 | impl ::std::convert::From<crate::error::ValidationException>
|
1619 - | for crate::error::QueryParamsTargetingLengthMapOperationError
|
1562 + | for crate::error::QueryParamsTargetingMapOfEnumStringOperationError
|
1620 1563 | {
|
1621 1564 | fn from(
|
1622 1565 | variant: crate::error::ValidationException,
|
1623 - | ) -> crate::error::QueryParamsTargetingLengthMapOperationError {
|
1566 + | ) -> crate::error::QueryParamsTargetingMapOfEnumStringOperationError {
|
1624 1567 | Self::ValidationException(variant)
|
1625 1568 | }
|
1626 1569 | }
|
1627 1570 | impl ::std::convert::From<crate::error::InternalServerError>
|
1628 - | for crate::error::QueryParamsTargetingLengthMapOperationError
|
1571 + | for crate::error::QueryParamsTargetingMapOfEnumStringOperationError
|
1629 1572 | {
|
1630 1573 | fn from(
|
1631 1574 | variant: crate::error::InternalServerError,
|
1632 - | ) -> crate::error::QueryParamsTargetingLengthMapOperationError {
|
1575 + | ) -> crate::error::QueryParamsTargetingMapOfEnumStringOperationError {
|
1633 1576 | Self::InternalServerError(variant)
|
1634 1577 | }
|
1635 1578 | }
|
1636 1579 |
|
1637 1580 | impl ::std::convert::From<::pyo3::PyErr>
|
1638 - | for crate::error::QueryParamsTargetingLengthMapOperationError
|
1581 + | for crate::error::QueryParamsTargetingMapOfEnumStringOperationError
|
1639 1582 | {
|
1640 - | fn from(variant: ::pyo3::PyErr) -> crate::error::QueryParamsTargetingLengthMapOperationError {
|
1583 + | fn from(
|
1584 + | variant: ::pyo3::PyErr,
|
1585 + | ) -> crate::error::QueryParamsTargetingMapOfEnumStringOperationError {
|
1641 1586 | ::pyo3::Python::with_gil(|py| {
|
1642 1587 | let error = variant.value(py);
|
1643 1588 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
1644 1589 | return error.into();
|
1645 1590 | }
|
1646 1591 | crate::error::InternalServerError {
|
1647 1592 | message: error.to_string(),
|
1648 1593 | }
|
1649 1594 | .into()
|
1650 1595 | })
|
1651 1596 | }
|
1652 1597 | }
|
1653 1598 |
|
1654 - | /// Error type for the `ConstrainedRecursiveShapesOperation` operation.
|
1655 - | /// Each variant represents an error that can occur for the `ConstrainedRecursiveShapesOperation` operation.
|
1599 + | /// Error type for the `NonStreamingBlobOperation` operation.
|
1600 + | /// Each variant represents an error that can occur for the `NonStreamingBlobOperation` operation.
|
1656 1601 | #[derive(::std::fmt::Debug)]
|
1657 - | pub enum ConstrainedRecursiveShapesOperationError {
|
1658 - | /// 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.
|
1659 - | ValidationException(crate::error::ValidationException),
|
1602 + | pub enum NonStreamingBlobOperationError {
|
1660 1603 | #[allow(missing_docs)] // documentation missing in model
|
1661 1604 | InternalServerError(crate::error::InternalServerError),
|
1662 1605 | }
|
1663 - | impl ::std::fmt::Display for ConstrainedRecursiveShapesOperationError {
|
1606 + | impl ::std::fmt::Display for NonStreamingBlobOperationError {
|
1664 1607 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1665 1608 | match &self {
|
1666 - | ConstrainedRecursiveShapesOperationError::ValidationException(_inner) => _inner.fmt(f),
|
1667 - | ConstrainedRecursiveShapesOperationError::InternalServerError(_inner) => _inner.fmt(f),
|
1609 + | NonStreamingBlobOperationError::InternalServerError(_inner) => _inner.fmt(f),
|
1668 1610 | }
|
1669 1611 | }
|
1670 1612 | }
|
1671 - | impl ConstrainedRecursiveShapesOperationError {
|
1672 - | /// Returns `true` if the error kind is `ConstrainedRecursiveShapesOperationError::ValidationException`.
|
1673 - | pub fn is_validation_exception(&self) -> bool {
|
1674 - | matches!(
|
1675 - | &self,
|
1676 - | ConstrainedRecursiveShapesOperationError::ValidationException(_)
|
1677 - | )
|
1678 - | }
|
1679 - | /// Returns `true` if the error kind is `ConstrainedRecursiveShapesOperationError::InternalServerError`.
|
1613 + | impl NonStreamingBlobOperationError {
|
1614 + | /// Returns `true` if the error kind is `NonStreamingBlobOperationError::InternalServerError`.
|
1680 1615 | pub fn is_internal_server_error(&self) -> bool {
|
1681 1616 | matches!(
|
1682 1617 | &self,
|
1683 - | ConstrainedRecursiveShapesOperationError::InternalServerError(_)
|
1618 + | NonStreamingBlobOperationError::InternalServerError(_)
|
1684 1619 | )
|
1685 1620 | }
|
1686 1621 | /// Returns the error name string by matching the correct variant.
|
1687 1622 | pub fn name(&self) -> &'static str {
|
1688 1623 | match &self {
|
1689 - | ConstrainedRecursiveShapesOperationError::ValidationException(_inner) => _inner.name(),
|
1690 - | ConstrainedRecursiveShapesOperationError::InternalServerError(_inner) => _inner.name(),
|
1624 + | NonStreamingBlobOperationError::InternalServerError(_inner) => _inner.name(),
|
1691 1625 | }
|
1692 1626 | }
|
1693 1627 | }
|
1694 - | impl ::std::error::Error for ConstrainedRecursiveShapesOperationError {
|
1628 + | impl ::std::error::Error for NonStreamingBlobOperationError {
|
1695 1629 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1696 1630 | match &self {
|
1697 - | ConstrainedRecursiveShapesOperationError::ValidationException(_inner) => Some(_inner),
|
1698 - | ConstrainedRecursiveShapesOperationError::InternalServerError(_inner) => Some(_inner),
|
1631 + | NonStreamingBlobOperationError::InternalServerError(_inner) => Some(_inner),
|
1699 1632 | }
|
1700 1633 | }
|
1701 1634 | }
|
1702 - | impl ::std::convert::From<crate::error::ValidationException>
|
1703 - | for crate::error::ConstrainedRecursiveShapesOperationError
|
1704 - | {
|
1705 - | fn from(
|
1706 - | variant: crate::error::ValidationException,
|
1707 - | ) -> crate::error::ConstrainedRecursiveShapesOperationError {
|
1708 - | Self::ValidationException(variant)
|
1709 - | }
|
1710 - | }
|
1711 1635 | impl ::std::convert::From<crate::error::InternalServerError>
|
1712 - | for crate::error::ConstrainedRecursiveShapesOperationError
|
1636 + | for crate::error::NonStreamingBlobOperationError
|
1713 1637 | {
|
1714 1638 | fn from(
|
1715 1639 | variant: crate::error::InternalServerError,
|
1716 - | ) -> crate::error::ConstrainedRecursiveShapesOperationError {
|
1640 + | ) -> crate::error::NonStreamingBlobOperationError {
|
1717 1641 | Self::InternalServerError(variant)
|
1718 1642 | }
|
1719 1643 | }
|
1720 1644 |
|
1721 - | impl ::std::convert::From<::pyo3::PyErr>
|
1722 - | for crate::error::ConstrainedRecursiveShapesOperationError
|
1723 - | {
|
1724 - | fn from(variant: ::pyo3::PyErr) -> crate::error::ConstrainedRecursiveShapesOperationError {
|
1645 + | impl ::std::convert::From<::pyo3::PyErr> for crate::error::NonStreamingBlobOperationError {
|
1646 + | fn from(variant: ::pyo3::PyErr) -> crate::error::NonStreamingBlobOperationError {
|
1725 1647 | ::pyo3::Python::with_gil(|py| {
|
1726 1648 | let error = variant.value(py);
|
1727 - | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
1728 - | return error.into();
|
1729 - | }
|
1649 + |
|
1730 1650 | crate::error::InternalServerError {
|
1731 1651 | message: error.to_string(),
|
1732 1652 | }
|
1733 1653 | .into()
|
1734 1654 | })
|
1735 1655 | }
|
1736 1656 | }
|
1737 1657 |
|
1738 - | /// Error type for the `ConstrainedHttpPayloadBoundShapeOperation` operation.
|
1739 - | /// Each variant represents an error that can occur for the `ConstrainedHttpPayloadBoundShapeOperation` operation.
|
1658 + | /// Error type for the `StreamingBlobOperation` operation.
|
1659 + | /// Each variant represents an error that can occur for the `StreamingBlobOperation` operation.
|
1740 1660 | #[derive(::std::fmt::Debug)]
|
1741 - | pub enum ConstrainedHttpPayloadBoundShapeOperationError {
|
1742 - | /// 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.
|
1743 - | ValidationException(crate::error::ValidationException),
|
1661 + | pub enum StreamingBlobOperationError {
|
1744 1662 | #[allow(missing_docs)] // documentation missing in model
|
1745 1663 | InternalServerError(crate::error::InternalServerError),
|
1746 1664 | }
|
1747 - | impl ::std::fmt::Display for ConstrainedHttpPayloadBoundShapeOperationError {
|
1665 + | impl ::std::fmt::Display for StreamingBlobOperationError {
|
1748 1666 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1749 1667 | match &self {
|
1750 - | ConstrainedHttpPayloadBoundShapeOperationError::ValidationException(_inner) => {
|
1751 - | _inner.fmt(f)
|
1752 - | }
|
1753 - | ConstrainedHttpPayloadBoundShapeOperationError::InternalServerError(_inner) => {
|
1754 - | _inner.fmt(f)
|
1755 - | }
|
1668 + | StreamingBlobOperationError::InternalServerError(_inner) => _inner.fmt(f),
|
1756 1669 | }
|
1757 1670 | }
|
1758 1671 | }
|
1759 - | impl ConstrainedHttpPayloadBoundShapeOperationError {
|
1760 - | /// Returns `true` if the error kind is `ConstrainedHttpPayloadBoundShapeOperationError::ValidationException`.
|
1761 - | pub fn is_validation_exception(&self) -> bool {
|
1762 - | matches!(
|
1763 - | &self,
|
1764 - | ConstrainedHttpPayloadBoundShapeOperationError::ValidationException(_)
|
1765 - | )
|
1766 - | }
|
1767 - | /// Returns `true` if the error kind is `ConstrainedHttpPayloadBoundShapeOperationError::InternalServerError`.
|
1672 + | impl StreamingBlobOperationError {
|
1673 + | /// Returns `true` if the error kind is `StreamingBlobOperationError::InternalServerError`.
|
1768 1674 | pub fn is_internal_server_error(&self) -> bool {
|
1769 - | matches!(
|
1770 - | &self,
|
1771 - | ConstrainedHttpPayloadBoundShapeOperationError::InternalServerError(_)
|
1772 - | )
|
1675 + | matches!(&self, StreamingBlobOperationError::InternalServerError(_))
|
1773 1676 | }
|
1774 1677 | /// Returns the error name string by matching the correct variant.
|
1775 1678 | pub fn name(&self) -> &'static str {
|
1776 1679 | match &self {
|
1777 - | ConstrainedHttpPayloadBoundShapeOperationError::ValidationException(_inner) => {
|
1778 - | _inner.name()
|
1779 - | }
|
1780 - | ConstrainedHttpPayloadBoundShapeOperationError::InternalServerError(_inner) => {
|
1781 - | _inner.name()
|
1782 - | }
|
1680 + | StreamingBlobOperationError::InternalServerError(_inner) => _inner.name(),
|
1783 1681 | }
|
1784 1682 | }
|
1785 1683 | }
|
1786 - | impl ::std::error::Error for ConstrainedHttpPayloadBoundShapeOperationError {
|
1684 + | impl ::std::error::Error for StreamingBlobOperationError {
|
1787 1685 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1788 1686 | match &self {
|
1789 - | ConstrainedHttpPayloadBoundShapeOperationError::ValidationException(_inner) => {
|
1790 - | Some(_inner)
|
1791 - | }
|
1792 - | ConstrainedHttpPayloadBoundShapeOperationError::InternalServerError(_inner) => {
|
1793 - | Some(_inner)
|
1794 - | }
|
1687 + | StreamingBlobOperationError::InternalServerError(_inner) => Some(_inner),
|
1795 1688 | }
|
1796 1689 | }
|
1797 1690 | }
|
1798 - | impl ::std::convert::From<crate::error::ValidationException>
|
1799 - | for crate::error::ConstrainedHttpPayloadBoundShapeOperationError
|
1800 - | {
|
1801 - | fn from(
|
1802 - | variant: crate::error::ValidationException,
|
1803 - | ) -> crate::error::ConstrainedHttpPayloadBoundShapeOperationError {
|
1804 - | Self::ValidationException(variant)
|
1805 - | }
|
1806 - | }
|
1807 1691 | impl ::std::convert::From<crate::error::InternalServerError>
|
1808 - | for crate::error::ConstrainedHttpPayloadBoundShapeOperationError
|
1692 + | for crate::error::StreamingBlobOperationError
|
1809 1693 | {
|
1810 1694 | fn from(
|
1811 1695 | variant: crate::error::InternalServerError,
|
1812 - | ) -> crate::error::ConstrainedHttpPayloadBoundShapeOperationError {
|
1696 + | ) -> crate::error::StreamingBlobOperationError {
|
1813 1697 | Self::InternalServerError(variant)
|
1814 1698 | }
|
1815 1699 | }
|
1816 1700 |
|
1817 - | impl ::std::convert::From<::pyo3::PyErr>
|
1818 - | for crate::error::ConstrainedHttpPayloadBoundShapeOperationError
|
1819 - | {
|
1820 - | fn from(
|
1821 - | variant: ::pyo3::PyErr,
|
1822 - | ) -> crate::error::ConstrainedHttpPayloadBoundShapeOperationError {
|
1701 + | impl ::std::convert::From<::pyo3::PyErr> for crate::error::StreamingBlobOperationError {
|
1702 + | fn from(variant: ::pyo3::PyErr) -> crate::error::StreamingBlobOperationError {
|
1823 1703 | ::pyo3::Python::with_gil(|py| {
|
1824 1704 | let error = variant.value(py);
|
1825 - | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
1826 - | return error.into();
|
1827 - | }
|
1705 + |
|
1828 1706 | crate::error::InternalServerError {
|
1829 1707 | message: error.to_string(),
|
1830 1708 | }
|
1831 1709 | .into()
|
1832 1710 | })
|
1833 1711 | }
|
1834 1712 | }
|
1835 1713 |
|
1836 - | /// Error type for the `ConstrainedHttpBoundShapesOperation` operation.
|
1837 - | /// Each variant represents an error that can occur for the `ConstrainedHttpBoundShapesOperation` operation.
|
1714 + | /// Error type for the `EventStreamsOperation` operation.
|
1715 + | /// Each variant represents an error that can occur for the `EventStreamsOperation` operation.
|
1838 1716 | #[derive(::std::fmt::Debug)]
|
1839 - | pub enum ConstrainedHttpBoundShapesOperationError {
|
1717 + | pub enum EventStreamsOperationError {
|
1840 1718 | /// 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.
|
1841 1719 | ValidationException(crate::error::ValidationException),
|
1842 1720 | #[allow(missing_docs)] // documentation missing in model
|
1721 + | EventStreamErrorMessage(crate::error::EventStreamErrorMessage),
|
1722 + | #[allow(missing_docs)] // documentation missing in model
|
1843 1723 | InternalServerError(crate::error::InternalServerError),
|
1844 1724 | }
|
1845 - | impl ::std::fmt::Display for ConstrainedHttpBoundShapesOperationError {
|
1725 + | impl ::std::fmt::Display for EventStreamsOperationError {
|
1846 1726 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1847 1727 | match &self {
|
1848 - | ConstrainedHttpBoundShapesOperationError::ValidationException(_inner) => _inner.fmt(f),
|
1849 - | ConstrainedHttpBoundShapesOperationError::InternalServerError(_inner) => _inner.fmt(f),
|
1728 + | EventStreamsOperationError::ValidationException(_inner) => _inner.fmt(f),
|
1729 + | EventStreamsOperationError::EventStreamErrorMessage(_inner) => _inner.fmt(f),
|
1730 + | EventStreamsOperationError::InternalServerError(_inner) => _inner.fmt(f),
|
1850 1731 | }
|
1851 1732 | }
|
1852 1733 | }
|
1853 - | impl ConstrainedHttpBoundShapesOperationError {
|
1854 - | /// Returns `true` if the error kind is `ConstrainedHttpBoundShapesOperationError::ValidationException`.
|
1734 + | impl EventStreamsOperationError {
|
1735 + | /// Returns `true` if the error kind is `EventStreamsOperationError::ValidationException`.
|
1855 1736 | pub fn is_validation_exception(&self) -> bool {
|
1737 + | matches!(&self, EventStreamsOperationError::ValidationException(_))
|
1738 + | }
|
1739 + | /// Returns `true` if the error kind is `EventStreamsOperationError::EventStreamErrorMessage`.
|
1740 + | pub fn is_event_stream_error_message(&self) -> bool {
|
1856 1741 | matches!(
|
1857 1742 | &self,
|
1858 - | ConstrainedHttpBoundShapesOperationError::ValidationException(_)
|
1743 + | EventStreamsOperationError::EventStreamErrorMessage(_)
|
1859 1744 | )
|
1860 1745 | }
|
1861 - | /// Returns `true` if the error kind is `ConstrainedHttpBoundShapesOperationError::InternalServerError`.
|
1746 + | /// Returns `true` if the error kind is `EventStreamsOperationError::InternalServerError`.
|
1862 1747 | pub fn is_internal_server_error(&self) -> bool {
|
1863 - | matches!(
|
1864 - | &self,
|
1865 - | ConstrainedHttpBoundShapesOperationError::InternalServerError(_)
|
1866 - | )
|
1748 + | matches!(&self, EventStreamsOperationError::InternalServerError(_))
|
1867 1749 | }
|
1868 1750 | /// Returns the error name string by matching the correct variant.
|
1869 1751 | pub fn name(&self) -> &'static str {
|
1870 1752 | match &self {
|
1871 - | ConstrainedHttpBoundShapesOperationError::ValidationException(_inner) => _inner.name(),
|
1872 - | ConstrainedHttpBoundShapesOperationError::InternalServerError(_inner) => _inner.name(),
|
1753 + | EventStreamsOperationError::ValidationException(_inner) => _inner.name(),
|
1754 + | EventStreamsOperationError::EventStreamErrorMessage(_inner) => _inner.name(),
|
1755 + | EventStreamsOperationError::InternalServerError(_inner) => _inner.name(),
|
1873 1756 | }
|
1874 1757 | }
|
1875 1758 | }
|
1876 - | impl ::std::error::Error for ConstrainedHttpBoundShapesOperationError {
|
1759 + | impl ::std::error::Error for EventStreamsOperationError {
|
1877 1760 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1878 1761 | match &self {
|
1879 - | ConstrainedHttpBoundShapesOperationError::ValidationException(_inner) => Some(_inner),
|
1880 - | ConstrainedHttpBoundShapesOperationError::InternalServerError(_inner) => Some(_inner),
|
1762 + | EventStreamsOperationError::ValidationException(_inner) => Some(_inner),
|
1763 + | EventStreamsOperationError::EventStreamErrorMessage(_inner) => Some(_inner),
|
1764 + | EventStreamsOperationError::InternalServerError(_inner) => Some(_inner),
|
1881 1765 | }
|
1882 1766 | }
|
1883 1767 | }
|
1884 1768 | impl ::std::convert::From<crate::error::ValidationException>
|
1885 - | for crate::error::ConstrainedHttpBoundShapesOperationError
|
1769 + | for crate::error::EventStreamsOperationError
|
1886 1770 | {
|
1887 1771 | fn from(
|
1888 1772 | variant: crate::error::ValidationException,
|
1889 - | ) -> crate::error::ConstrainedHttpBoundShapesOperationError {
|
1773 + | ) -> crate::error::EventStreamsOperationError {
|
1890 1774 | Self::ValidationException(variant)
|
1891 1775 | }
|
1892 1776 | }
|
1777 + | impl ::std::convert::From<crate::error::EventStreamErrorMessage>
|
1778 + | for crate::error::EventStreamsOperationError
|
1779 + | {
|
1780 + | fn from(
|
1781 + | variant: crate::error::EventStreamErrorMessage,
|
1782 + | ) -> crate::error::EventStreamsOperationError {
|
1783 + | Self::EventStreamErrorMessage(variant)
|
1784 + | }
|
1785 + | }
|
1893 1786 | impl ::std::convert::From<crate::error::InternalServerError>
|
1894 - | for crate::error::ConstrainedHttpBoundShapesOperationError
|
1787 + | for crate::error::EventStreamsOperationError
|
1895 1788 | {
|
1896 1789 | fn from(
|
1897 1790 | variant: crate::error::InternalServerError,
|
1898 - | ) -> crate::error::ConstrainedHttpBoundShapesOperationError {
|
1791 + | ) -> crate::error::EventStreamsOperationError {
|
1899 1792 | Self::InternalServerError(variant)
|
1900 1793 | }
|
1901 1794 | }
|
1902 1795 |
|
1903 - | impl ::std::convert::From<::pyo3::PyErr>
|
1904 - | for crate::error::ConstrainedHttpBoundShapesOperationError
|
1905 - | {
|
1906 - | fn from(variant: ::pyo3::PyErr) -> crate::error::ConstrainedHttpBoundShapesOperationError {
|
1796 + | impl ::std::convert::From<::pyo3::PyErr> for crate::error::EventStreamsOperationError {
|
1797 + | fn from(variant: ::pyo3::PyErr) -> crate::error::EventStreamsOperationError {
|
1907 1798 | ::pyo3::Python::with_gil(|py| {
|
1908 1799 | let error = variant.value(py);
|
1909 1800 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
1910 1801 | return error.into();
|
1911 1802 | }
|
1803 + | if let Ok(error) = error.extract::<crate::error::EventStreamErrorMessage>() {
|
1804 + | return error.into();
|
1805 + | }
|
1912 1806 | crate::error::InternalServerError {
|
1913 1807 | message: error.to_string(),
|
1914 1808 | }
|
1915 1809 | .into()
|
1916 1810 | })
|
1917 1811 | }
|
1918 1812 | }
|
1919 1813 |
|
1920 - | /// Error type for the `ConstrainedShapesOnlyInOutputOperation` operation.
|
1921 - | /// Each variant represents an error that can occur for the `ConstrainedShapesOnlyInOutputOperation` operation.
|
1922 - | #[derive(::std::fmt::Debug)]
|
1923 - | pub enum ConstrainedShapesOnlyInOutputOperationError {
|
1924 - | #[allow(missing_docs)] // documentation missing in model
|
1925 - | InternalServerError(crate::error::InternalServerError),
|
1814 + | #[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
|
1815 + | /// :param message str:
|
1816 + | /// :param field_list typing.Optional\[typing.List\[constraints.model.ValidationExceptionField\]\]:
|
1817 + | /// :rtype None:
|
1818 + | /// 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.
|
1819 + | #[derive(
|
1820 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1821 + | )]
|
1822 + | pub struct ValidationException {
|
1823 + | #[pyo3(get, set)]
|
1824 + | /// :type str:
|
1825 + | /// A summary of the validation failure.
|
1826 + | pub message: ::std::string::String,
|
1827 + | #[pyo3(get, set)]
|
1828 + | /// :type typing.Optional\[typing.List\[constraints.model.ValidationExceptionField\]\]:
|
1829 + | /// 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.
|
1830 + | pub field_list: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
|
1926 1831 | }
|
1927 - | impl ::std::fmt::Display for ConstrainedShapesOnlyInOutputOperationError {
|
1928 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1929 - | match &self {
|
1930 - | ConstrainedShapesOnlyInOutputOperationError::InternalServerError(_inner) => {
|
1931 - | _inner.fmt(f)
|
1932 - | }
|
1832 + | impl ValidationException {
|
1833 + | /// 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.
|
1834 + | pub fn field_list(&self) -> ::std::option::Option<&[crate::model::ValidationExceptionField]> {
|
1835 + | self.field_list.as_deref()
|
1836 + | }
|
1837 + | }
|
1838 + | #[allow(clippy::new_without_default)]
|
1839 + | #[allow(clippy::too_many_arguments)]
|
1840 + | #[::pyo3::pymethods]
|
1841 + | impl ValidationException {
|
1842 + | #[new]
|
1843 + | pub fn new(
|
1844 + | message: ::std::string::String,
|
1845 + | field_list: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
|
1846 + | ) -> Self {
|
1847 + | Self {
|
1848 + | message,
|
1849 + | field_list,
|
1933 1850 | }
|
1934 1851 | }
|
1852 + | fn __repr__(&self) -> String {
|
1853 + | format!("{self:?}")
|
1854 + | }
|
1855 + | fn __str__(&self) -> String {
|
1856 + | format!("{self:?}")
|
1857 + | }
|
1935 1858 | }
|
1936 - | impl ConstrainedShapesOnlyInOutputOperationError {
|
1937 - | /// Returns `true` if the error kind is `ConstrainedShapesOnlyInOutputOperationError::InternalServerError`.
|
1938 - | pub fn is_internal_server_error(&self) -> bool {
|
1939 - | matches!(
|
1940 - | &self,
|
1941 - | ConstrainedShapesOnlyInOutputOperationError::InternalServerError(_)
|
1942 - | )
|
1859 + | impl ValidationException {
|
1860 + | /// Returns the error message.
|
1861 + | pub fn message(&self) -> &str {
|
1862 + | &self.message
|
1943 1863 | }
|
1944 - | /// Returns the error name string by matching the correct variant.
|
1864 + | #[doc(hidden)]
|
1865 + | /// Returns the error name.
|
1945 1866 | pub fn name(&self) -> &'static str {
|
1946 - | match &self {
|
1947 - | ConstrainedShapesOnlyInOutputOperationError::InternalServerError(_inner) => {
|
1948 - | _inner.name()
|
1949 - | }
|
1867 + | "ValidationException"
|
1868 + | }
|
1869 + | }
|
1870 + | impl ::std::fmt::Display for ValidationException {
|
1871 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1872 + | ::std::write!(f, "ValidationException")?;
|
1873 + | {
|
1874 + | ::std::write!(f, ": {}", &self.message)?;
|
1950 1875 | }
|
1876 + | Ok(())
|
1951 1877 | }
|
1952 1878 | }
|
1953 - | impl ::std::error::Error for ConstrainedShapesOnlyInOutputOperationError {
|
1954 - | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1955 - | match &self {
|
1956 - | ConstrainedShapesOnlyInOutputOperationError::InternalServerError(_inner) => {
|
1957 - | Some(_inner)
|
1958 - | }
|
1879 + | impl ::std::error::Error for ValidationException {}
|
1880 + | impl ValidationException {
|
1881 + | /// Creates a new builder-style object to manufacture [`ValidationException`](crate::error::ValidationException).
|
1882 + | pub fn builder() -> crate::error::validation_exception::Builder {
|
1883 + | crate::error::validation_exception::Builder::default()
|
1884 + | }
|
1885 + | }
|
1886 + |
|
1887 + | #[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
|
1888 + | /// :param message str:
|
1889 + | /// :rtype None:
|
1890 + | #[allow(missing_docs)] // documentation missing in model
|
1891 + | #[derive(
|
1892 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1893 + | )]
|
1894 + | pub struct InternalServerError {
|
1895 + | #[pyo3(get, set)]
|
1896 + | /// :type str:
|
1897 + | #[allow(missing_docs)] // documentation missing in model
|
1898 + | pub message: ::std::string::String,
|
1899 + | }
|
1900 + | #[allow(clippy::new_without_default)]
|
1901 + | #[allow(clippy::too_many_arguments)]
|
1902 + | #[::pyo3::pymethods]
|
1903 + | impl InternalServerError {
|
1904 + | #[new]
|
1905 + | pub fn new(message: ::std::string::String) -> Self {
|
1906 + | Self { message }
|
1907 + | }
|
1908 + | fn __repr__(&self) -> String {
|
1909 + | format!("{self:?}")
|
1910 + | }
|
1911 + | fn __str__(&self) -> String {
|
1912 + | format!("{self:?}")
|
1913 + | }
|
1914 + | }
|
1915 + | impl InternalServerError {
|
1916 + | /// Returns the error message.
|
1917 + | pub fn message(&self) -> &str {
|
1918 + | &self.message
|
1919 + | }
|
1920 + | #[doc(hidden)]
|
1921 + | /// Returns the error name.
|
1922 + | pub fn name(&self) -> &'static str {
|
1923 + | "InternalServerError"
|
1924 + | }
|
1925 + | }
|
1926 + | impl ::std::fmt::Display for InternalServerError {
|
1927 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1928 + | ::std::write!(f, "InternalServerError")?;
|
1929 + | {
|
1930 + | ::std::write!(f, ": {}", &self.message)?;
|
1959 1931 | }
|
1932 + | Ok(())
|
1933 + | }
|
1934 + | }
|
1935 + | impl ::std::error::Error for InternalServerError {}
|
1936 + | impl InternalServerError {
|
1937 + | /// Creates a new builder-style object to manufacture [`InternalServerError`](crate::error::InternalServerError).
|
1938 + | pub fn builder() -> crate::error::internal_server_error::Builder {
|
1939 + | crate::error::internal_server_error::Builder::default()
|
1940 + | }
|
1941 + | }
|
1942 + |
|
1943 + | #[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
|
1944 + | /// :param message_content typing.Optional\[str\]:
|
1945 + | /// :rtype None:
|
1946 + | #[allow(missing_docs)] // documentation missing in model
|
1947 + | #[derive(
|
1948 + | ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
|
1949 + | )]
|
1950 + | pub struct EventStreamErrorMessage {
|
1951 + | #[pyo3(get, set)]
|
1952 + | /// :type typing.Optional\[str\]:
|
1953 + | #[allow(missing_docs)] // documentation missing in model
|
1954 + | pub message_content: ::std::option::Option<::std::string::String>,
|
1955 + | }
|
1956 + | impl EventStreamErrorMessage {
|
1957 + | #[allow(missing_docs)] // documentation missing in model
|
1958 + | pub fn message_content(&self) -> ::std::option::Option<&str> {
|
1959 + | self.message_content.as_deref()
|
1960 + | }
|
1961 + | }
|
1962 + | #[allow(clippy::new_without_default)]
|
1963 + | #[allow(clippy::too_many_arguments)]
|
1964 + | #[::pyo3::pymethods]
|
1965 + | impl EventStreamErrorMessage {
|
1966 + | #[new]
|
1967 + | pub fn new(message_content: ::std::option::Option<::std::string::String>) -> Self {
|
1968 + | Self { message_content }
|
1969 + | }
|
1970 + | fn __repr__(&self) -> String {
|
1971 + | format!("{self:?}")
|
1972 + | }
|
1973 + | fn __str__(&self) -> String {
|
1974 + | format!("{self:?}")
|
1975 + | }
|
1976 + | }
|
1977 + | impl EventStreamErrorMessage {
|
1978 + | #[doc(hidden)]
|
1979 + | /// Returns the error name.
|
1980 + | pub fn name(&self) -> &'static str {
|
1981 + | "EventStreamErrorMessage"
|
1960 1982 | }
|
1961 1983 | }
|
1962 - | impl ::std::convert::From<crate::error::InternalServerError>
|
1963 - | for crate::error::ConstrainedShapesOnlyInOutputOperationError
|
1964 - | {
|
1965 - | fn from(
|
1966 - | variant: crate::error::InternalServerError,
|
1967 - | ) -> crate::error::ConstrainedShapesOnlyInOutputOperationError {
|
1968 - | Self::InternalServerError(variant)
|
1984 + | impl ::std::fmt::Display for EventStreamErrorMessage {
|
1985 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1986 + | ::std::write!(f, "EventStreamErrorMessage")?;
|
1987 + | Ok(())
|
1969 1988 | }
|
1970 1989 | }
|
1971 - |
|
1972 - | impl ::std::convert::From<::pyo3::PyErr>
|
1973 - | for crate::error::ConstrainedShapesOnlyInOutputOperationError
|
1974 - | {
|
1975 - | fn from(variant: ::pyo3::PyErr) -> crate::error::ConstrainedShapesOnlyInOutputOperationError {
|
1976 - | ::pyo3::Python::with_gil(|py| {
|
1977 - | let error = variant.value(py);
|
1978 - |
|
1979 - | crate::error::InternalServerError {
|
1980 - | message: error.to_string(),
|
1981 - | }
|
1982 - | .into()
|
1983 - | })
|
1990 + | impl ::std::error::Error for EventStreamErrorMessage {}
|
1991 + | impl crate::constrained::Constrained for crate::error::EventStreamErrorMessage {
|
1992 + | type Unconstrained = crate::error::event_stream_error_message_internal::Builder;
|
1993 + | }
|
1994 + | impl EventStreamErrorMessage {
|
1995 + | /// Creates a new builder-style object to manufacture [`EventStreamErrorMessage`](crate::error::EventStreamErrorMessage).
|
1996 + | pub fn builder() -> crate::error::event_stream_error_message::Builder {
|
1997 + | crate::error::event_stream_error_message::Builder::default()
|
1984 1998 | }
|
1985 1999 | }
|
1986 2000 |
|
1987 - | /// Error type for the `ConstrainedShapesOperation` operation.
|
1988 - | /// Each variant represents an error that can occur for the `ConstrainedShapesOperation` operation.
|
2001 + | /// Error type for the `Event` operation.
|
2002 + | /// Each variant represents an error that can occur for the `Event` operation.
|
1989 2003 | #[derive(::std::fmt::Debug)]
|
1990 - | pub enum ConstrainedShapesOperationError {
|
1991 - | /// 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.
|
1992 - | ValidationException(crate::error::ValidationException),
|
2004 + | pub enum EventError {
|
1993 2005 | #[allow(missing_docs)] // documentation missing in model
|
1994 - | InternalServerError(crate::error::InternalServerError),
|
2006 + | EventStreamErrorMessage(crate::error::EventStreamErrorMessage),
|
1995 2007 | }
|
1996 - | impl ::std::fmt::Display for ConstrainedShapesOperationError {
|
2008 + | impl ::std::fmt::Display for EventError {
|
1997 2009 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1998 2010 | match &self {
|
1999 - | ConstrainedShapesOperationError::ValidationException(_inner) => _inner.fmt(f),
|
2000 - | ConstrainedShapesOperationError::InternalServerError(_inner) => _inner.fmt(f),
|
2011 + | EventError::EventStreamErrorMessage(_inner) => _inner.fmt(f),
|
2001 2012 | }
|
2002 2013 | }
|
2003 2014 | }
|
2004 - | impl ConstrainedShapesOperationError {
|
2005 - | /// Returns `true` if the error kind is `ConstrainedShapesOperationError::ValidationException`.
|
2006 - | pub fn is_validation_exception(&self) -> bool {
|
2007 - | matches!(
|
2008 - | &self,
|
2009 - | ConstrainedShapesOperationError::ValidationException(_)
|
2010 - | )
|
2011 - | }
|
2012 - | /// Returns `true` if the error kind is `ConstrainedShapesOperationError::InternalServerError`.
|
2013 - | pub fn is_internal_server_error(&self) -> bool {
|
2014 - | matches!(
|
2015 - | &self,
|
2016 - | ConstrainedShapesOperationError::InternalServerError(_)
|
2017 - | )
|
2015 + | impl EventError {
|
2016 + | /// Returns `true` if the error kind is `EventError::EventStreamErrorMessage`.
|
2017 + | pub fn is_event_stream_error_message(&self) -> bool {
|
2018 + | matches!(&self, EventError::EventStreamErrorMessage(_))
|
2018 2019 | }
|
2019 2020 | /// Returns the error name string by matching the correct variant.
|
2020 2021 | pub fn name(&self) -> &'static str {
|
2021 2022 | match &self {
|
2022 - | ConstrainedShapesOperationError::ValidationException(_inner) => _inner.name(),
|
2023 - | ConstrainedShapesOperationError::InternalServerError(_inner) => _inner.name(),
|
2023 + | EventError::EventStreamErrorMessage(_inner) => _inner.name(),
|
2024 2024 | }
|
2025 2025 | }
|
2026 2026 | }
|
2027 - | impl ::std::error::Error for ConstrainedShapesOperationError {
|
2027 + | impl ::std::error::Error for EventError {
|
2028 2028 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
2029 2029 | match &self {
|
2030 - | ConstrainedShapesOperationError::ValidationException(_inner) => Some(_inner),
|
2031 - | ConstrainedShapesOperationError::InternalServerError(_inner) => Some(_inner),
|
2030 + | EventError::EventStreamErrorMessage(_inner) => Some(_inner),
|
2032 2031 | }
|
2033 2032 | }
|
2034 2033 | }
|
2035 - | impl ::std::convert::From<crate::error::ValidationException>
|
2036 - | for crate::error::ConstrainedShapesOperationError
|
2037 - | {
|
2038 - | fn from(
|
2039 - | variant: crate::error::ValidationException,
|
2040 - | ) -> crate::error::ConstrainedShapesOperationError {
|
2041 - | Self::ValidationException(variant)
|
2034 + | impl ::std::convert::From<crate::error::EventStreamErrorMessage> for crate::error::EventError {
|
2035 + | fn from(variant: crate::error::EventStreamErrorMessage) -> crate::error::EventError {
|
2036 + | Self::EventStreamErrorMessage(variant)
|
2042 2037 | }
|
2043 2038 | }
|
2044 - | impl ::std::convert::From<crate::error::InternalServerError>
|
2045 - | for crate::error::ConstrainedShapesOperationError
|
2046 - | {
|
2047 - | fn from(
|
2048 - | variant: crate::error::InternalServerError,
|
2049 - | ) -> crate::error::ConstrainedShapesOperationError {
|
2050 - | Self::InternalServerError(variant)
|
2039 + | impl<'source> ::pyo3::FromPyObject<'source> for EventError {
|
2040 + | fn extract(obj: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
2041 + | if let Ok(it) = obj.extract::<crate::error::EventStreamErrorMessage>() {
|
2042 + | return Ok(Self::EventStreamErrorMessage(it));
|
2043 + | }
|
2044 + | Err(::pyo3::exceptions::PyTypeError::new_err(format!(
|
2045 + | "failed to extract 'EventError' from '{}'",
|
2046 + | obj
|
2047 + | )))
|
2051 2048 | }
|
2052 2049 | }
|
2053 - |
|
2054 - | impl ::std::convert::From<::pyo3::PyErr> for crate::error::ConstrainedShapesOperationError {
|
2055 - | fn from(variant: ::pyo3::PyErr) -> crate::error::ConstrainedShapesOperationError {
|
2050 + | impl ::pyo3::IntoPy<::pyo3::PyObject> for EventError {
|
2051 + | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
2052 + | match self {
|
2053 + | Self::EventStreamErrorMessage(it) => match ::pyo3::Py::new(py, it) {
|
2054 + | Ok(it) => it.into_py(py),
|
2055 + | Err(err) => err.into_py(py),
|
2056 + | },
|
2057 + | }
|
2058 + | }
|
2059 + | }
|
2060 + | impl ::std::convert::From<EventError> for ::pyo3::PyErr {
|
2061 + | fn from(err: EventError) -> ::pyo3::PyErr {
|
2056 2062 | ::pyo3::Python::with_gil(|py| {
|
2057 - | let error = variant.value(py);
|
2058 - | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
2059 - | return error.into();
|
2060 - | }
|
2061 - | crate::error::InternalServerError {
|
2062 - | message: error.to_string(),
|
2063 - | }
|
2064 - | .into()
|
2063 + | let py_err = ::pyo3::IntoPy::into_py(err, py);
|
2064 + | ::pyo3::PyErr::from_value(py_err.as_ref(py))
|
2065 2065 | })
|
2066 2066 | }
|
2067 2067 | }
|
2068 + | /// See [`ValidationException`](crate::error::ValidationException).
|
2069 + | pub mod validation_exception {
|
2070 + |
|
2071 + | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2072 + | /// Holds one variant for each of the ways the builder can fail.
|
2073 + | #[allow(clippy::enum_variant_names)]
|
2074 + | pub enum ConstraintViolation {
|
2075 + | /// `message` was not provided but it is required when building `ValidationException`.
|
2076 + | MissingMessage,
|
2077 + | }
|
2078 + | impl ::std::fmt::Display for ConstraintViolation {
|
2079 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2080 + | match self {
|
2081 + | ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationException`"),
|
2082 + | }
|
2083 + | }
|
2084 + | }
|
2085 + | impl ::std::error::Error for ConstraintViolation {}
|
2086 + | impl ::std::convert::TryFrom<Builder> for crate::error::ValidationException {
|
2087 + | type Error = ConstraintViolation;
|
2088 + |
|
2089 + | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2090 + | builder.build()
|
2091 + | }
|
2092 + | }
|
2093 + | /// A builder for [`ValidationException`](crate::error::ValidationException).
|
2094 + | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2095 + | pub struct Builder {
|
2096 + | pub(crate) message: ::std::option::Option<::std::string::String>,
|
2097 + | pub(crate) field_list:
|
2098 + | ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
|
2099 + | }
|
2100 + | impl Builder {
|
2101 + | /// A summary of the validation failure.
|
2102 + | pub fn message(mut self, input: ::std::string::String) -> Self {
|
2103 + | self.message = Some(input);
|
2104 + | self
|
2105 + | }
|
2106 + | /// 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.
|
2107 + | pub fn field_list(
|
2108 + | mut self,
|
2109 + | input: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
|
2110 + | ) -> Self {
|
2111 + | self.field_list = input;
|
2112 + | self
|
2113 + | }
|
2114 + | /// Consumes the builder and constructs a [`ValidationException`](crate::error::ValidationException).
|
2115 + | ///
|
2116 + | /// The builder fails to construct a [`ValidationException`](crate::error::ValidationException) if you do not provide a value for all non-`Option`al members.
|
2117 + | ///
|
2118 + | pub fn build(self) -> Result<crate::error::ValidationException, ConstraintViolation> {
|
2119 + | self.build_enforcing_required_and_enum_traits()
|
2120 + | }
|
2121 + | fn build_enforcing_required_and_enum_traits(
|
2122 + | self,
|
2123 + | ) -> Result<crate::error::ValidationException, ConstraintViolation> {
|
2124 + | Ok(crate::error::ValidationException {
|
2125 + | message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
|
2126 + | field_list: self.field_list,
|
2127 + | })
|
2128 + | }
|
2129 + | }
|
2130 + | }
|
2068 2131 | /// See [`InternalServerError`](crate::error::InternalServerError).
|
2069 2132 | pub mod internal_server_error {
|
2070 2133 |
|
2071 2134 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2072 2135 | /// Holds one variant for each of the ways the builder can fail.
|
2073 2136 | #[allow(clippy::enum_variant_names)]
|
2074 2137 | pub enum ConstraintViolation {
|
2075 2138 | /// `message` was not provided but it is required when building `InternalServerError`.
|
2076 2139 | MissingMessage,
|
2077 2140 | }
|