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 }
|
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)
|
122 96 | }
|
123 - | fn __repr__(&self) -> String {
|
124 - | format!("{self:?}")
|
125 97 | }
|
126 - | fn __str__(&self) -> String {
|
127 - | format!("{self:?}")
|
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 }
|
184 - | }
|
185 - | fn __repr__(&self) -> String {
|
186 - | format!("{self:?}")
|
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),
|
187 165 | }
|
188 - | fn __str__(&self) -> String {
|
189 - | format!("{self:?}")
|
190 166 | }
|
191 167 | }
|
192 - | impl EventStreamErrorMessage {
|
193 - | #[doc(hidden)]
|
194 - | /// Returns the error name.
|
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 + | )
|
175 + | }
|
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 + | )
|
182 + | }
|
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;
|
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)
|
206 + | }
|
208 207 | }
|
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()
|
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)
|
213 215 | }
|
214 216 | }
|
215 217 |
|
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)?;
|
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();
|
277 226 | }
|
278 - | Ok(())
|
227 + | crate::error::InternalServerError {
|
228 + | message: error.to_string(),
|
279 229 | }
|
280 - | }
|
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()
|
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),
|
319 - | }
|
286 + | ConstrainedHttpPayloadBoundShapeOperationError::ValidationException(_inner) => {
|
287 + | Some(_inner)
|
320 288 | }
|
321 - | }
|
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)
|
289 + | ConstrainedHttpPayloadBoundShapeOperationError::InternalServerError(_inner) => {
|
290 + | Some(_inner)
|
325 291 | }
|
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 292 | }
|
332 - | Err(::pyo3::exceptions::PyTypeError::new_err(format!(
|
333 - | "failed to extract 'EventError' from '{}'",
|
334 - | obj
|
335 - | )))
|
336 293 | }
|
337 294 | }
|
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 - | },
|
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)
|
345 302 | }
|
303 + | }
|
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),
|
378 + | }
|
387 379 | }
|
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 388 | }
|
389 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),
|
424 - | }
|
425 - | }
|
426 - | }
|
427 - | impl NonStreamingBlobOperationError {
|
428 - | /// Returns `true` if the error kind is `NonStreamingBlobOperationError::InternalServerError`.
|
429 - | pub fn is_internal_server_error(&self) -> bool {
|
430 - | matches!(
|
431 - | &self,
|
432 - | NonStreamingBlobOperationError::InternalServerError(_)
|
433 - | )
|
434 - | }
|
435 - | /// Returns the error name string by matching the correct variant.
|
436 - | pub fn name(&self) -> &'static str {
|
437 - | match &self {
|
438 - | NonStreamingBlobOperationError::InternalServerError(_inner) => _inner.name(),
|
439 - | }
|
440 - | }
|
441 - | }
|
442 - | impl ::std::error::Error for NonStreamingBlobOperationError {
|
443 - | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
444 - | match &self {
|
445 - | NonStreamingBlobOperationError::InternalServerError(_inner) => Some(_inner),
|
446 - | }
|
447 - | }
|
448 - | }
|
449 - | impl ::std::convert::From<crate::error::InternalServerError>
|
450 - | for crate::error::NonStreamingBlobOperationError
|
451 - | {
|
452 - | fn from(
|
453 - | variant: crate::error::InternalServerError,
|
454 - | ) -> crate::error::NonStreamingBlobOperationError {
|
455 - | Self::InternalServerError(variant)
|
456 - | }
|
457 - | }
|
458 - |
|
459 - | impl ::std::convert::From<::pyo3::PyErr> for crate::error::NonStreamingBlobOperationError {
|
460 - | fn from(variant: ::pyo3::PyErr) -> crate::error::NonStreamingBlobOperationError {
|
461 - | ::pyo3::Python::with_gil(|py| {
|
462 - | let error = variant.value(py);
|
463 - |
|
464 - | crate::error::InternalServerError {
|
465 - | message: error.to_string(),
|
466 - | }
|
467 - | .into()
|
468 - | })
|
469 - | }
|
470 - | }
|
471 - |
|
472 - | /// Error type for the `QueryParamsTargetingMapOfEnumStringOperation` operation.
|
473 - | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfEnumStringOperation` operation.
|
474 - | #[derive(::std::fmt::Debug)]
|
475 - | pub enum QueryParamsTargetingMapOfEnumStringOperationError {
|
476 - | /// 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 - | ValidationException(crate::error::ValidationException),
|
478 - | #[allow(missing_docs)] // documentation missing in model
|
479 - | InternalServerError(crate::error::InternalServerError),
|
480 - | }
|
481 - | impl ::std::fmt::Display for QueryParamsTargetingMapOfEnumStringOperationError {
|
482 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
483 - | match &self {
|
484 - | QueryParamsTargetingMapOfEnumStringOperationError::ValidationException(_inner) => {
|
429 + | QueryParamsTargetingLengthMapOperationError::ValidationException(_inner) => {
|
485 430 | _inner.fmt(f)
|
486 431 | }
|
487 - | QueryParamsTargetingMapOfEnumStringOperationError::InternalServerError(_inner) => {
|
432 + | QueryParamsTargetingLengthMapOperationError::InternalServerError(_inner) => {
|
488 433 | _inner.fmt(f)
|
489 434 | }
|
490 435 | }
|
491 436 | }
|
492 437 | }
|
493 - | impl QueryParamsTargetingMapOfEnumStringOperationError {
|
494 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfEnumStringOperationError::ValidationException`.
|
438 + | impl QueryParamsTargetingLengthMapOperationError {
|
439 + | /// Returns `true` if the error kind is `QueryParamsTargetingLengthMapOperationError::ValidationException`.
|
495 440 | pub fn is_validation_exception(&self) -> bool {
|
496 441 | matches!(
|
497 442 | &self,
|
498 - | QueryParamsTargetingMapOfEnumStringOperationError::ValidationException(_)
|
443 + | QueryParamsTargetingLengthMapOperationError::ValidationException(_)
|
499 444 | )
|
500 445 | }
|
501 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfEnumStringOperationError::InternalServerError`.
|
446 + | /// Returns `true` if the error kind is `QueryParamsTargetingLengthMapOperationError::InternalServerError`.
|
502 447 | pub fn is_internal_server_error(&self) -> bool {
|
503 448 | matches!(
|
504 449 | &self,
|
505 - | QueryParamsTargetingMapOfEnumStringOperationError::InternalServerError(_)
|
450 + | QueryParamsTargetingLengthMapOperationError::InternalServerError(_)
|
506 451 | )
|
507 452 | }
|
508 453 | /// Returns the error name string by matching the correct variant.
|
509 454 | pub fn name(&self) -> &'static str {
|
510 455 | match &self {
|
511 - | QueryParamsTargetingMapOfEnumStringOperationError::ValidationException(_inner) => {
|
456 + | QueryParamsTargetingLengthMapOperationError::ValidationException(_inner) => {
|
512 457 | _inner.name()
|
513 458 | }
|
514 - | QueryParamsTargetingMapOfEnumStringOperationError::InternalServerError(_inner) => {
|
459 + | QueryParamsTargetingLengthMapOperationError::InternalServerError(_inner) => {
|
515 460 | _inner.name()
|
516 461 | }
|
517 462 | }
|
518 463 | }
|
519 464 | }
|
520 - | impl ::std::error::Error for QueryParamsTargetingMapOfEnumStringOperationError {
|
465 + | impl ::std::error::Error for QueryParamsTargetingLengthMapOperationError {
|
521 466 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
522 467 | match &self {
|
523 - | QueryParamsTargetingMapOfEnumStringOperationError::ValidationException(_inner) => {
|
468 + | QueryParamsTargetingLengthMapOperationError::ValidationException(_inner) => {
|
524 469 | Some(_inner)
|
525 470 | }
|
526 - | QueryParamsTargetingMapOfEnumStringOperationError::InternalServerError(_inner) => {
|
471 + | QueryParamsTargetingLengthMapOperationError::InternalServerError(_inner) => {
|
527 472 | Some(_inner)
|
528 473 | }
|
529 474 | }
|
530 475 | }
|
531 476 | }
|
532 477 | impl ::std::convert::From<crate::error::ValidationException>
|
533 - | for crate::error::QueryParamsTargetingMapOfEnumStringOperationError
|
478 + | for crate::error::QueryParamsTargetingLengthMapOperationError
|
534 479 | {
|
535 480 | fn from(
|
536 481 | variant: crate::error::ValidationException,
|
537 - | ) -> crate::error::QueryParamsTargetingMapOfEnumStringOperationError {
|
482 + | ) -> crate::error::QueryParamsTargetingLengthMapOperationError {
|
538 483 | Self::ValidationException(variant)
|
539 484 | }
|
540 485 | }
|
541 486 | impl ::std::convert::From<crate::error::InternalServerError>
|
542 - | for crate::error::QueryParamsTargetingMapOfEnumStringOperationError
|
487 + | for crate::error::QueryParamsTargetingLengthMapOperationError
|
543 488 | {
|
544 489 | fn from(
|
545 490 | variant: crate::error::InternalServerError,
|
546 - | ) -> crate::error::QueryParamsTargetingMapOfEnumStringOperationError {
|
491 + | ) -> crate::error::QueryParamsTargetingLengthMapOperationError {
|
547 492 | Self::InternalServerError(variant)
|
548 493 | }
|
549 494 | }
|
550 495 |
|
551 496 | impl ::std::convert::From<::pyo3::PyErr>
|
552 - | for crate::error::QueryParamsTargetingMapOfEnumStringOperationError
|
497 + | for crate::error::QueryParamsTargetingLengthMapOperationError
|
553 498 | {
|
554 - | fn from(
|
555 - | variant: ::pyo3::PyErr,
|
556 - | ) -> crate::error::QueryParamsTargetingMapOfEnumStringOperationError {
|
499 + | fn from(variant: ::pyo3::PyErr) -> crate::error::QueryParamsTargetingLengthMapOperationError {
|
557 500 | ::pyo3::Python::with_gil(|py| {
|
558 501 | let error = variant.value(py);
|
559 502 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
560 503 | return error.into();
|
561 504 | }
|
562 505 | crate::error::InternalServerError {
|
563 506 | message: error.to_string(),
|
564 507 | }
|
565 508 | .into()
|
566 509 | })
|
567 510 | }
|
568 511 | }
|
569 512 |
|
570 - | /// Error type for the `HttpPrefixHeadersTargetingLengthMapOperation` operation.
|
571 - | /// Each variant represents an error that can occur for the `HttpPrefixHeadersTargetingLengthMapOperation` operation.
|
513 + | /// Error type for the `QueryParamsTargetingMapOfLengthStringOperation` operation.
|
514 + | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfLengthStringOperation` operation.
|
572 515 | #[derive(::std::fmt::Debug)]
|
573 - | pub enum HttpPrefixHeadersTargetingLengthMapOperationError {
|
516 + | pub enum QueryParamsTargetingMapOfLengthStringOperationError {
|
574 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.
|
575 518 | ValidationException(crate::error::ValidationException),
|
576 519 | #[allow(missing_docs)] // documentation missing in model
|
577 520 | InternalServerError(crate::error::InternalServerError),
|
578 521 | }
|
579 - | impl ::std::fmt::Display for HttpPrefixHeadersTargetingLengthMapOperationError {
|
522 + | impl ::std::fmt::Display for QueryParamsTargetingMapOfLengthStringOperationError {
|
580 523 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
581 524 | match &self {
|
582 - | HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException(_inner) => {
|
525 + | QueryParamsTargetingMapOfLengthStringOperationError::ValidationException(_inner) => {
|
583 526 | _inner.fmt(f)
|
584 527 | }
|
585 - | HttpPrefixHeadersTargetingLengthMapOperationError::InternalServerError(_inner) => {
|
528 + | QueryParamsTargetingMapOfLengthStringOperationError::InternalServerError(_inner) => {
|
586 529 | _inner.fmt(f)
|
587 530 | }
|
588 531 | }
|
589 532 | }
|
590 533 | }
|
591 - | impl HttpPrefixHeadersTargetingLengthMapOperationError {
|
592 - | /// Returns `true` if the error kind is `HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException`.
|
534 + | impl QueryParamsTargetingMapOfLengthStringOperationError {
|
535 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfLengthStringOperationError::ValidationException`.
|
593 536 | pub fn is_validation_exception(&self) -> bool {
|
594 537 | matches!(
|
595 538 | &self,
|
596 - | HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException(_)
|
539 + | QueryParamsTargetingMapOfLengthStringOperationError::ValidationException(_)
|
597 540 | )
|
598 541 | }
|
599 - | /// Returns `true` if the error kind is `HttpPrefixHeadersTargetingLengthMapOperationError::InternalServerError`.
|
542 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfLengthStringOperationError::InternalServerError`.
|
600 543 | pub fn is_internal_server_error(&self) -> bool {
|
601 544 | matches!(
|
602 545 | &self,
|
603 - | HttpPrefixHeadersTargetingLengthMapOperationError::InternalServerError(_)
|
546 + | QueryParamsTargetingMapOfLengthStringOperationError::InternalServerError(_)
|
604 547 | )
|
605 548 | }
|
606 549 | /// Returns the error name string by matching the correct variant.
|
607 550 | pub fn name(&self) -> &'static str {
|
608 551 | match &self {
|
609 - | HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException(_inner) => {
|
552 + | QueryParamsTargetingMapOfLengthStringOperationError::ValidationException(_inner) => {
|
610 553 | _inner.name()
|
611 554 | }
|
612 - | HttpPrefixHeadersTargetingLengthMapOperationError::InternalServerError(_inner) => {
|
555 + | QueryParamsTargetingMapOfLengthStringOperationError::InternalServerError(_inner) => {
|
613 556 | _inner.name()
|
614 557 | }
|
615 558 | }
|
616 559 | }
|
617 560 | }
|
618 - | impl ::std::error::Error for HttpPrefixHeadersTargetingLengthMapOperationError {
|
561 + | impl ::std::error::Error for QueryParamsTargetingMapOfLengthStringOperationError {
|
619 562 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
620 563 | match &self {
|
621 - | HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException(_inner) => {
|
564 + | QueryParamsTargetingMapOfLengthStringOperationError::ValidationException(_inner) => {
|
622 565 | Some(_inner)
|
623 566 | }
|
624 - | HttpPrefixHeadersTargetingLengthMapOperationError::InternalServerError(_inner) => {
|
567 + | QueryParamsTargetingMapOfLengthStringOperationError::InternalServerError(_inner) => {
|
625 568 | Some(_inner)
|
626 569 | }
|
627 570 | }
|
628 571 | }
|
629 572 | }
|
630 573 | impl ::std::convert::From<crate::error::ValidationException>
|
631 - | for crate::error::HttpPrefixHeadersTargetingLengthMapOperationError
|
574 + | for crate::error::QueryParamsTargetingMapOfLengthStringOperationError
|
632 575 | {
|
633 576 | fn from(
|
634 577 | variant: crate::error::ValidationException,
|
635 - | ) -> crate::error::HttpPrefixHeadersTargetingLengthMapOperationError {
|
578 + | ) -> crate::error::QueryParamsTargetingMapOfLengthStringOperationError {
|
636 579 | Self::ValidationException(variant)
|
637 580 | }
|
638 581 | }
|
639 582 | impl ::std::convert::From<crate::error::InternalServerError>
|
640 - | for crate::error::HttpPrefixHeadersTargetingLengthMapOperationError
|
583 + | for crate::error::QueryParamsTargetingMapOfLengthStringOperationError
|
641 584 | {
|
642 585 | fn from(
|
643 586 | variant: crate::error::InternalServerError,
|
644 - | ) -> crate::error::HttpPrefixHeadersTargetingLengthMapOperationError {
|
587 + | ) -> crate::error::QueryParamsTargetingMapOfLengthStringOperationError {
|
645 588 | Self::InternalServerError(variant)
|
646 589 | }
|
647 590 | }
|
648 591 |
|
649 592 | impl ::std::convert::From<::pyo3::PyErr>
|
650 - | for crate::error::HttpPrefixHeadersTargetingLengthMapOperationError
|
593 + | for crate::error::QueryParamsTargetingMapOfLengthStringOperationError
|
651 594 | {
|
652 595 | fn from(
|
653 596 | variant: ::pyo3::PyErr,
|
654 - | ) -> crate::error::HttpPrefixHeadersTargetingLengthMapOperationError {
|
597 + | ) -> crate::error::QueryParamsTargetingMapOfLengthStringOperationError {
|
655 598 | ::pyo3::Python::with_gil(|py| {
|
656 599 | let error = variant.value(py);
|
657 600 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
658 601 | return error.into();
|
659 602 | }
|
660 603 | crate::error::InternalServerError {
|
661 604 | message: error.to_string(),
|
662 605 | }
|
663 606 | .into()
|
664 607 | })
|
665 608 | }
|
666 609 | }
|
667 610 |
|
668 - | /// Error type for the `QueryParamsTargetingMapOfListOfLengthPatternStringOperation` operation.
|
669 - | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfListOfLengthPatternStringOperation` operation.
|
611 + | /// Error type for the `QueryParamsTargetingMapOfListOfLengthStringOperation` operation.
|
612 + | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfListOfLengthStringOperation` operation.
|
670 613 | #[derive(::std::fmt::Debug)]
|
671 - | pub enum QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
614 + | pub enum QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
672 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.
|
673 616 | ValidationException(crate::error::ValidationException),
|
674 617 | #[allow(missing_docs)] // documentation missing in model
|
675 618 | InternalServerError(crate::error::InternalServerError),
|
676 619 | }
|
677 - | impl ::std::fmt::Display for QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
620 + | impl ::std::fmt::Display for QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
678 621 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
679 622 | match &self {
|
680 - | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException(_inner) =>
|
681 - | _inner.fmt(f)
|
682 - | ,
|
683 - | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::InternalServerError(_inner) =>
|
684 - | _inner.fmt(f)
|
685 - | ,
|
623 + | QueryParamsTargetingMapOfListOfLengthStringOperationError::ValidationException(
|
624 + | _inner,
|
625 + | ) => _inner.fmt(f),
|
626 + | QueryParamsTargetingMapOfListOfLengthStringOperationError::InternalServerError(
|
627 + | _inner,
|
628 + | ) => _inner.fmt(f),
|
686 629 | }
|
687 630 | }
|
688 631 | }
|
689 - | impl QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
690 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException`.
|
632 + | impl QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
633 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfLengthStringOperationError::ValidationException`.
|
691 634 | pub fn is_validation_exception(&self) -> bool {
|
692 635 | matches!(
|
693 636 | &self,
|
694 - | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException(
|
695 - | _
|
696 - | )
|
637 + | QueryParamsTargetingMapOfListOfLengthStringOperationError::ValidationException(_)
|
697 638 | )
|
698 639 | }
|
699 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::InternalServerError`.
|
640 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfLengthStringOperationError::InternalServerError`.
|
700 641 | pub fn is_internal_server_error(&self) -> bool {
|
701 642 | matches!(
|
702 643 | &self,
|
703 - | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::InternalServerError(
|
704 - | _
|
705 - | )
|
644 + | QueryParamsTargetingMapOfListOfLengthStringOperationError::InternalServerError(_)
|
706 645 | )
|
707 646 | }
|
708 647 | /// Returns the error name string by matching the correct variant.
|
709 648 | pub fn name(&self) -> &'static str {
|
710 649 | match &self {
|
711 - | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException(_inner) =>
|
712 - | _inner.name()
|
713 - | ,
|
714 - | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::InternalServerError(_inner) =>
|
715 - | _inner.name()
|
716 - | ,
|
650 + | QueryParamsTargetingMapOfListOfLengthStringOperationError::ValidationException(
|
651 + | _inner,
|
652 + | ) => _inner.name(),
|
653 + | QueryParamsTargetingMapOfListOfLengthStringOperationError::InternalServerError(
|
654 + | _inner,
|
655 + | ) => _inner.name(),
|
717 656 | }
|
718 657 | }
|
719 658 | }
|
720 - | impl ::std::error::Error for QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
659 + | impl ::std::error::Error for QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
721 660 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
722 661 | match &self {
|
723 - | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException(_inner) =>
|
724 - | Some(_inner)
|
725 - | ,
|
726 - | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::InternalServerError(_inner) =>
|
727 - | Some(_inner)
|
728 - | ,
|
662 + | QueryParamsTargetingMapOfListOfLengthStringOperationError::ValidationException(
|
663 + | _inner,
|
664 + | ) => Some(_inner),
|
665 + | QueryParamsTargetingMapOfListOfLengthStringOperationError::InternalServerError(
|
666 + | _inner,
|
667 + | ) => Some(_inner),
|
729 668 | }
|
730 669 | }
|
731 670 | }
|
732 671 | impl ::std::convert::From<crate::error::ValidationException>
|
733 - | for crate::error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError
|
672 + | for crate::error::QueryParamsTargetingMapOfListOfLengthStringOperationError
|
734 673 | {
|
735 674 | fn from(
|
736 675 | variant: crate::error::ValidationException,
|
737 - | ) -> crate::error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
676 + | ) -> crate::error::QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
738 677 | Self::ValidationException(variant)
|
739 678 | }
|
740 679 | }
|
741 680 | impl ::std::convert::From<crate::error::InternalServerError>
|
742 - | for crate::error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError
|
681 + | for crate::error::QueryParamsTargetingMapOfListOfLengthStringOperationError
|
743 682 | {
|
744 683 | fn from(
|
745 684 | variant: crate::error::InternalServerError,
|
746 - | ) -> crate::error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
685 + | ) -> crate::error::QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
747 686 | Self::InternalServerError(variant)
|
748 687 | }
|
749 688 | }
|
750 689 |
|
751 690 | impl ::std::convert::From<::pyo3::PyErr>
|
752 - | for crate::error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError
|
691 + | for crate::error::QueryParamsTargetingMapOfListOfLengthStringOperationError
|
753 692 | {
|
754 693 | fn from(
|
755 694 | variant: ::pyo3::PyErr,
|
756 - | ) -> crate::error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
695 + | ) -> crate::error::QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
757 696 | ::pyo3::Python::with_gil(|py| {
|
758 697 | let error = variant.value(py);
|
759 698 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
760 699 | return error.into();
|
761 700 | }
|
762 701 | crate::error::InternalServerError {
|
763 702 | message: error.to_string(),
|
764 703 | }
|
765 704 | .into()
|
766 705 | })
|
767 706 | }
|
768 707 | }
|
769 708 |
|
770 - | /// Error type for the `QueryParamsTargetingMapOfLengthPatternStringOperation` operation.
|
771 - | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfLengthPatternStringOperation` operation.
|
709 + | /// Error type for the `QueryParamsTargetingMapOfSetOfLengthStringOperation` operation.
|
710 + | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfSetOfLengthStringOperation` operation.
|
772 711 | #[derive(::std::fmt::Debug)]
|
773 - | pub enum QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
712 + | pub enum QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
774 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.
|
775 714 | ValidationException(crate::error::ValidationException),
|
776 715 | #[allow(missing_docs)] // documentation missing in model
|
777 716 | InternalServerError(crate::error::InternalServerError),
|
778 717 | }
|
779 - | impl ::std::fmt::Display for QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
718 + | impl ::std::fmt::Display for QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
780 719 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
781 720 | match &self {
|
782 - | QueryParamsTargetingMapOfLengthPatternStringOperationError::ValidationException(
|
721 + | QueryParamsTargetingMapOfSetOfLengthStringOperationError::ValidationException(
|
783 722 | _inner,
|
784 723 | ) => _inner.fmt(f),
|
785 - | QueryParamsTargetingMapOfLengthPatternStringOperationError::InternalServerError(
|
724 + | QueryParamsTargetingMapOfSetOfLengthStringOperationError::InternalServerError(
|
786 725 | _inner,
|
787 726 | ) => _inner.fmt(f),
|
788 727 | }
|
789 728 | }
|
790 729 | }
|
791 - | impl QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
792 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfLengthPatternStringOperationError::ValidationException`.
|
730 + | impl QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
731 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfSetOfLengthStringOperationError::ValidationException`.
|
793 732 | pub fn is_validation_exception(&self) -> bool {
|
794 733 | matches!(
|
795 734 | &self,
|
796 - | QueryParamsTargetingMapOfLengthPatternStringOperationError::ValidationException(_)
|
735 + | QueryParamsTargetingMapOfSetOfLengthStringOperationError::ValidationException(_)
|
797 736 | )
|
798 737 | }
|
799 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfLengthPatternStringOperationError::InternalServerError`.
|
738 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfSetOfLengthStringOperationError::InternalServerError`.
|
800 739 | pub fn is_internal_server_error(&self) -> bool {
|
801 740 | matches!(
|
802 741 | &self,
|
803 - | QueryParamsTargetingMapOfLengthPatternStringOperationError::InternalServerError(_)
|
742 + | QueryParamsTargetingMapOfSetOfLengthStringOperationError::InternalServerError(_)
|
804 743 | )
|
805 744 | }
|
806 745 | /// Returns the error name string by matching the correct variant.
|
807 746 | pub fn name(&self) -> &'static str {
|
808 747 | match &self {
|
809 - | QueryParamsTargetingMapOfLengthPatternStringOperationError::ValidationException(
|
748 + | QueryParamsTargetingMapOfSetOfLengthStringOperationError::ValidationException(
|
810 749 | _inner,
|
811 750 | ) => _inner.name(),
|
812 - | QueryParamsTargetingMapOfLengthPatternStringOperationError::InternalServerError(
|
751 + | QueryParamsTargetingMapOfSetOfLengthStringOperationError::InternalServerError(
|
813 752 | _inner,
|
814 753 | ) => _inner.name(),
|
815 754 | }
|
816 755 | }
|
817 756 | }
|
818 - | impl ::std::error::Error for QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
757 + | impl ::std::error::Error for QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
819 758 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
820 759 | match &self {
|
821 - | QueryParamsTargetingMapOfLengthPatternStringOperationError::ValidationException(
|
760 + | QueryParamsTargetingMapOfSetOfLengthStringOperationError::ValidationException(
|
822 761 | _inner,
|
823 762 | ) => Some(_inner),
|
824 - | QueryParamsTargetingMapOfLengthPatternStringOperationError::InternalServerError(
|
763 + | QueryParamsTargetingMapOfSetOfLengthStringOperationError::InternalServerError(
|
825 764 | _inner,
|
826 765 | ) => Some(_inner),
|
827 766 | }
|
828 767 | }
|
829 768 | }
|
830 769 | impl ::std::convert::From<crate::error::ValidationException>
|
831 - | for crate::error::QueryParamsTargetingMapOfLengthPatternStringOperationError
|
770 + | for crate::error::QueryParamsTargetingMapOfSetOfLengthStringOperationError
|
832 771 | {
|
833 772 | fn from(
|
834 773 | variant: crate::error::ValidationException,
|
835 - | ) -> crate::error::QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
774 + | ) -> crate::error::QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
836 775 | Self::ValidationException(variant)
|
837 776 | }
|
838 777 | }
|
839 778 | impl ::std::convert::From<crate::error::InternalServerError>
|
840 - | for crate::error::QueryParamsTargetingMapOfLengthPatternStringOperationError
|
779 + | for crate::error::QueryParamsTargetingMapOfSetOfLengthStringOperationError
|
841 780 | {
|
842 781 | fn from(
|
843 782 | variant: crate::error::InternalServerError,
|
844 - | ) -> crate::error::QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
783 + | ) -> crate::error::QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
845 784 | Self::InternalServerError(variant)
|
846 785 | }
|
847 786 | }
|
848 787 |
|
849 788 | impl ::std::convert::From<::pyo3::PyErr>
|
850 - | for crate::error::QueryParamsTargetingMapOfLengthPatternStringOperationError
|
789 + | for crate::error::QueryParamsTargetingMapOfSetOfLengthStringOperationError
|
851 790 | {
|
852 791 | fn from(
|
853 792 | variant: ::pyo3::PyErr,
|
854 - | ) -> crate::error::QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
855 - | ::pyo3::Python::with_gil(|py| {
|
856 - | let error = variant.value(py);
|
857 - | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
858 - | return error.into();
|
859 - | }
|
860 - | crate::error::InternalServerError {
|
861 - | message: error.to_string(),
|
862 - | }
|
863 - | .into()
|
864 - | })
|
865 - | }
|
866 - | }
|
867 - |
|
868 - | /// Error type for the `QueryParamsTargetingMapOfListOfPatternStringOperation` operation.
|
869 - | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfListOfPatternStringOperation` operation.
|
870 - | #[derive(::std::fmt::Debug)]
|
871 - | pub enum QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
872 - | /// 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 - | ValidationException(crate::error::ValidationException),
|
874 - | #[allow(missing_docs)] // documentation missing in model
|
875 - | InternalServerError(crate::error::InternalServerError),
|
876 - | }
|
877 - | impl ::std::fmt::Display for QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
878 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
879 - | match &self {
|
880 - | QueryParamsTargetingMapOfListOfPatternStringOperationError::ValidationException(
|
881 - | _inner,
|
882 - | ) => _inner.fmt(f),
|
883 - | QueryParamsTargetingMapOfListOfPatternStringOperationError::InternalServerError(
|
884 - | _inner,
|
885 - | ) => _inner.fmt(f),
|
886 - | }
|
887 - | }
|
888 - | }
|
889 - | impl QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
890 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfPatternStringOperationError::ValidationException`.
|
891 - | pub fn is_validation_exception(&self) -> bool {
|
892 - | matches!(
|
893 - | &self,
|
894 - | QueryParamsTargetingMapOfListOfPatternStringOperationError::ValidationException(_)
|
895 - | )
|
896 - | }
|
897 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfPatternStringOperationError::InternalServerError`.
|
898 - | pub fn is_internal_server_error(&self) -> bool {
|
899 - | matches!(
|
900 - | &self,
|
901 - | QueryParamsTargetingMapOfListOfPatternStringOperationError::InternalServerError(_)
|
902 - | )
|
903 - | }
|
904 - | /// Returns the error name string by matching the correct variant.
|
905 - | pub fn name(&self) -> &'static str {
|
906 - | match &self {
|
907 - | QueryParamsTargetingMapOfListOfPatternStringOperationError::ValidationException(
|
908 - | _inner,
|
909 - | ) => _inner.name(),
|
910 - | QueryParamsTargetingMapOfListOfPatternStringOperationError::InternalServerError(
|
911 - | _inner,
|
912 - | ) => _inner.name(),
|
913 - | }
|
914 - | }
|
915 - | }
|
916 - | impl ::std::error::Error for QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
917 - | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
918 - | match &self {
|
919 - | QueryParamsTargetingMapOfListOfPatternStringOperationError::ValidationException(
|
920 - | _inner,
|
921 - | ) => Some(_inner),
|
922 - | QueryParamsTargetingMapOfListOfPatternStringOperationError::InternalServerError(
|
923 - | _inner,
|
924 - | ) => Some(_inner),
|
925 - | }
|
926 - | }
|
927 - | }
|
928 - | impl ::std::convert::From<crate::error::ValidationException>
|
929 - | for crate::error::QueryParamsTargetingMapOfListOfPatternStringOperationError
|
930 - | {
|
931 - | fn from(
|
932 - | variant: crate::error::ValidationException,
|
933 - | ) -> crate::error::QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
934 - | Self::ValidationException(variant)
|
935 - | }
|
936 - | }
|
937 - | impl ::std::convert::From<crate::error::InternalServerError>
|
938 - | for crate::error::QueryParamsTargetingMapOfListOfPatternStringOperationError
|
939 - | {
|
940 - | fn from(
|
941 - | variant: crate::error::InternalServerError,
|
942 - | ) -> crate::error::QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
943 - | Self::InternalServerError(variant)
|
944 - | }
|
945 - | }
|
946 - |
|
947 - | impl ::std::convert::From<::pyo3::PyErr>
|
948 - | for crate::error::QueryParamsTargetingMapOfListOfPatternStringOperationError
|
949 - | {
|
950 - | fn from(
|
951 - | variant: ::pyo3::PyErr,
|
952 - | ) -> crate::error::QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
793 + | ) -> crate::error::QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
953 794 | ::pyo3::Python::with_gil(|py| {
|
954 795 | let error = variant.value(py);
|
955 796 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
956 797 | return error.into();
|
957 798 | }
|
958 799 | crate::error::InternalServerError {
|
959 800 | message: error.to_string(),
|
960 801 | }
|
961 802 | .into()
|
962 803 | })
|
963 804 | }
|
964 805 | }
|
965 806 |
|
966 - | /// Error type for the `QueryParamsTargetingMapOfPatternStringOperation` operation.
|
967 - | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfPatternStringOperation` operation.
|
807 + | /// Error type for the `QueryParamsTargetingMapOfLengthListOfPatternStringOperation` operation.
|
808 + | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfLengthListOfPatternStringOperation` operation.
|
968 809 | #[derive(::std::fmt::Debug)]
|
969 - | pub enum QueryParamsTargetingMapOfPatternStringOperationError {
|
810 + | pub enum QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
970 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.
|
971 812 | ValidationException(crate::error::ValidationException),
|
972 813 | #[allow(missing_docs)] // documentation missing in model
|
973 814 | InternalServerError(crate::error::InternalServerError),
|
974 815 | }
|
975 - | impl ::std::fmt::Display for QueryParamsTargetingMapOfPatternStringOperationError {
|
816 + | impl ::std::fmt::Display for QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
976 817 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
977 818 | match &self {
|
978 - | QueryParamsTargetingMapOfPatternStringOperationError::ValidationException(_inner) => {
|
819 + | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException(_inner) =>
|
979 820 | _inner.fmt(f)
|
980 - | }
|
981 - | QueryParamsTargetingMapOfPatternStringOperationError::InternalServerError(_inner) => {
|
821 + | ,
|
822 + | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::InternalServerError(_inner) =>
|
982 823 | _inner.fmt(f)
|
983 - | }
|
824 + | ,
|
984 825 | }
|
985 826 | }
|
986 827 | }
|
987 - | impl QueryParamsTargetingMapOfPatternStringOperationError {
|
988 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfPatternStringOperationError::ValidationException`.
|
828 + | impl QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
829 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException`.
|
989 830 | pub fn is_validation_exception(&self) -> bool {
|
990 831 | matches!(
|
991 832 | &self,
|
992 - | QueryParamsTargetingMapOfPatternStringOperationError::ValidationException(_)
|
833 + | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException(
|
834 + | _
|
835 + | )
|
993 836 | )
|
994 837 | }
|
995 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfPatternStringOperationError::InternalServerError`.
|
838 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::InternalServerError`.
|
996 839 | pub fn is_internal_server_error(&self) -> bool {
|
997 840 | matches!(
|
998 841 | &self,
|
999 - | QueryParamsTargetingMapOfPatternStringOperationError::InternalServerError(_)
|
842 + | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::InternalServerError(
|
843 + | _
|
844 + | )
|
1000 845 | )
|
1001 846 | }
|
1002 847 | /// Returns the error name string by matching the correct variant.
|
1003 848 | pub fn name(&self) -> &'static str {
|
1004 849 | match &self {
|
1005 - | QueryParamsTargetingMapOfPatternStringOperationError::ValidationException(_inner) => {
|
850 + | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException(_inner) =>
|
1006 851 | _inner.name()
|
1007 - | }
|
1008 - | QueryParamsTargetingMapOfPatternStringOperationError::InternalServerError(_inner) => {
|
852 + | ,
|
853 + | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::InternalServerError(_inner) =>
|
1009 854 | _inner.name()
|
1010 - | }
|
855 + | ,
|
1011 856 | }
|
1012 857 | }
|
1013 858 | }
|
1014 - | impl ::std::error::Error for QueryParamsTargetingMapOfPatternStringOperationError {
|
859 + | impl ::std::error::Error for QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
1015 860 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1016 861 | match &self {
|
1017 - | QueryParamsTargetingMapOfPatternStringOperationError::ValidationException(_inner) => {
|
862 + | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException(_inner) =>
|
1018 863 | Some(_inner)
|
1019 - | }
|
1020 - | QueryParamsTargetingMapOfPatternStringOperationError::InternalServerError(_inner) => {
|
864 + | ,
|
865 + | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::InternalServerError(_inner) =>
|
1021 866 | Some(_inner)
|
1022 - | }
|
867 + | ,
|
1023 868 | }
|
1024 869 | }
|
1025 870 | }
|
1026 871 | impl ::std::convert::From<crate::error::ValidationException>
|
1027 - | for crate::error::QueryParamsTargetingMapOfPatternStringOperationError
|
872 + | for crate::error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError
|
1028 873 | {
|
1029 874 | fn from(
|
1030 875 | variant: crate::error::ValidationException,
|
1031 - | ) -> crate::error::QueryParamsTargetingMapOfPatternStringOperationError {
|
876 + | ) -> crate::error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
1032 877 | Self::ValidationException(variant)
|
1033 878 | }
|
1034 879 | }
|
1035 880 | impl ::std::convert::From<crate::error::InternalServerError>
|
1036 - | for crate::error::QueryParamsTargetingMapOfPatternStringOperationError
|
881 + | for crate::error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError
|
1037 882 | {
|
1038 883 | fn from(
|
1039 884 | variant: crate::error::InternalServerError,
|
1040 - | ) -> crate::error::QueryParamsTargetingMapOfPatternStringOperationError {
|
885 + | ) -> crate::error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
1041 886 | Self::InternalServerError(variant)
|
1042 887 | }
|
1043 888 | }
|
1044 889 |
|
1045 890 | impl ::std::convert::From<::pyo3::PyErr>
|
1046 - | for crate::error::QueryParamsTargetingMapOfPatternStringOperationError
|
891 + | for crate::error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError
|
1047 892 | {
|
1048 893 | fn from(
|
1049 894 | variant: ::pyo3::PyErr,
|
1050 - | ) -> crate::error::QueryParamsTargetingMapOfPatternStringOperationError {
|
895 + | ) -> crate::error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
1051 896 | ::pyo3::Python::with_gil(|py| {
|
1052 897 | let error = variant.value(py);
|
1053 898 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
1054 899 | return error.into();
|
1055 900 | }
|
1056 901 | crate::error::InternalServerError {
|
1057 902 | message: error.to_string(),
|
1058 903 | }
|
1059 904 | .into()
|
1060 905 | })
|
1152 997 | return error.into();
|
1153 998 | }
|
1154 999 | crate::error::InternalServerError {
|
1155 1000 | message: error.to_string(),
|
1156 1001 | }
|
1157 1002 | .into()
|
1158 1003 | })
|
1159 1004 | }
|
1160 1005 | }
|
1161 1006 |
|
1162 - | /// Error type for the `QueryParamsTargetingMapOfLengthListOfPatternStringOperation` operation.
|
1163 - | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfLengthListOfPatternStringOperation` operation.
|
1007 + | /// Error type for the `QueryParamsTargetingMapOfPatternStringOperation` operation.
|
1008 + | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfPatternStringOperation` operation.
|
1164 1009 | #[derive(::std::fmt::Debug)]
|
1165 - | pub enum QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
1010 + | pub enum QueryParamsTargetingMapOfPatternStringOperationError {
|
1166 1011 | /// 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 1012 | ValidationException(crate::error::ValidationException),
|
1168 1013 | #[allow(missing_docs)] // documentation missing in model
|
1169 1014 | InternalServerError(crate::error::InternalServerError),
|
1170 1015 | }
|
1171 - | impl ::std::fmt::Display for QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
1016 + | impl ::std::fmt::Display for QueryParamsTargetingMapOfPatternStringOperationError {
|
1172 1017 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1173 1018 | match &self {
|
1174 - | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException(_inner) =>
|
1019 + | QueryParamsTargetingMapOfPatternStringOperationError::ValidationException(_inner) => {
|
1175 1020 | _inner.fmt(f)
|
1176 - | ,
|
1177 - | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::InternalServerError(_inner) =>
|
1021 + | }
|
1022 + | QueryParamsTargetingMapOfPatternStringOperationError::InternalServerError(_inner) => {
|
1178 1023 | _inner.fmt(f)
|
1179 - | ,
|
1024 + | }
|
1180 1025 | }
|
1181 1026 | }
|
1182 1027 | }
|
1183 - | impl QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
1184 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException`.
|
1028 + | impl QueryParamsTargetingMapOfPatternStringOperationError {
|
1029 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfPatternStringOperationError::ValidationException`.
|
1185 1030 | pub fn is_validation_exception(&self) -> bool {
|
1186 1031 | matches!(
|
1187 1032 | &self,
|
1188 - | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException(
|
1189 - | _
|
1190 - | )
|
1033 + | QueryParamsTargetingMapOfPatternStringOperationError::ValidationException(_)
|
1191 1034 | )
|
1192 1035 | }
|
1193 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::InternalServerError`.
|
1036 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfPatternStringOperationError::InternalServerError`.
|
1194 1037 | pub fn is_internal_server_error(&self) -> bool {
|
1195 1038 | matches!(
|
1196 1039 | &self,
|
1197 - | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::InternalServerError(
|
1198 - | _
|
1199 - | )
|
1040 + | QueryParamsTargetingMapOfPatternStringOperationError::InternalServerError(_)
|
1200 1041 | )
|
1201 1042 | }
|
1202 1043 | /// Returns the error name string by matching the correct variant.
|
1203 1044 | pub fn name(&self) -> &'static str {
|
1204 1045 | match &self {
|
1205 - | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException(_inner) =>
|
1046 + | QueryParamsTargetingMapOfPatternStringOperationError::ValidationException(_inner) => {
|
1206 1047 | _inner.name()
|
1207 - | ,
|
1208 - | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::InternalServerError(_inner) =>
|
1048 + | }
|
1049 + | QueryParamsTargetingMapOfPatternStringOperationError::InternalServerError(_inner) => {
|
1209 1050 | _inner.name()
|
1210 - | ,
|
1051 + | }
|
1211 1052 | }
|
1212 1053 | }
|
1213 1054 | }
|
1214 - | impl ::std::error::Error for QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
1055 + | impl ::std::error::Error for QueryParamsTargetingMapOfPatternStringOperationError {
|
1215 1056 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1216 1057 | match &self {
|
1217 - | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::ValidationException(_inner) =>
|
1058 + | QueryParamsTargetingMapOfPatternStringOperationError::ValidationException(_inner) => {
|
1218 1059 | Some(_inner)
|
1219 - | ,
|
1220 - | QueryParamsTargetingMapOfLengthListOfPatternStringOperationError::InternalServerError(_inner) =>
|
1060 + | }
|
1061 + | QueryParamsTargetingMapOfPatternStringOperationError::InternalServerError(_inner) => {
|
1221 1062 | Some(_inner)
|
1222 - | ,
|
1063 + | }
|
1223 1064 | }
|
1224 1065 | }
|
1225 1066 | }
|
1226 1067 | impl ::std::convert::From<crate::error::ValidationException>
|
1227 - | for crate::error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError
|
1068 + | for crate::error::QueryParamsTargetingMapOfPatternStringOperationError
|
1228 1069 | {
|
1229 1070 | fn from(
|
1230 1071 | variant: crate::error::ValidationException,
|
1231 - | ) -> crate::error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
1072 + | ) -> crate::error::QueryParamsTargetingMapOfPatternStringOperationError {
|
1232 1073 | Self::ValidationException(variant)
|
1233 1074 | }
|
1234 1075 | }
|
1235 1076 | impl ::std::convert::From<crate::error::InternalServerError>
|
1236 - | for crate::error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError
|
1077 + | for crate::error::QueryParamsTargetingMapOfPatternStringOperationError
|
1237 1078 | {
|
1238 1079 | fn from(
|
1239 1080 | variant: crate::error::InternalServerError,
|
1240 - | ) -> crate::error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
1081 + | ) -> crate::error::QueryParamsTargetingMapOfPatternStringOperationError {
|
1241 1082 | Self::InternalServerError(variant)
|
1242 1083 | }
|
1243 1084 | }
|
1244 1085 |
|
1245 1086 | impl ::std::convert::From<::pyo3::PyErr>
|
1246 - | for crate::error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError
|
1087 + | for crate::error::QueryParamsTargetingMapOfPatternStringOperationError
|
1247 1088 | {
|
1248 1089 | fn from(
|
1249 1090 | variant: ::pyo3::PyErr,
|
1250 - | ) -> crate::error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError {
|
1091 + | ) -> crate::error::QueryParamsTargetingMapOfPatternStringOperationError {
|
1251 1092 | ::pyo3::Python::with_gil(|py| {
|
1252 1093 | let error = variant.value(py);
|
1253 1094 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
1254 1095 | return error.into();
|
1255 1096 | }
|
1256 1097 | crate::error::InternalServerError {
|
1257 1098 | message: error.to_string(),
|
1258 1099 | }
|
1259 1100 | .into()
|
1260 1101 | })
|
1261 1102 | }
|
1262 1103 | }
|
1263 1104 |
|
1264 - | /// Error type for the `QueryParamsTargetingMapOfSetOfLengthStringOperation` operation.
|
1265 - | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfSetOfLengthStringOperation` operation.
|
1105 + | /// Error type for the `QueryParamsTargetingMapOfListOfPatternStringOperation` operation.
|
1106 + | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfListOfPatternStringOperation` operation.
|
1266 1107 | #[derive(::std::fmt::Debug)]
|
1267 - | pub enum QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
1108 + | pub enum QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
1268 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.
|
1269 1110 | ValidationException(crate::error::ValidationException),
|
1270 1111 | #[allow(missing_docs)] // documentation missing in model
|
1271 1112 | InternalServerError(crate::error::InternalServerError),
|
1272 1113 | }
|
1273 - | impl ::std::fmt::Display for QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
1114 + | impl ::std::fmt::Display for QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
1274 1115 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1275 1116 | match &self {
|
1276 - | QueryParamsTargetingMapOfSetOfLengthStringOperationError::ValidationException(
|
1117 + | QueryParamsTargetingMapOfListOfPatternStringOperationError::ValidationException(
|
1277 1118 | _inner,
|
1278 1119 | ) => _inner.fmt(f),
|
1279 - | QueryParamsTargetingMapOfSetOfLengthStringOperationError::InternalServerError(
|
1120 + | QueryParamsTargetingMapOfListOfPatternStringOperationError::InternalServerError(
|
1280 1121 | _inner,
|
1281 1122 | ) => _inner.fmt(f),
|
1282 1123 | }
|
1283 1124 | }
|
1284 1125 | }
|
1285 - | impl QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
1286 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfSetOfLengthStringOperationError::ValidationException`.
|
1126 + | impl QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
1127 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfPatternStringOperationError::ValidationException`.
|
1287 1128 | pub fn is_validation_exception(&self) -> bool {
|
1288 1129 | matches!(
|
1289 1130 | &self,
|
1290 - | QueryParamsTargetingMapOfSetOfLengthStringOperationError::ValidationException(_)
|
1131 + | QueryParamsTargetingMapOfListOfPatternStringOperationError::ValidationException(_)
|
1291 1132 | )
|
1292 1133 | }
|
1293 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfSetOfLengthStringOperationError::InternalServerError`.
|
1134 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfPatternStringOperationError::InternalServerError`.
|
1294 1135 | pub fn is_internal_server_error(&self) -> bool {
|
1295 1136 | matches!(
|
1296 1137 | &self,
|
1297 - | QueryParamsTargetingMapOfSetOfLengthStringOperationError::InternalServerError(_)
|
1138 + | QueryParamsTargetingMapOfListOfPatternStringOperationError::InternalServerError(_)
|
1298 1139 | )
|
1299 1140 | }
|
1300 1141 | /// Returns the error name string by matching the correct variant.
|
1301 1142 | pub fn name(&self) -> &'static str {
|
1302 1143 | match &self {
|
1303 - | QueryParamsTargetingMapOfSetOfLengthStringOperationError::ValidationException(
|
1144 + | QueryParamsTargetingMapOfListOfPatternStringOperationError::ValidationException(
|
1304 1145 | _inner,
|
1305 1146 | ) => _inner.name(),
|
1306 - | QueryParamsTargetingMapOfSetOfLengthStringOperationError::InternalServerError(
|
1147 + | QueryParamsTargetingMapOfListOfPatternStringOperationError::InternalServerError(
|
1307 1148 | _inner,
|
1308 1149 | ) => _inner.name(),
|
1309 1150 | }
|
1310 1151 | }
|
1311 1152 | }
|
1312 - | impl ::std::error::Error for QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
1153 + | impl ::std::error::Error for QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
1313 1154 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1314 1155 | match &self {
|
1315 - | QueryParamsTargetingMapOfSetOfLengthStringOperationError::ValidationException(
|
1156 + | QueryParamsTargetingMapOfListOfPatternStringOperationError::ValidationException(
|
1316 1157 | _inner,
|
1317 1158 | ) => Some(_inner),
|
1318 - | QueryParamsTargetingMapOfSetOfLengthStringOperationError::InternalServerError(
|
1159 + | QueryParamsTargetingMapOfListOfPatternStringOperationError::InternalServerError(
|
1319 1160 | _inner,
|
1320 1161 | ) => Some(_inner),
|
1321 1162 | }
|
1322 1163 | }
|
1323 1164 | }
|
1324 1165 | impl ::std::convert::From<crate::error::ValidationException>
|
1325 - | for crate::error::QueryParamsTargetingMapOfSetOfLengthStringOperationError
|
1166 + | for crate::error::QueryParamsTargetingMapOfListOfPatternStringOperationError
|
1326 1167 | {
|
1327 1168 | fn from(
|
1328 1169 | variant: crate::error::ValidationException,
|
1329 - | ) -> crate::error::QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
1170 + | ) -> crate::error::QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
1330 1171 | Self::ValidationException(variant)
|
1331 1172 | }
|
1332 1173 | }
|
1333 1174 | impl ::std::convert::From<crate::error::InternalServerError>
|
1334 - | for crate::error::QueryParamsTargetingMapOfSetOfLengthStringOperationError
|
1175 + | for crate::error::QueryParamsTargetingMapOfListOfPatternStringOperationError
|
1335 1176 | {
|
1336 1177 | fn from(
|
1337 1178 | variant: crate::error::InternalServerError,
|
1338 - | ) -> crate::error::QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
1179 + | ) -> crate::error::QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
1339 1180 | Self::InternalServerError(variant)
|
1340 1181 | }
|
1341 1182 | }
|
1342 1183 |
|
1343 1184 | impl ::std::convert::From<::pyo3::PyErr>
|
1344 - | for crate::error::QueryParamsTargetingMapOfSetOfLengthStringOperationError
|
1185 + | for crate::error::QueryParamsTargetingMapOfListOfPatternStringOperationError
|
1345 1186 | {
|
1346 1187 | fn from(
|
1347 1188 | variant: ::pyo3::PyErr,
|
1348 - | ) -> crate::error::QueryParamsTargetingMapOfSetOfLengthStringOperationError {
|
1189 + | ) -> crate::error::QueryParamsTargetingMapOfListOfPatternStringOperationError {
|
1349 1190 | ::pyo3::Python::with_gil(|py| {
|
1350 1191 | let error = variant.value(py);
|
1351 1192 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
1352 1193 | return error.into();
|
1353 1194 | }
|
1354 1195 | crate::error::InternalServerError {
|
1355 1196 | message: error.to_string(),
|
1356 1197 | }
|
1357 1198 | .into()
|
1358 1199 | })
|
1359 1200 | }
|
1360 1201 | }
|
1361 1202 |
|
1362 - | /// Error type for the `QueryParamsTargetingMapOfListOfLengthStringOperation` operation.
|
1363 - | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfListOfLengthStringOperation` operation.
|
1203 + | /// Error type for the `QueryParamsTargetingMapOfLengthPatternStringOperation` operation.
|
1204 + | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfLengthPatternStringOperation` operation.
|
1364 1205 | #[derive(::std::fmt::Debug)]
|
1365 - | pub enum QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
1206 + | pub enum QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
1366 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.
|
1367 1208 | ValidationException(crate::error::ValidationException),
|
1368 1209 | #[allow(missing_docs)] // documentation missing in model
|
1369 1210 | InternalServerError(crate::error::InternalServerError),
|
1370 1211 | }
|
1371 - | impl ::std::fmt::Display for QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
1212 + | impl ::std::fmt::Display for QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
1372 1213 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1373 1214 | match &self {
|
1374 - | QueryParamsTargetingMapOfListOfLengthStringOperationError::ValidationException(
|
1215 + | QueryParamsTargetingMapOfLengthPatternStringOperationError::ValidationException(
|
1375 1216 | _inner,
|
1376 1217 | ) => _inner.fmt(f),
|
1377 - | QueryParamsTargetingMapOfListOfLengthStringOperationError::InternalServerError(
|
1218 + | QueryParamsTargetingMapOfLengthPatternStringOperationError::InternalServerError(
|
1378 1219 | _inner,
|
1379 1220 | ) => _inner.fmt(f),
|
1380 1221 | }
|
1381 1222 | }
|
1382 1223 | }
|
1383 - | impl QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
1384 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfLengthStringOperationError::ValidationException`.
|
1224 + | impl QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
1225 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfLengthPatternStringOperationError::ValidationException`.
|
1385 1226 | pub fn is_validation_exception(&self) -> bool {
|
1386 1227 | matches!(
|
1387 1228 | &self,
|
1388 - | QueryParamsTargetingMapOfListOfLengthStringOperationError::ValidationException(_)
|
1229 + | QueryParamsTargetingMapOfLengthPatternStringOperationError::ValidationException(_)
|
1389 1230 | )
|
1390 1231 | }
|
1391 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfLengthStringOperationError::InternalServerError`.
|
1232 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfLengthPatternStringOperationError::InternalServerError`.
|
1392 1233 | pub fn is_internal_server_error(&self) -> bool {
|
1393 1234 | matches!(
|
1394 1235 | &self,
|
1395 - | QueryParamsTargetingMapOfListOfLengthStringOperationError::InternalServerError(_)
|
1236 + | QueryParamsTargetingMapOfLengthPatternStringOperationError::InternalServerError(_)
|
1396 1237 | )
|
1397 1238 | }
|
1398 1239 | /// Returns the error name string by matching the correct variant.
|
1399 1240 | pub fn name(&self) -> &'static str {
|
1400 1241 | match &self {
|
1401 - | QueryParamsTargetingMapOfListOfLengthStringOperationError::ValidationException(
|
1242 + | QueryParamsTargetingMapOfLengthPatternStringOperationError::ValidationException(
|
1402 1243 | _inner,
|
1403 1244 | ) => _inner.name(),
|
1404 - | QueryParamsTargetingMapOfListOfLengthStringOperationError::InternalServerError(
|
1245 + | QueryParamsTargetingMapOfLengthPatternStringOperationError::InternalServerError(
|
1405 1246 | _inner,
|
1406 1247 | ) => _inner.name(),
|
1407 1248 | }
|
1408 1249 | }
|
1409 1250 | }
|
1410 - | impl ::std::error::Error for QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
1251 + | impl ::std::error::Error for QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
1411 1252 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1412 1253 | match &self {
|
1413 - | QueryParamsTargetingMapOfListOfLengthStringOperationError::ValidationException(
|
1254 + | QueryParamsTargetingMapOfLengthPatternStringOperationError::ValidationException(
|
1414 1255 | _inner,
|
1415 1256 | ) => Some(_inner),
|
1416 - | QueryParamsTargetingMapOfListOfLengthStringOperationError::InternalServerError(
|
1257 + | QueryParamsTargetingMapOfLengthPatternStringOperationError::InternalServerError(
|
1417 1258 | _inner,
|
1418 1259 | ) => Some(_inner),
|
1419 1260 | }
|
1420 1261 | }
|
1421 1262 | }
|
1422 1263 | impl ::std::convert::From<crate::error::ValidationException>
|
1423 - | for crate::error::QueryParamsTargetingMapOfListOfLengthStringOperationError
|
1264 + | for crate::error::QueryParamsTargetingMapOfLengthPatternStringOperationError
|
1424 1265 | {
|
1425 1266 | fn from(
|
1426 1267 | variant: crate::error::ValidationException,
|
1427 - | ) -> crate::error::QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
1268 + | ) -> crate::error::QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
1428 1269 | Self::ValidationException(variant)
|
1429 1270 | }
|
1430 1271 | }
|
1431 1272 | impl ::std::convert::From<crate::error::InternalServerError>
|
1432 - | for crate::error::QueryParamsTargetingMapOfListOfLengthStringOperationError
|
1273 + | for crate::error::QueryParamsTargetingMapOfLengthPatternStringOperationError
|
1433 1274 | {
|
1434 1275 | fn from(
|
1435 1276 | variant: crate::error::InternalServerError,
|
1436 - | ) -> crate::error::QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
1277 + | ) -> crate::error::QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
1437 1278 | Self::InternalServerError(variant)
|
1438 1279 | }
|
1439 1280 | }
|
1440 1281 |
|
1441 1282 | impl ::std::convert::From<::pyo3::PyErr>
|
1442 - | for crate::error::QueryParamsTargetingMapOfListOfLengthStringOperationError
|
1283 + | for crate::error::QueryParamsTargetingMapOfLengthPatternStringOperationError
|
1443 1284 | {
|
1444 1285 | fn from(
|
1445 1286 | variant: ::pyo3::PyErr,
|
1446 - | ) -> crate::error::QueryParamsTargetingMapOfListOfLengthStringOperationError {
|
1287 + | ) -> crate::error::QueryParamsTargetingMapOfLengthPatternStringOperationError {
|
1447 1288 | ::pyo3::Python::with_gil(|py| {
|
1448 1289 | let error = variant.value(py);
|
1449 1290 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
1450 1291 | return error.into();
|
1451 1292 | }
|
1452 1293 | crate::error::InternalServerError {
|
1453 1294 | message: error.to_string(),
|
1454 1295 | }
|
1455 1296 | .into()
|
1456 1297 | })
|
1457 1298 | }
|
1458 1299 | }
|
1459 1300 |
|
1460 - | /// Error type for the `QueryParamsTargetingMapOfLengthStringOperation` operation.
|
1461 - | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfLengthStringOperation` operation.
|
1301 + | /// Error type for the `QueryParamsTargetingMapOfListOfLengthPatternStringOperation` operation.
|
1302 + | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfListOfLengthPatternStringOperation` operation.
|
1462 1303 | #[derive(::std::fmt::Debug)]
|
1463 - | pub enum QueryParamsTargetingMapOfLengthStringOperationError {
|
1304 + | pub enum QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
1464 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.
|
1465 1306 | ValidationException(crate::error::ValidationException),
|
1466 1307 | #[allow(missing_docs)] // documentation missing in model
|
1467 1308 | InternalServerError(crate::error::InternalServerError),
|
1468 1309 | }
|
1469 - | impl ::std::fmt::Display for QueryParamsTargetingMapOfLengthStringOperationError {
|
1310 + | impl ::std::fmt::Display for QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
1470 1311 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1471 1312 | match &self {
|
1472 - | QueryParamsTargetingMapOfLengthStringOperationError::ValidationException(_inner) => {
|
1313 + | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException(_inner) =>
|
1473 1314 | _inner.fmt(f)
|
1474 - | }
|
1475 - | QueryParamsTargetingMapOfLengthStringOperationError::InternalServerError(_inner) => {
|
1315 + | ,
|
1316 + | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::InternalServerError(_inner) =>
|
1476 1317 | _inner.fmt(f)
|
1477 - | }
|
1318 + | ,
|
1478 1319 | }
|
1479 1320 | }
|
1480 1321 | }
|
1481 - | impl QueryParamsTargetingMapOfLengthStringOperationError {
|
1482 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfLengthStringOperationError::ValidationException`.
|
1322 + | impl QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
1323 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException`.
|
1483 1324 | pub fn is_validation_exception(&self) -> bool {
|
1484 1325 | matches!(
|
1485 1326 | &self,
|
1486 - | QueryParamsTargetingMapOfLengthStringOperationError::ValidationException(_)
|
1327 + | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException(
|
1328 + | _
|
1329 + | )
|
1487 1330 | )
|
1488 1331 | }
|
1489 - | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfLengthStringOperationError::InternalServerError`.
|
1332 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::InternalServerError`.
|
1490 1333 | pub fn is_internal_server_error(&self) -> bool {
|
1491 1334 | matches!(
|
1492 1335 | &self,
|
1493 - | QueryParamsTargetingMapOfLengthStringOperationError::InternalServerError(_)
|
1336 + | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::InternalServerError(
|
1337 + | _
|
1338 + | )
|
1494 1339 | )
|
1495 1340 | }
|
1496 1341 | /// Returns the error name string by matching the correct variant.
|
1497 1342 | pub fn name(&self) -> &'static str {
|
1498 1343 | match &self {
|
1499 - | QueryParamsTargetingMapOfLengthStringOperationError::ValidationException(_inner) => {
|
1344 + | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException(_inner) =>
|
1500 1345 | _inner.name()
|
1501 - | }
|
1502 - | QueryParamsTargetingMapOfLengthStringOperationError::InternalServerError(_inner) => {
|
1346 + | ,
|
1347 + | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::InternalServerError(_inner) =>
|
1503 1348 | _inner.name()
|
1504 - | }
|
1349 + | ,
|
1505 1350 | }
|
1506 1351 | }
|
1507 1352 | }
|
1508 - | impl ::std::error::Error for QueryParamsTargetingMapOfLengthStringOperationError {
|
1353 + | impl ::std::error::Error for QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
1509 1354 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1510 1355 | match &self {
|
1511 - | QueryParamsTargetingMapOfLengthStringOperationError::ValidationException(_inner) => {
|
1356 + | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::ValidationException(_inner) =>
|
1512 1357 | Some(_inner)
|
1513 - | }
|
1514 - | QueryParamsTargetingMapOfLengthStringOperationError::InternalServerError(_inner) => {
|
1358 + | ,
|
1359 + | QueryParamsTargetingMapOfListOfLengthPatternStringOperationError::InternalServerError(_inner) =>
|
1515 1360 | Some(_inner)
|
1516 - | }
|
1361 + | ,
|
1517 1362 | }
|
1518 1363 | }
|
1519 1364 | }
|
1520 1365 | impl ::std::convert::From<crate::error::ValidationException>
|
1521 - | for crate::error::QueryParamsTargetingMapOfLengthStringOperationError
|
1366 + | for crate::error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError
|
1522 1367 | {
|
1523 1368 | fn from(
|
1524 1369 | variant: crate::error::ValidationException,
|
1525 - | ) -> crate::error::QueryParamsTargetingMapOfLengthStringOperationError {
|
1370 + | ) -> crate::error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
1526 1371 | Self::ValidationException(variant)
|
1527 1372 | }
|
1528 1373 | }
|
1529 1374 | impl ::std::convert::From<crate::error::InternalServerError>
|
1530 - | for crate::error::QueryParamsTargetingMapOfLengthStringOperationError
|
1375 + | for crate::error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError
|
1531 1376 | {
|
1532 1377 | fn from(
|
1533 1378 | variant: crate::error::InternalServerError,
|
1534 - | ) -> crate::error::QueryParamsTargetingMapOfLengthStringOperationError {
|
1379 + | ) -> crate::error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
1535 1380 | Self::InternalServerError(variant)
|
1536 1381 | }
|
1537 1382 | }
|
1538 1383 |
|
1539 1384 | impl ::std::convert::From<::pyo3::PyErr>
|
1540 - | for crate::error::QueryParamsTargetingMapOfLengthStringOperationError
|
1385 + | for crate::error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError
|
1541 1386 | {
|
1542 1387 | fn from(
|
1543 1388 | variant: ::pyo3::PyErr,
|
1544 - | ) -> crate::error::QueryParamsTargetingMapOfLengthStringOperationError {
|
1389 + | ) -> crate::error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError {
|
1545 1390 | ::pyo3::Python::with_gil(|py| {
|
1546 1391 | let error = variant.value(py);
|
1547 1392 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
1548 1393 | return error.into();
|
1549 1394 | }
|
1550 1395 | crate::error::InternalServerError {
|
1551 1396 | message: error.to_string(),
|
1552 1397 | }
|
1553 1398 | .into()
|
1554 1399 | })
|
1555 1400 | }
|
1556 1401 | }
|
1557 1402 |
|
1558 - | /// Error type for the `QueryParamsTargetingLengthMapOperation` operation.
|
1559 - | /// Each variant represents an error that can occur for the `QueryParamsTargetingLengthMapOperation` operation.
|
1403 + | /// Error type for the `HttpPrefixHeadersTargetingLengthMapOperation` operation.
|
1404 + | /// Each variant represents an error that can occur for the `HttpPrefixHeadersTargetingLengthMapOperation` operation.
|
1560 1405 | #[derive(::std::fmt::Debug)]
|
1561 - | pub enum QueryParamsTargetingLengthMapOperationError {
|
1406 + | pub enum HttpPrefixHeadersTargetingLengthMapOperationError {
|
1562 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.
|
1563 1408 | ValidationException(crate::error::ValidationException),
|
1564 1409 | #[allow(missing_docs)] // documentation missing in model
|
1565 1410 | InternalServerError(crate::error::InternalServerError),
|
1566 1411 | }
|
1567 - | impl ::std::fmt::Display for QueryParamsTargetingLengthMapOperationError {
|
1412 + | impl ::std::fmt::Display for HttpPrefixHeadersTargetingLengthMapOperationError {
|
1568 1413 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1569 1414 | match &self {
|
1570 - | QueryParamsTargetingLengthMapOperationError::ValidationException(_inner) => {
|
1415 + | HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException(_inner) => {
|
1571 1416 | _inner.fmt(f)
|
1572 1417 | }
|
1573 - | QueryParamsTargetingLengthMapOperationError::InternalServerError(_inner) => {
|
1418 + | HttpPrefixHeadersTargetingLengthMapOperationError::InternalServerError(_inner) => {
|
1574 1419 | _inner.fmt(f)
|
1575 1420 | }
|
1576 1421 | }
|
1577 1422 | }
|
1578 1423 | }
|
1579 - | impl QueryParamsTargetingLengthMapOperationError {
|
1580 - | /// Returns `true` if the error kind is `QueryParamsTargetingLengthMapOperationError::ValidationException`.
|
1424 + | impl HttpPrefixHeadersTargetingLengthMapOperationError {
|
1425 + | /// Returns `true` if the error kind is `HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException`.
|
1581 1426 | pub fn is_validation_exception(&self) -> bool {
|
1582 1427 | matches!(
|
1583 1428 | &self,
|
1584 - | QueryParamsTargetingLengthMapOperationError::ValidationException(_)
|
1429 + | HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException(_)
|
1585 1430 | )
|
1586 1431 | }
|
1587 - | /// Returns `true` if the error kind is `QueryParamsTargetingLengthMapOperationError::InternalServerError`.
|
1432 + | /// Returns `true` if the error kind is `HttpPrefixHeadersTargetingLengthMapOperationError::InternalServerError`.
|
1588 1433 | pub fn is_internal_server_error(&self) -> bool {
|
1589 1434 | matches!(
|
1590 1435 | &self,
|
1591 - | QueryParamsTargetingLengthMapOperationError::InternalServerError(_)
|
1436 + | HttpPrefixHeadersTargetingLengthMapOperationError::InternalServerError(_)
|
1592 1437 | )
|
1593 1438 | }
|
1594 1439 | /// Returns the error name string by matching the correct variant.
|
1595 1440 | pub fn name(&self) -> &'static str {
|
1596 1441 | match &self {
|
1597 - | QueryParamsTargetingLengthMapOperationError::ValidationException(_inner) => {
|
1442 + | HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException(_inner) => {
|
1598 1443 | _inner.name()
|
1599 1444 | }
|
1600 - | QueryParamsTargetingLengthMapOperationError::InternalServerError(_inner) => {
|
1445 + | HttpPrefixHeadersTargetingLengthMapOperationError::InternalServerError(_inner) => {
|
1601 1446 | _inner.name()
|
1602 1447 | }
|
1603 1448 | }
|
1604 1449 | }
|
1605 1450 | }
|
1606 - | impl ::std::error::Error for QueryParamsTargetingLengthMapOperationError {
|
1451 + | impl ::std::error::Error for HttpPrefixHeadersTargetingLengthMapOperationError {
|
1607 1452 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1608 1453 | match &self {
|
1609 - | QueryParamsTargetingLengthMapOperationError::ValidationException(_inner) => {
|
1454 + | HttpPrefixHeadersTargetingLengthMapOperationError::ValidationException(_inner) => {
|
1610 1455 | Some(_inner)
|
1611 1456 | }
|
1612 - | QueryParamsTargetingLengthMapOperationError::InternalServerError(_inner) => {
|
1457 + | HttpPrefixHeadersTargetingLengthMapOperationError::InternalServerError(_inner) => {
|
1613 1458 | Some(_inner)
|
1614 1459 | }
|
1615 1460 | }
|
1616 1461 | }
|
1617 1462 | }
|
1618 1463 | impl ::std::convert::From<crate::error::ValidationException>
|
1619 - | for crate::error::QueryParamsTargetingLengthMapOperationError
|
1464 + | for crate::error::HttpPrefixHeadersTargetingLengthMapOperationError
|
1620 1465 | {
|
1621 1466 | fn from(
|
1622 1467 | variant: crate::error::ValidationException,
|
1623 - | ) -> crate::error::QueryParamsTargetingLengthMapOperationError {
|
1468 + | ) -> crate::error::HttpPrefixHeadersTargetingLengthMapOperationError {
|
1624 1469 | Self::ValidationException(variant)
|
1625 1470 | }
|
1626 1471 | }
|
1627 1472 | impl ::std::convert::From<crate::error::InternalServerError>
|
1628 - | for crate::error::QueryParamsTargetingLengthMapOperationError
|
1473 + | for crate::error::HttpPrefixHeadersTargetingLengthMapOperationError
|
1629 1474 | {
|
1630 1475 | fn from(
|
1631 1476 | variant: crate::error::InternalServerError,
|
1632 - | ) -> crate::error::QueryParamsTargetingLengthMapOperationError {
|
1477 + | ) -> crate::error::HttpPrefixHeadersTargetingLengthMapOperationError {
|
1633 1478 | Self::InternalServerError(variant)
|
1634 1479 | }
|
1635 1480 | }
|
1636 1481 |
|
1637 1482 | impl ::std::convert::From<::pyo3::PyErr>
|
1638 - | for crate::error::QueryParamsTargetingLengthMapOperationError
|
1483 + | for crate::error::HttpPrefixHeadersTargetingLengthMapOperationError
|
1639 1484 | {
|
1640 - | fn from(variant: ::pyo3::PyErr) -> crate::error::QueryParamsTargetingLengthMapOperationError {
|
1485 + | fn from(
|
1486 + | variant: ::pyo3::PyErr,
|
1487 + | ) -> crate::error::HttpPrefixHeadersTargetingLengthMapOperationError {
|
1641 1488 | ::pyo3::Python::with_gil(|py| {
|
1642 1489 | let error = variant.value(py);
|
1643 1490 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
1644 1491 | return error.into();
|
1645 1492 | }
|
1646 1493 | crate::error::InternalServerError {
|
1647 1494 | message: error.to_string(),
|
1648 1495 | }
|
1649 1496 | .into()
|
1650 1497 | })
|
1651 1498 | }
|
1652 1499 | }
|
1653 1500 |
|
1654 - | /// Error type for the `ConstrainedRecursiveShapesOperation` operation.
|
1655 - | /// Each variant represents an error that can occur for the `ConstrainedRecursiveShapesOperation` operation.
|
1501 + | /// Error type for the `QueryParamsTargetingMapOfEnumStringOperation` operation.
|
1502 + | /// Each variant represents an error that can occur for the `QueryParamsTargetingMapOfEnumStringOperation` operation.
|
1656 1503 | #[derive(::std::fmt::Debug)]
|
1657 - | pub enum ConstrainedRecursiveShapesOperationError {
|
1504 + | pub enum QueryParamsTargetingMapOfEnumStringOperationError {
|
1658 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.
|
1659 1506 | ValidationException(crate::error::ValidationException),
|
1660 1507 | #[allow(missing_docs)] // documentation missing in model
|
1661 1508 | InternalServerError(crate::error::InternalServerError),
|
1662 1509 | }
|
1663 - | impl ::std::fmt::Display for ConstrainedRecursiveShapesOperationError {
|
1510 + | impl ::std::fmt::Display for QueryParamsTargetingMapOfEnumStringOperationError {
|
1664 1511 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1665 1512 | match &self {
|
1666 - | ConstrainedRecursiveShapesOperationError::ValidationException(_inner) => _inner.fmt(f),
|
1667 - | ConstrainedRecursiveShapesOperationError::InternalServerError(_inner) => _inner.fmt(f),
|
1513 + | QueryParamsTargetingMapOfEnumStringOperationError::ValidationException(_inner) => {
|
1514 + | _inner.fmt(f)
|
1515 + | }
|
1516 + | QueryParamsTargetingMapOfEnumStringOperationError::InternalServerError(_inner) => {
|
1517 + | _inner.fmt(f)
|
1518 + | }
|
1668 1519 | }
|
1669 1520 | }
|
1670 1521 | }
|
1671 - | impl ConstrainedRecursiveShapesOperationError {
|
1672 - | /// Returns `true` if the error kind is `ConstrainedRecursiveShapesOperationError::ValidationException`.
|
1522 + | impl QueryParamsTargetingMapOfEnumStringOperationError {
|
1523 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfEnumStringOperationError::ValidationException`.
|
1673 1524 | pub fn is_validation_exception(&self) -> bool {
|
1674 1525 | matches!(
|
1675 1526 | &self,
|
1676 - | ConstrainedRecursiveShapesOperationError::ValidationException(_)
|
1527 + | QueryParamsTargetingMapOfEnumStringOperationError::ValidationException(_)
|
1677 1528 | )
|
1678 1529 | }
|
1679 - | /// Returns `true` if the error kind is `ConstrainedRecursiveShapesOperationError::InternalServerError`.
|
1530 + | /// Returns `true` if the error kind is `QueryParamsTargetingMapOfEnumStringOperationError::InternalServerError`.
|
1680 1531 | pub fn is_internal_server_error(&self) -> bool {
|
1681 1532 | matches!(
|
1682 1533 | &self,
|
1683 - | ConstrainedRecursiveShapesOperationError::InternalServerError(_)
|
1534 + | QueryParamsTargetingMapOfEnumStringOperationError::InternalServerError(_)
|
1684 1535 | )
|
1685 1536 | }
|
1686 1537 | /// Returns the error name string by matching the correct variant.
|
1687 1538 | pub fn name(&self) -> &'static str {
|
1688 1539 | match &self {
|
1689 - | ConstrainedRecursiveShapesOperationError::ValidationException(_inner) => _inner.name(),
|
1690 - | ConstrainedRecursiveShapesOperationError::InternalServerError(_inner) => _inner.name(),
|
1540 + | QueryParamsTargetingMapOfEnumStringOperationError::ValidationException(_inner) => {
|
1541 + | _inner.name()
|
1542 + | }
|
1543 + | QueryParamsTargetingMapOfEnumStringOperationError::InternalServerError(_inner) => {
|
1544 + | _inner.name()
|
1545 + | }
|
1691 1546 | }
|
1692 1547 | }
|
1693 1548 | }
|
1694 - | impl ::std::error::Error for ConstrainedRecursiveShapesOperationError {
|
1549 + | impl ::std::error::Error for QueryParamsTargetingMapOfEnumStringOperationError {
|
1695 1550 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1696 1551 | match &self {
|
1697 - | ConstrainedRecursiveShapesOperationError::ValidationException(_inner) => Some(_inner),
|
1698 - | ConstrainedRecursiveShapesOperationError::InternalServerError(_inner) => Some(_inner),
|
1552 + | QueryParamsTargetingMapOfEnumStringOperationError::ValidationException(_inner) => {
|
1553 + | Some(_inner)
|
1554 + | }
|
1555 + | QueryParamsTargetingMapOfEnumStringOperationError::InternalServerError(_inner) => {
|
1556 + | Some(_inner)
|
1557 + | }
|
1699 1558 | }
|
1700 1559 | }
|
1701 1560 | }
|
1702 1561 | impl ::std::convert::From<crate::error::ValidationException>
|
1703 - | for crate::error::ConstrainedRecursiveShapesOperationError
|
1562 + | for crate::error::QueryParamsTargetingMapOfEnumStringOperationError
|
1704 1563 | {
|
1705 1564 | fn from(
|
1706 1565 | variant: crate::error::ValidationException,
|
1707 - | ) -> crate::error::ConstrainedRecursiveShapesOperationError {
|
1566 + | ) -> crate::error::QueryParamsTargetingMapOfEnumStringOperationError {
|
1708 1567 | Self::ValidationException(variant)
|
1709 1568 | }
|
1710 1569 | }
|
1711 1570 | impl ::std::convert::From<crate::error::InternalServerError>
|
1712 - | for crate::error::ConstrainedRecursiveShapesOperationError
|
1571 + | for crate::error::QueryParamsTargetingMapOfEnumStringOperationError
|
1713 1572 | {
|
1714 1573 | fn from(
|
1715 1574 | variant: crate::error::InternalServerError,
|
1716 - | ) -> crate::error::ConstrainedRecursiveShapesOperationError {
|
1575 + | ) -> crate::error::QueryParamsTargetingMapOfEnumStringOperationError {
|
1717 1576 | Self::InternalServerError(variant)
|
1718 1577 | }
|
1719 1578 | }
|
1720 1579 |
|
1721 1580 | impl ::std::convert::From<::pyo3::PyErr>
|
1722 - | for crate::error::ConstrainedRecursiveShapesOperationError
|
1581 + | for crate::error::QueryParamsTargetingMapOfEnumStringOperationError
|
1723 1582 | {
|
1724 - | fn from(variant: ::pyo3::PyErr) -> crate::error::ConstrainedRecursiveShapesOperationError {
|
1583 + | fn from(
|
1584 + | variant: ::pyo3::PyErr,
|
1585 + | ) -> crate::error::QueryParamsTargetingMapOfEnumStringOperationError {
|
1725 1586 | ::pyo3::Python::with_gil(|py| {
|
1726 1587 | let error = variant.value(py);
|
1727 1588 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
1728 1589 | return error.into();
|
1729 1590 | }
|
1730 1591 | crate::error::InternalServerError {
|
1731 1592 | message: error.to_string(),
|
1732 1593 | }
|
1733 1594 | .into()
|
1734 1595 | })
|
1735 1596 | }
|
1736 1597 | }
|
1737 1598 |
|
1738 - | /// Error type for the `ConstrainedHttpPayloadBoundShapeOperation` operation.
|
1739 - | /// Each variant represents an error that can occur for the `ConstrainedHttpPayloadBoundShapeOperation` operation.
|
1599 + | /// Error type for the `NonStreamingBlobOperation` operation.
|
1600 + | /// Each variant represents an error that can occur for the `NonStreamingBlobOperation` operation.
|
1740 1601 | #[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),
|
1602 + | pub enum NonStreamingBlobOperationError {
|
1744 1603 | #[allow(missing_docs)] // documentation missing in model
|
1745 1604 | InternalServerError(crate::error::InternalServerError),
|
1746 1605 | }
|
1747 - | impl ::std::fmt::Display for ConstrainedHttpPayloadBoundShapeOperationError {
|
1606 + | impl ::std::fmt::Display for NonStreamingBlobOperationError {
|
1748 1607 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1749 1608 | match &self {
|
1750 - | ConstrainedHttpPayloadBoundShapeOperationError::ValidationException(_inner) => {
|
1751 - | _inner.fmt(f)
|
1752 - | }
|
1753 - | ConstrainedHttpPayloadBoundShapeOperationError::InternalServerError(_inner) => {
|
1754 - | _inner.fmt(f)
|
1755 - | }
|
1609 + | NonStreamingBlobOperationError::InternalServerError(_inner) => _inner.fmt(f),
|
1756 1610 | }
|
1757 1611 | }
|
1758 1612 | }
|
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`.
|
1613 + | impl NonStreamingBlobOperationError {
|
1614 + | /// Returns `true` if the error kind is `NonStreamingBlobOperationError::InternalServerError`.
|
1768 1615 | pub fn is_internal_server_error(&self) -> bool {
|
1769 1616 | matches!(
|
1770 1617 | &self,
|
1771 - | ConstrainedHttpPayloadBoundShapeOperationError::InternalServerError(_)
|
1618 + | NonStreamingBlobOperationError::InternalServerError(_)
|
1772 1619 | )
|
1773 1620 | }
|
1774 1621 | /// Returns the error name string by matching the correct variant.
|
1775 1622 | pub fn name(&self) -> &'static str {
|
1776 1623 | match &self {
|
1777 - | ConstrainedHttpPayloadBoundShapeOperationError::ValidationException(_inner) => {
|
1778 - | _inner.name()
|
1779 - | }
|
1780 - | ConstrainedHttpPayloadBoundShapeOperationError::InternalServerError(_inner) => {
|
1781 - | _inner.name()
|
1782 - | }
|
1624 + | NonStreamingBlobOperationError::InternalServerError(_inner) => _inner.name(),
|
1783 1625 | }
|
1784 1626 | }
|
1785 1627 | }
|
1786 - | impl ::std::error::Error for ConstrainedHttpPayloadBoundShapeOperationError {
|
1628 + | impl ::std::error::Error for NonStreamingBlobOperationError {
|
1787 1629 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1788 1630 | match &self {
|
1789 - | ConstrainedHttpPayloadBoundShapeOperationError::ValidationException(_inner) => {
|
1790 - | Some(_inner)
|
1791 - | }
|
1792 - | ConstrainedHttpPayloadBoundShapeOperationError::InternalServerError(_inner) => {
|
1793 - | Some(_inner)
|
1794 - | }
|
1631 + | NonStreamingBlobOperationError::InternalServerError(_inner) => Some(_inner),
|
1795 1632 | }
|
1796 1633 | }
|
1797 1634 | }
|
1798 - | impl ::std::convert::From<crate::error::ValidationException>
|
1799 - | for crate::error::ConstrainedHttpPayloadBoundShapeOperationError
|
1635 + | impl ::std::convert::From<crate::error::InternalServerError>
|
1636 + | for crate::error::NonStreamingBlobOperationError
|
1800 1637 | {
|
1801 1638 | fn from(
|
1802 - | variant: crate::error::ValidationException,
|
1803 - | ) -> crate::error::ConstrainedHttpPayloadBoundShapeOperationError {
|
1804 - | Self::ValidationException(variant)
|
1639 + | variant: crate::error::InternalServerError,
|
1640 + | ) -> crate::error::NonStreamingBlobOperationError {
|
1641 + | Self::InternalServerError(variant)
|
1642 + | }
|
1643 + | }
|
1644 + |
|
1645 + | impl ::std::convert::From<::pyo3::PyErr> for crate::error::NonStreamingBlobOperationError {
|
1646 + | fn from(variant: ::pyo3::PyErr) -> crate::error::NonStreamingBlobOperationError {
|
1647 + | ::pyo3::Python::with_gil(|py| {
|
1648 + | let error = variant.value(py);
|
1649 + |
|
1650 + | crate::error::InternalServerError {
|
1651 + | message: error.to_string(),
|
1652 + | }
|
1653 + | .into()
|
1654 + | })
|
1655 + | }
|
1656 + | }
|
1657 + |
|
1658 + | /// Error type for the `StreamingBlobOperation` operation.
|
1659 + | /// Each variant represents an error that can occur for the `StreamingBlobOperation` operation.
|
1660 + | #[derive(::std::fmt::Debug)]
|
1661 + | pub enum StreamingBlobOperationError {
|
1662 + | #[allow(missing_docs)] // documentation missing in model
|
1663 + | InternalServerError(crate::error::InternalServerError),
|
1664 + | }
|
1665 + | impl ::std::fmt::Display for StreamingBlobOperationError {
|
1666 + | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1667 + | match &self {
|
1668 + | StreamingBlobOperationError::InternalServerError(_inner) => _inner.fmt(f),
|
1669 + | }
|
1670 + | }
|
1671 + | }
|
1672 + | impl StreamingBlobOperationError {
|
1673 + | /// Returns `true` if the error kind is `StreamingBlobOperationError::InternalServerError`.
|
1674 + | pub fn is_internal_server_error(&self) -> bool {
|
1675 + | matches!(&self, StreamingBlobOperationError::InternalServerError(_))
|
1676 + | }
|
1677 + | /// Returns the error name string by matching the correct variant.
|
1678 + | pub fn name(&self) -> &'static str {
|
1679 + | match &self {
|
1680 + | StreamingBlobOperationError::InternalServerError(_inner) => _inner.name(),
|
1681 + | }
|
1682 + | }
|
1683 + | }
|
1684 + | impl ::std::error::Error for StreamingBlobOperationError {
|
1685 + | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1686 + | match &self {
|
1687 + | StreamingBlobOperationError::InternalServerError(_inner) => Some(_inner),
|
1688 + | }
|
1805 1689 | }
|
1806 1690 | }
|
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.
|
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>>,
|
1831 + | }
|
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,
|
1850 + | }
|
1851 + | }
|
1852 + | fn __repr__(&self) -> String {
|
1853 + | format!("{self:?}")
|
1854 + | }
|
1855 + | fn __str__(&self) -> String {
|
1856 + | format!("{self:?}")
|
1857 + | }
|
1858 + | }
|
1859 + | impl ValidationException {
|
1860 + | /// Returns the error message.
|
1861 + | pub fn message(&self) -> &str {
|
1862 + | &self.message
|
1863 + | }
|
1864 + | #[doc(hidden)]
|
1865 + | /// Returns the error name.
|
1866 + | pub fn name(&self) -> &'static str {
|
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)?;
|
1875 + | }
|
1876 + | Ok(())
|
1877 + | }
|
1878 + | }
|
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)?;
|
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"
|
1982 + | }
|
1983 + | }
|
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(())
|
1988 + | }
|
1989 + | }
|
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()
|
1998 + | }
|
1999 + | }
|
2000 + |
|
2001 + | /// Error type for the `Event` operation.
|
2002 + | /// Each variant represents an error that can occur for the `Event` operation.
|
1922 2003 | #[derive(::std::fmt::Debug)]
|
1923 - | pub enum ConstrainedShapesOnlyInOutputOperationError {
|
2004 + | pub enum EventError {
|
1924 2005 | #[allow(missing_docs)] // documentation missing in model
|
1925 - | InternalServerError(crate::error::InternalServerError),
|
2006 + | EventStreamErrorMessage(crate::error::EventStreamErrorMessage),
|
1926 2007 | }
|
1927 - | impl ::std::fmt::Display for ConstrainedShapesOnlyInOutputOperationError {
|
2008 + | impl ::std::fmt::Display for EventError {
|
1928 2009 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1929 2010 | match &self {
|
1930 - | ConstrainedShapesOnlyInOutputOperationError::InternalServerError(_inner) => {
|
1931 - | _inner.fmt(f)
|
1932 - | }
|
2011 + | EventError::EventStreamErrorMessage(_inner) => _inner.fmt(f),
|
1933 2012 | }
|
1934 2013 | }
|
1935 2014 | }
|
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 - | )
|
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(_))
|
1943 2019 | }
|
1944 2020 | /// Returns the error name string by matching the correct variant.
|
1945 2021 | pub fn name(&self) -> &'static str {
|
1946 2022 | match &self {
|
1947 - | ConstrainedShapesOnlyInOutputOperationError::InternalServerError(_inner) => {
|
1948 - | _inner.name()
|
1949 - | }
|
2023 + | EventError::EventStreamErrorMessage(_inner) => _inner.name(),
|
1950 2024 | }
|
1951 2025 | }
|
1952 2026 | }
|
1953 - | impl ::std::error::Error for ConstrainedShapesOnlyInOutputOperationError {
|
2027 + | impl ::std::error::Error for EventError {
|
1954 2028 | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
1955 2029 | match &self {
|
1956 - | ConstrainedShapesOnlyInOutputOperationError::InternalServerError(_inner) => {
|
1957 - | Some(_inner)
|
1958 - | }
|
2030 + | EventError::EventStreamErrorMessage(_inner) => Some(_inner),
|
1959 2031 | }
|
1960 2032 | }
|
1961 2033 | }
|
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)
|
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)
|
1969 2037 | }
|
1970 2038 | }
|
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(),
|
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));
|
1981 2043 | }
|
1982 - | .into()
|
1983 - | })
|
2044 + | Err(::pyo3::exceptions::PyTypeError::new_err(format!(
|
2045 + | "failed to extract 'EventError' from '{}'",
|
2046 + | obj
|
2047 + | )))
|
1984 2048 | }
|
1985 2049 | }
|
1986 - |
|
1987 - | /// Error type for the `ConstrainedShapesOperation` operation.
|
1988 - | /// Each variant represents an error that can occur for the `ConstrainedShapesOperation` operation.
|
1989 - | #[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),
|
1993 - | #[allow(missing_docs)] // documentation missing in model
|
1994 - | InternalServerError(crate::error::InternalServerError),
|
1995 - | }
|
1996 - | impl ::std::fmt::Display for ConstrainedShapesOperationError {
|
1997 - | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1998 - | match &self {
|
1999 - | ConstrainedShapesOperationError::ValidationException(_inner) => _inner.fmt(f),
|
2000 - | ConstrainedShapesOperationError::InternalServerError(_inner) => _inner.fmt(f),
|
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 + | },
|
2001 2057 | }
|
2002 2058 | }
|
2003 2059 | }
|
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 - | )
|
2060 + | impl ::std::convert::From<EventError> for ::pyo3::PyErr {
|
2061 + | fn from(err: EventError) -> ::pyo3::PyErr {
|
2062 + | ::pyo3::Python::with_gil(|py| {
|
2063 + | let py_err = ::pyo3::IntoPy::into_py(err, py);
|
2064 + | ::pyo3::PyErr::from_value(py_err.as_ref(py))
|
2065 + | })
|
2011 2066 | }
|
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 - | )
|
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,
|
2018 2077 | }
|
2019 - | /// Returns the error name string by matching the correct variant.
|
2020 - | pub fn name(&self) -> &'static str {
|
2021 - | match &self {
|
2022 - | ConstrainedShapesOperationError::ValidationException(_inner) => _inner.name(),
|
2023 - | ConstrainedShapesOperationError::InternalServerError(_inner) => _inner.name(),
|
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`"),
|
2024 2082 | }
|
2025 2083 | }
|
2026 - | }
|
2027 - | impl ::std::error::Error for ConstrainedShapesOperationError {
|
2028 - | fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
2029 - | match &self {
|
2030 - | ConstrainedShapesOperationError::ValidationException(_inner) => Some(_inner),
|
2031 - | ConstrainedShapesOperationError::InternalServerError(_inner) => Some(_inner),
|
2032 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()
|
2033 2091 | }
|
2034 - | }
|
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)
|
2042 2092 | }
|
2043 - | }
|
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)
|
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>>,
|
2051 2099 | }
|
2052 - | }
|
2053 - |
|
2054 - | impl ::std::convert::From<::pyo3::PyErr> for crate::error::ConstrainedShapesOperationError {
|
2055 - | fn from(variant: ::pyo3::PyErr) -> crate::error::ConstrainedShapesOperationError {
|
2056 - | ::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();
|
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
|
2060 2105 | }
|
2061 - | crate::error::InternalServerError {
|
2062 - | message: error.to_string(),
|
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
|
2063 2113 | }
|
2064 - | .into()
|
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,
|
2065 2127 | })
|
2066 2128 | }
|
2129 + | }
|
2067 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,
|