Server Test Python
rev. 1661690c47759989ca94986fb8d3e5132fc72dc5
Files changed:
@@ -49,49 +250,250 @@
49 49 | ]
|
50 50 |
|
51 51 | [[package]]
|
52 52 | name = "async-stream-impl"
|
53 53 | version = "0.3.6"
|
54 54 | source = "registry+https://github.com/rust-lang/crates.io-index"
|
55 55 | checksum = "c7c24de15d275a1ecfd47a380fb4d5ec9bfe0933f309ed5e705b775596a3574d"
|
56 56 | dependencies = [
|
57 57 | "proc-macro2",
|
58 58 | "quote",
|
59 59 | "syn 2.0.101",
|
60 60 | ]
|
61 61 |
|
62 62 | [[package]]
|
63 63 | name = "autocfg"
|
64 64 | version = "1.4.0"
|
65 65 | source = "registry+https://github.com/rust-lang/crates.io-index"
|
66 66 | checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
|
67 67 |
|
68 68 | [[package]]
|
69 69 | name = "aws-smithy-async"
|
70 70 | version = "1.2.5"
|
71 71 | dependencies = [
|
72 72 | "futures-util",
|
73 73 | "pin-project-lite",
|
74 74 | "tokio",
|
75 75 | ]
|
76 76 |
|
77 77 | [[package]]
|
78 78 | name = "aws-smithy-cbor"
|
79 - | version = "0.61.0"
|
79 + | version = "0.61.1"
|
80 80 | dependencies = [
|
81 81 | "aws-smithy-types",
|
82 82 | "minicbor",
|
83 83 | ]
|
84 84 |
|
85 85 | [[package]]
|
86 86 | name = "aws-smithy-eventstream"
|
87 - | version = "0.60.8"
|
87 + | version = "0.60.9"
|
88 88 | dependencies = [
|
89 89 | "aws-smithy-types",
|
90 90 | "bytes",
|
91 91 | "crc32fast",
|
92 92 | ]
|
93 93 |
|
94 94 | [[package]]
|
95 95 | name = "aws-smithy-http"
|
96 96 | version = "0.62.1"
|
97 97 | dependencies = [
|
98 98 | "aws-smithy-eventstream",
|
99 99 | "aws-smithy-runtime-api",
|
100 100 | "aws-smithy-types",
|
101 101 | "bytes",
|
102 102 | "bytes-utils",
|
103 103 | "futures-core",
|
104 104 | "http 0.2.12",
|
105 105 | "http 1.3.1",
|
106 106 | "http-body",
|
107 107 | "percent-encoding",
|
108 108 | "pin-project-lite",
|
109 109 | "pin-utils",
|
110 110 | "tracing",
|
111 111 | ]
|
112 112 |
|
113 113 | [[package]]
|
114 114 | name = "aws-smithy-http-server"
|
115 - | version = "0.65.3"
|
115 + | version = "0.65.5"
|
116 116 | dependencies = [
|
117 117 | "aws-smithy-cbor",
|
118 118 | "aws-smithy-http",
|
119 119 | "aws-smithy-json",
|
120 120 | "aws-smithy-runtime-api",
|
121 121 | "aws-smithy-types",
|
122 122 | "aws-smithy-xml",
|
123 123 | "bytes",
|
124 124 | "futures-util",
|
125 125 | "http 0.2.12",
|
126 126 | "http-body",
|
127 127 | "hyper",
|
128 128 | "lambda_http",
|
129 129 | "mime",
|
130 130 | "nom",
|
131 131 | "pin-project-lite",
|
132 132 | "regex",
|
133 133 | "serde_urlencoded",
|
134 134 | "thiserror 2.0.12",
|
135 135 | "tokio",
|
136 136 | "tower",
|
137 137 | "tower-http",
|
138 138 | "tracing",
|
139 139 | "uuid",
|
140 140 | ]
|
141 141 |
|
142 142 | [[package]]
|
143 143 | name = "aws-smithy-http-server-python"
|
144 - | version = "0.66.0"
|
144 + | version = "0.66.1"
|
145 145 | dependencies = [
|
146 146 | "aws-smithy-http",
|
147 147 | "aws-smithy-http-server",
|
148 148 | "aws-smithy-json",
|
149 149 | "aws-smithy-types",
|
150 150 | "aws-smithy-xml",
|
151 151 | "bytes",
|
152 152 | "futures",
|
153 153 | "http 0.2.12",
|
154 154 | "hyper",
|
155 155 | "lambda_http",
|
156 156 | "num_cpus",
|
157 157 | "parking_lot",
|
158 158 | "pin-project-lite",
|
159 159 | "pyo3",
|
160 160 | "pyo3-asyncio",
|
161 161 | "rustls-pemfile",
|
162 162 | "signal-hook",
|
163 163 | "socket2",
|
164 164 | "thiserror 2.0.12",
|
165 165 | "tls-listener",
|
166 166 | "tokio",
|
167 167 | "tokio-rustls",
|
168 168 | "tokio-stream",
|
169 169 | "tower",
|
170 170 | "tracing",
|
171 171 | "tracing-appender",
|
172 172 | "tracing-subscriber",
|
173 173 | ]
|
174 174 |
|
175 175 | [[package]]
|
176 176 | name = "aws-smithy-json"
|
177 - | version = "0.61.3"
|
177 + | version = "0.61.4"
|
178 178 | dependencies = [
|
179 179 | "aws-smithy-types",
|
180 180 | ]
|
181 181 |
|
182 182 | [[package]]
|
183 183 | name = "aws-smithy-runtime-api"
|
184 - | version = "1.8.0"
|
184 + | version = "1.8.1"
|
185 185 | dependencies = [
|
186 186 | "aws-smithy-async",
|
187 187 | "aws-smithy-types",
|
188 188 | "bytes",
|
189 189 | "http 0.2.12",
|
190 190 | "http 1.3.1",
|
191 191 | "pin-project-lite",
|
192 192 | "tokio",
|
193 193 | "tracing",
|
194 194 | ]
|
195 195 |
|
196 196 | [[package]]
|
197 197 | name = "aws-smithy-types"
|
198 - | version = "1.3.1"
|
198 + | version = "1.3.2"
|
199 199 | dependencies = [
|
200 200 | "base64-simd",
|
201 201 | "bytes",
|
202 202 | "bytes-utils",
|
203 203 | "futures-core",
|
204 204 | "http 0.2.12",
|
205 205 | "http-body",
|
206 206 | "hyper",
|
207 207 | "itoa",
|
208 208 | "num-integer",
|
209 209 | "pin-project-lite",
|
210 210 | "pin-utils",
|
211 211 | "ryu",
|
212 212 | "serde",
|
213 213 | "time",
|
214 214 | "tokio",
|
215 215 | "tokio-util",
|
216 216 | ]
|
217 217 |
|
218 218 | [[package]]
|
219 219 | name = "aws-smithy-xml"
|
220 - | version = "0.60.9"
|
220 + | version = "0.60.10"
|
221 221 | dependencies = [
|
222 222 | "xmlparser",
|
223 223 | ]
|
224 224 |
|
225 225 | [[package]]
|
226 226 | name = "aws_lambda_events"
|
227 227 | version = "0.12.1"
|
228 228 | source = "registry+https://github.com/rust-lang/crates.io-index"
|
229 229 | checksum = "03611508dd1e514e311caec235b581c99a4cb66fa1771bd502819eed69894f12"
|
230 230 | dependencies = [
|
231 231 | "base64 0.21.7",
|
232 232 | "bytes",
|
233 233 | "http 0.2.12",
|
234 234 | "http-body",
|
235 235 | "http-serde",
|
236 236 | "query_map",
|
237 237 | "serde",
|
238 238 | "serde_json",
|
239 239 | ]
|
240 240 |
|
241 241 | [[package]]
|
242 242 | name = "backtrace"
|
243 243 | version = "0.3.75"
|
244 244 | source = "registry+https://github.com/rust-lang/crates.io-index"
|
245 245 | checksum = "6806a6321ec58106fea15becdad98371e28d92ccbc7c8f1b3b6dd724fe8f1002"
|
246 246 | dependencies = [
|
247 247 | "addr2line",
|
248 248 | "cfg-if",
|
249 249 | "libc",
|
250 250 | "miniz_oxide",
|
@@ -2043,2043 +2103,2102 @@
2043 2043 | }
|
2044 2044 | impl ::std::convert::From<crate::error::InternalServerError>
|
2045 2045 | for crate::error::ConstrainedShapesOperationError
|
2046 2046 | {
|
2047 2047 | fn from(
|
2048 2048 | variant: crate::error::InternalServerError,
|
2049 2049 | ) -> crate::error::ConstrainedShapesOperationError {
|
2050 2050 | Self::InternalServerError(variant)
|
2051 2051 | }
|
2052 2052 | }
|
2053 2053 |
|
2054 2054 | impl ::std::convert::From<::pyo3::PyErr> for crate::error::ConstrainedShapesOperationError {
|
2055 2055 | fn from(variant: ::pyo3::PyErr) -> crate::error::ConstrainedShapesOperationError {
|
2056 2056 | ::pyo3::Python::with_gil(|py| {
|
2057 2057 | let error = variant.value(py);
|
2058 2058 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
2059 2059 | return error.into();
|
2060 2060 | }
|
2061 2061 | crate::error::InternalServerError {
|
2062 2062 | message: error.to_string(),
|
2063 2063 | }
|
2064 2064 | .into()
|
2065 2065 | })
|
2066 2066 | }
|
2067 2067 | }
|
2068 2068 | /// See [`InternalServerError`](crate::error::InternalServerError).
|
2069 2069 | pub mod internal_server_error {
|
2070 2070 |
|
2071 2071 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2072 2072 | /// Holds one variant for each of the ways the builder can fail.
|
2073 - |
|
2074 2073 | #[allow(clippy::enum_variant_names)]
|
2075 2074 | pub enum ConstraintViolation {
|
2076 2075 | /// `message` was not provided but it is required when building `InternalServerError`.
|
2077 2076 | MissingMessage,
|
2078 2077 | }
|
2079 2078 | impl ::std::fmt::Display for ConstraintViolation {
|
2080 2079 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2081 2080 | match self {
|
2082 2081 | ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `InternalServerError`"),
|
2083 2082 | }
|
2084 2083 | }
|
2085 2084 | }
|
2086 2085 | impl ::std::error::Error for ConstraintViolation {}
|
2087 2086 | impl ::std::convert::TryFrom<Builder> for crate::error::InternalServerError {
|
2088 2087 | type Error = ConstraintViolation;
|
2089 2088 |
|
2090 2089 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2091 2090 | builder.build()
|
2092 2091 | }
|
2093 2092 | }
|
2094 2093 | /// A builder for [`InternalServerError`](crate::error::InternalServerError).
|
2095 2094 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2096 2095 | pub struct Builder {
|
2097 2096 | pub(crate) message: ::std::option::Option<::std::string::String>,
|
2098 2097 | }
|
2099 2098 | impl Builder {
|
2100 2099 | #[allow(missing_docs)] // documentation missing in model
|
2101 2100 | pub fn message(mut self, input: ::std::string::String) -> Self {
|
2102 2101 | self.message = Some(input);
|
2103 2102 | self
|
@@ -2162,2161 +2222,2220 @@
2162 2161 | /// A builder for [`EventStreamErrorMessage`](crate::error::EventStreamErrorMessage).
|
2163 2162 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2164 2163 | pub struct Builder {
|
2165 2164 | pub(crate) message_content: ::std::option::Option<::std::string::String>,
|
2166 2165 | }
|
2167 2166 | impl Builder {
|
2168 2167 | #[allow(missing_docs)] // documentation missing in model
|
2169 2168 | pub fn message_content(
|
2170 2169 | mut self,
|
2171 2170 | input: ::std::option::Option<::std::string::String>,
|
2172 2171 | ) -> Self {
|
2173 2172 | self.message_content = input;
|
2174 2173 | self
|
2175 2174 | }
|
2176 2175 | /// Consumes the builder and constructs a [`EventStreamErrorMessage`](crate::error::EventStreamErrorMessage).
|
2177 2176 | pub fn build(self) -> crate::error::EventStreamErrorMessage {
|
2178 2177 | self.build_enforcing_required_and_enum_traits()
|
2179 2178 | }
|
2180 2179 | fn build_enforcing_required_and_enum_traits(self) -> crate::error::EventStreamErrorMessage {
|
2181 2180 | crate::error::EventStreamErrorMessage {
|
2182 2181 | message_content: self.message_content,
|
2183 2182 | }
|
2184 2183 | }
|
2185 2184 | }
|
2186 2185 | }
|
2187 2186 | /// See [`ValidationException`](crate::error::ValidationException).
|
2188 2187 | pub mod validation_exception {
|
2189 2188 |
|
2190 2189 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2191 2190 | /// Holds one variant for each of the ways the builder can fail.
|
2192 - |
|
2193 2191 | #[allow(clippy::enum_variant_names)]
|
2194 2192 | pub enum ConstraintViolation {
|
2195 2193 | /// `message` was not provided but it is required when building `ValidationException`.
|
2196 2194 | MissingMessage,
|
2197 2195 | }
|
2198 2196 | impl ::std::fmt::Display for ConstraintViolation {
|
2199 2197 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2200 2198 | match self {
|
2201 2199 | ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationException`"),
|
2202 2200 | }
|
2203 2201 | }
|
2204 2202 | }
|
2205 2203 | impl ::std::error::Error for ConstraintViolation {}
|
2206 2204 | impl ::std::convert::TryFrom<Builder> for crate::error::ValidationException {
|
2207 2205 | type Error = ConstraintViolation;
|
2208 2206 |
|
2209 2207 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2210 2208 | builder.build()
|
2211 2209 | }
|
2212 2210 | }
|
2213 2211 | /// A builder for [`ValidationException`](crate::error::ValidationException).
|
2214 2212 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2215 2213 | pub struct Builder {
|
2216 2214 | pub(crate) message: ::std::option::Option<::std::string::String>,
|
2217 2215 | pub(crate) field_list:
|
2218 2216 | ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
|
2219 2217 | }
|
2220 2218 | impl Builder {
|
2221 2219 | /// A summary of the validation failure.
|
2222 2220 | pub fn message(mut self, input: ::std::string::String) -> Self {
|
@@ -1930,1930 +1990,1989 @@
1930 1930 | input: impl ::std::convert::Into<
|
1931 1931 | crate::python_event_stream::EventStreamsOperationInputEventsReceiver,
|
1932 1932 | >,
|
1933 1933 | ) -> Self {
|
1934 1934 | self.events = Some(input.into());
|
1935 1935 | self
|
1936 1936 | }
|
1937 1937 | /// Consumes the builder and constructs a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
1938 1938 | ///
|
1939 1939 | /// The builder fails to construct a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput) if a [`ConstraintViolation`] occurs.
|
1940 1940 | ///
|
1941 1941 | pub fn build(
|
1942 1942 | self,
|
1943 1943 | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
1944 1944 | self.build_enforcing_all_constraints()
|
1945 1945 | }
|
1946 1946 | fn build_enforcing_all_constraints(
|
1947 1947 | self,
|
1948 1948 | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
1949 1949 | Ok(crate::input::EventStreamsOperationInput {
|
1950 1950 | events: self.events.ok_or(ConstraintViolation::MissingEvents)?,
|
1951 1951 | })
|
1952 1952 | }
|
1953 1953 | }
|
1954 1954 | }
|
1955 1955 | /// See [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
1956 1956 | pub mod event_streams_operation_input {
|
1957 1957 |
|
1958 1958 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1959 1959 | /// Holds one variant for each of the ways the builder can fail.
|
1960 - |
|
1961 1960 | #[allow(clippy::enum_variant_names)]
|
1962 1961 | pub enum ConstraintViolation {
|
1963 1962 | /// `events` was not provided but it is required when building `EventStreamsOperationInput`.
|
1964 1963 | MissingEvents,
|
1965 1964 | }
|
1966 1965 | impl ::std::fmt::Display for ConstraintViolation {
|
1967 1966 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1968 1967 | match self {
|
1969 1968 | ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `EventStreamsOperationInput`"),
|
1970 1969 | }
|
1971 1970 | }
|
1972 1971 | }
|
1973 1972 | impl ::std::error::Error for ConstraintViolation {}
|
1974 1973 | impl ::std::convert::TryFrom<Builder> for crate::input::EventStreamsOperationInput {
|
1975 1974 | type Error = ConstraintViolation;
|
1976 1975 |
|
1977 1976 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1978 1977 | builder.build()
|
1979 1978 | }
|
1980 1979 | }
|
1981 1980 | /// A builder for [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
1982 1981 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1983 1982 | pub struct Builder {
|
1984 1983 | pub(crate) events: ::std::option::Option<
|
1985 1984 | crate::python_event_stream::EventStreamsOperationInputEventsReceiver,
|
1986 1985 | >,
|
1987 1986 | }
|
1988 1987 | impl Builder {
|
1989 1988 | #[allow(missing_docs)] // documentation missing in model
|
1990 1989 | pub fn events(
|
@@ -4276,4275 +4336,4334 @@
4276 4275 | Ok(crate::input::ConstrainedRecursiveShapesOperationInput {
|
4277 4276 | nested: self
|
4278 4277 | .nested
|
4279 4278 | .map(|v| match v {
|
4280 4279 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4281 4280 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4282 4281 | })
|
4283 4282 | .map(|res| res.map_err(ConstraintViolation::Nested))
|
4284 4283 | .transpose()?,
|
4285 4284 | recursive_list: self
|
4286 4285 | .recursive_list
|
4287 4286 | .map(|v| match v {
|
4288 4287 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4289 4288 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4290 4289 | })
|
4291 4290 | .map(|res| {
|
4292 4291 | res.map(|v| v.into())
|
4293 4292 | .map_err(ConstraintViolation::RecursiveList)
|
4294 4293 | })
|
4295 4294 | .transpose()?
|
4296 4295 | .ok_or(ConstraintViolation::MissingRecursiveList)?,
|
4297 4296 | })
|
4298 4297 | }
|
4299 4298 | }
|
4300 4299 | }
|
4301 4300 | /// See [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
4302 4301 | pub mod constrained_recursive_shapes_operation_input {
|
4303 4302 |
|
4304 4303 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4305 4304 | /// Holds one variant for each of the ways the builder can fail.
|
4306 - |
|
4307 4305 | #[allow(clippy::enum_variant_names)]
|
4308 4306 | pub enum ConstraintViolation {
|
4309 4307 | /// `recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`.
|
4310 4308 | MissingRecursiveList,
|
4311 4309 | }
|
4312 4310 | impl ::std::fmt::Display for ConstraintViolation {
|
4313 4311 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4314 4312 | match self {
|
4315 4313 | ConstraintViolation::MissingRecursiveList => write!(f, "`recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`"),
|
4316 4314 | }
|
4317 4315 | }
|
4318 4316 | }
|
4319 4317 | impl ::std::error::Error for ConstraintViolation {}
|
4320 4318 | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedRecursiveShapesOperationInput {
|
4321 4319 | type Error = ConstraintViolation;
|
4322 4320 |
|
4323 4321 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4324 4322 | builder.build()
|
4325 4323 | }
|
4326 4324 | }
|
4327 4325 | /// A builder for [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
4328 4326 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4329 4327 | pub struct Builder {
|
4330 4328 | pub(crate) nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
4331 4329 | pub(crate) recursive_list:
|
4332 4330 | ::std::option::Option<::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>>,
|
4333 4331 | }
|
4334 4332 | impl Builder {
|
4335 4333 | #[allow(missing_docs)] // documentation missing in model
|
4336 4334 | pub fn nested(
|
@@ -4471,4469 +4531,4528 @@
4471 4469 | {
|
4472 4470 | self.build_enforcing_all_constraints()
|
4473 4471 | }
|
4474 4472 | fn build_enforcing_all_constraints(
|
4475 4473 | self,
|
4476 4474 | ) -> Result<crate::input::ConstrainedHttpPayloadBoundShapeOperationInput, ConstraintViolation>
|
4477 4475 | {
|
4478 4476 | Ok(
|
4479 4477 | crate::input::ConstrainedHttpPayloadBoundShapeOperationInput {
|
4480 4478 | http_payload_bound_constrained_shape: self
|
4481 4479 | .http_payload_bound_constrained_shape
|
4482 4480 | .map(|v| match v {
|
4483 4481 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4484 4482 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4485 4483 | })
|
4486 4484 | .map(|res| {
|
4487 4485 | res.map_err(ConstraintViolation::HttpPayloadBoundConstrainedShape)
|
4488 4486 | })
|
4489 4487 | .transpose()?
|
4490 4488 | .ok_or(ConstraintViolation::MissingHttpPayloadBoundConstrainedShape)?,
|
4491 4489 | },
|
4492 4490 | )
|
4493 4491 | }
|
4494 4492 | }
|
4495 4493 | }
|
4496 4494 | /// See [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
4497 4495 | pub mod constrained_http_payload_bound_shape_operation_input {
|
4498 4496 |
|
4499 4497 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4500 4498 | /// Holds one variant for each of the ways the builder can fail.
|
4501 - |
|
4502 4499 | #[allow(clippy::enum_variant_names)]
|
4503 4500 | pub enum ConstraintViolation {
|
4504 4501 | /// `http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationInput`.
|
4505 4502 | MissingHttpPayloadBoundConstrainedShape,
|
4506 4503 | }
|
4507 4504 | impl ::std::fmt::Display for ConstraintViolation {
|
4508 4505 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4509 4506 | match self {
|
4510 4507 | ConstraintViolation::MissingHttpPayloadBoundConstrainedShape => write!(f, "`http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationInput`"),
|
4511 4508 | }
|
4512 4509 | }
|
4513 4510 | }
|
4514 4511 | impl ::std::error::Error for ConstraintViolation {}
|
4515 4512 | impl ::std::convert::TryFrom<Builder>
|
4516 4513 | for crate::input::ConstrainedHttpPayloadBoundShapeOperationInput
|
4517 4514 | {
|
4518 4515 | type Error = ConstraintViolation;
|
4519 4516 |
|
4520 4517 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4521 4518 | builder.build()
|
4522 4519 | }
|
4523 4520 | }
|
4524 4521 | /// A builder for [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
4525 4522 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4526 4523 | pub struct Builder {
|
4527 4524 | pub(crate) http_payload_bound_constrained_shape: ::std::option::Option<crate::model::ConA>,
|
4528 4525 | }
|
4529 4526 | impl Builder {
|
4530 4527 | #[allow(missing_docs)] // documentation missing in model
|
4531 4528 | pub fn http_payload_bound_constrained_shape(mut self, input: crate::model::ConA) -> Self {
|
@@ -5741,5738 +5801,5797 @@
5741 5738 | .map(|v: crate::model::SetOfRangeInteger| v.into()),
|
5742 5739 | range_long_set_query: self
|
5743 5740 | .range_long_set_query
|
5744 5741 | .map(|v| match v {
|
5745 5742 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5746 5743 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5747 5744 | })
|
5748 5745 | .map(|res| res.map_err(ConstraintViolation::RangeLongSetQuery))
|
5749 5746 | .transpose()?
|
5750 5747 | .map(|v: crate::model::SetOfRangeLong| v.into()),
|
5751 5748 | enum_string_list_query: self
|
5752 5749 | .enum_string_list_query
|
5753 5750 | .map(|v| match v {
|
5754 5751 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5755 5752 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5756 5753 | })
|
5757 5754 | .map(|res| {
|
5758 5755 | res.map(|v| v.into())
|
5759 5756 | .map_err(ConstraintViolation::EnumStringListQuery)
|
5760 5757 | })
|
5761 5758 | .transpose()?,
|
5762 5759 | })
|
5763 5760 | }
|
5764 5761 | }
|
5765 5762 | }
|
5766 5763 | /// See [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
5767 5764 | pub mod constrained_http_bound_shapes_operation_input {
|
5768 5765 |
|
5769 5766 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5770 5767 | /// Holds one variant for each of the ways the builder can fail.
|
5771 - |
|
5772 5768 | #[allow(clippy::enum_variant_names)]
|
5773 5769 | pub enum ConstraintViolation {
|
5774 5770 | /// `length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
5775 5771 | MissingLengthStringLabel,
|
5776 5772 | /// `enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
5777 5773 | MissingEnumStringLabel,
|
5778 5774 | /// `length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
5779 5775 | MissingLengthStringHeaderMap,
|
5780 5776 | }
|
5781 5777 | impl ::std::fmt::Display for ConstraintViolation {
|
5782 5778 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5783 5779 | match self {
|
5784 5780 | ConstraintViolation::MissingLengthStringLabel => write!(f, "`length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5785 5781 | ConstraintViolation::MissingEnumStringLabel => write!(f, "`enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5786 5782 | ConstraintViolation::MissingLengthStringHeaderMap => write!(f, "`length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5787 5783 | }
|
5788 5784 | }
|
5789 5785 | }
|
5790 5786 | impl ::std::error::Error for ConstraintViolation {}
|
5791 5787 | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedHttpBoundShapesOperationInput {
|
5792 5788 | type Error = ConstraintViolation;
|
5793 5789 |
|
5794 5790 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5795 5791 | builder.build()
|
5796 5792 | }
|
5797 5793 | }
|
5798 5794 | /// A builder for [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
5799 5795 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5800 5796 | pub struct Builder {
|
5801 5797 | pub(crate) length_string_label: ::std::option::Option<::std::string::String>,
|
@@ -6354,6350 +6414,6409 @@
6354 6350 | /// The builder fails to construct a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput) if a [`ConstraintViolation`] occurs.
|
6355 6351 | ///
|
6356 6352 | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
6357 6353 | pub fn build(
|
6358 6354 | self,
|
6359 6355 | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
6360 6356 | self.build_enforcing_all_constraints()
|
6361 6357 | }
|
6362 6358 | fn build_enforcing_all_constraints(
|
6363 6359 | self,
|
6364 6360 | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
6365 6361 | Ok(crate::input::ConstrainedShapesOperationInput {
|
6366 6362 | con_a: self
|
6367 6363 | .con_a
|
6368 6364 | .map(|v| match v {
|
6369 6365 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
6370 6366 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
6371 6367 | })
|
6372 6368 | .map(|res| res.map_err(ConstraintViolation::ConA))
|
6373 6369 | .transpose()?
|
6374 6370 | .ok_or(ConstraintViolation::MissingConA)?,
|
6375 6371 | })
|
6376 6372 | }
|
6377 6373 | }
|
6378 6374 | }
|
6379 6375 | /// See [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
6380 6376 | pub mod constrained_shapes_operation_input {
|
6381 6377 |
|
6382 6378 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
6383 6379 | /// Holds one variant for each of the ways the builder can fail.
|
6384 - |
|
6385 6380 | #[allow(clippy::enum_variant_names)]
|
6386 6381 | pub enum ConstraintViolation {
|
6387 6382 | /// `con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`.
|
6388 6383 | MissingConA,
|
6389 6384 | }
|
6390 6385 | impl ::std::fmt::Display for ConstraintViolation {
|
6391 6386 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
6392 6387 | match self {
|
6393 6388 | ConstraintViolation::MissingConA => write!(f, "`con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`"),
|
6394 6389 | }
|
6395 6390 | }
|
6396 6391 | }
|
6397 6392 | impl ::std::error::Error for ConstraintViolation {}
|
6398 6393 | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedShapesOperationInput {
|
6399 6394 | type Error = ConstraintViolation;
|
6400 6395 |
|
6401 6396 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
6402 6397 | builder.build()
|
6403 6398 | }
|
6404 6399 | }
|
6405 6400 | /// A builder for [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
6406 6401 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6407 6402 | pub struct Builder {
|
6408 6403 | pub(crate) con_a: ::std::option::Option<crate::model::ConA>,
|
6409 6404 | }
|
6410 6405 | impl Builder {
|
6411 6406 | #[allow(missing_docs)] // documentation missing in model
|
6412 6407 | pub fn con_a(mut self, input: crate::model::ConA) -> Self {
|
6413 6408 | self.con_a = Some(input);
|
6414 6409 | self
|
@@ -5261,5261 +5321,5320 @@
5261 5261 | }
|
5262 5262 | }
|
5263 5263 | impl ::std::convert::TryFrom<::std::vec::Vec<crate::model::ConstrainedUnionInOutput>>
|
5264 5264 | for ConstrainedListInOutput
|
5265 5265 | {
|
5266 5266 | type Error = crate::model::constrained_list_in_output_internal::ConstraintViolation;
|
5267 5267 |
|
5268 5268 | /// Constructs a `ConstrainedListInOutput` from an [`::std::vec::Vec<crate::model::ConstrainedUnionInOutput>`], failing when the provided value does not satisfy the modeled constraints.
|
5269 5269 | fn try_from(
|
5270 5270 | value: ::std::vec::Vec<crate::model::ConstrainedUnionInOutput>,
|
5271 5271 | ) -> ::std::result::Result<Self, Self::Error> {
|
5272 5272 | Self::check_length(value.len())?;
|
5273 5273 |
|
5274 5274 | Ok(Self(value))
|
5275 5275 | }
|
5276 5276 | }
|
5277 5277 |
|
5278 5278 | impl ::std::convert::From<ConstrainedListInOutput>
|
5279 5279 | for ::std::vec::Vec<crate::model::ConstrainedUnionInOutput>
|
5280 5280 | {
|
5281 5281 | fn from(value: ConstrainedListInOutput) -> Self {
|
5282 5282 | value.into_inner()
|
5283 5283 | }
|
5284 5284 | }
|
5285 5285 |
|
5286 5286 | /// See [`ValidationExceptionField`](crate::model::ValidationExceptionField).
|
5287 5287 | pub mod validation_exception_field {
|
5288 5288 |
|
5289 5289 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5290 5290 | /// Holds one variant for each of the ways the builder can fail.
|
5291 - |
|
5292 5291 | #[allow(clippy::enum_variant_names)]
|
5293 5292 | pub enum ConstraintViolation {
|
5294 5293 | /// `path` was not provided but it is required when building `ValidationExceptionField`.
|
5295 5294 | MissingPath,
|
5296 5295 | /// `message` was not provided but it is required when building `ValidationExceptionField`.
|
5297 5296 | MissingMessage,
|
5298 5297 | }
|
5299 5298 | impl ::std::fmt::Display for ConstraintViolation {
|
5300 5299 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5301 5300 | match self {
|
5302 5301 | ConstraintViolation::MissingPath => write!(f, "`path` was not provided but it is required when building `ValidationExceptionField`"),
|
5303 5302 | ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationExceptionField`"),
|
5304 5303 | }
|
5305 5304 | }
|
5306 5305 | }
|
5307 5306 | impl ::std::error::Error for ConstraintViolation {}
|
5308 5307 | impl ::std::convert::TryFrom<Builder> for crate::model::ValidationExceptionField {
|
5309 5308 | type Error = ConstraintViolation;
|
5310 5309 |
|
5311 5310 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5312 5311 | builder.build()
|
5313 5312 | }
|
5314 5313 | }
|
5315 5314 | /// A builder for [`ValidationExceptionField`](crate::model::ValidationExceptionField).
|
5316 5315 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5317 5316 | pub struct Builder {
|
5318 5317 | pub(crate) path: ::std::option::Option<::std::string::String>,
|
5319 5318 | pub(crate) message: ::std::option::Option<::std::string::String>,
|
5320 5319 | }
|
5321 5320 | impl Builder {
|
@@ -6386,6385 +6446,6444 @@
6386 6385 | ) -> Result<crate::model::RecursiveShapesInputOutputNested1, ConstraintViolation> {
|
6387 6386 | self.build_enforcing_all_constraints()
|
6388 6387 | }
|
6389 6388 | fn build_enforcing_all_constraints(
|
6390 6389 | self,
|
6391 6390 | ) -> Result<crate::model::RecursiveShapesInputOutputNested1, ConstraintViolation> {
|
6392 6391 | Ok(crate::model::RecursiveShapesInputOutputNested1 {
|
6393 6392 | recursive_member: self
|
6394 6393 | .recursive_member
|
6395 6394 | .map(|v| match *v {
|
6396 6395 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(Box::new(x)),
|
6397 6396 | crate::constrained::MaybeConstrained::Unconstrained(x) => {
|
6398 6397 | Ok(Box::new(x.try_into()?))
|
6399 6398 | }
|
6400 6399 | })
|
6401 6400 | .map(|res| {
|
6402 6401 | res.map_err(Box::new)
|
6403 6402 | .map_err(ConstraintViolation::RecursiveMember)
|
6404 6403 | })
|
6405 6404 | .transpose()?
|
6406 6405 | .ok_or(ConstraintViolation::MissingRecursiveMember)?,
|
6407 6406 | })
|
6408 6407 | }
|
6409 6408 | }
|
6410 6409 | }
|
6411 6410 | /// See [`RecursiveShapesInputOutputNested1`](crate::model::RecursiveShapesInputOutputNested1).
|
6412 6411 | pub mod recursive_shapes_input_output_nested1 {
|
6413 6412 |
|
6414 6413 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
6415 6414 | /// Holds one variant for each of the ways the builder can fail.
|
6416 - |
|
6417 6415 | #[allow(clippy::enum_variant_names)]
|
6418 6416 | pub enum ConstraintViolation {
|
6419 6417 | /// `recursive_member` was not provided but it is required when building `RecursiveShapesInputOutputNested1`.
|
6420 6418 | MissingRecursiveMember,
|
6421 6419 | }
|
6422 6420 | impl ::std::fmt::Display for ConstraintViolation {
|
6423 6421 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
6424 6422 | match self {
|
6425 6423 | ConstraintViolation::MissingRecursiveMember => write!(f, "`recursive_member` was not provided but it is required when building `RecursiveShapesInputOutputNested1`"),
|
6426 6424 | }
|
6427 6425 | }
|
6428 6426 | }
|
6429 6427 | impl ::std::error::Error for ConstraintViolation {}
|
6430 6428 | impl ::std::convert::TryFrom<Builder> for crate::model::RecursiveShapesInputOutputNested1 {
|
6431 6429 | type Error = ConstraintViolation;
|
6432 6430 |
|
6433 6431 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
6434 6432 | builder.build()
|
6435 6433 | }
|
6436 6434 | }
|
6437 6435 | /// A builder for [`RecursiveShapesInputOutputNested1`](crate::model::RecursiveShapesInputOutputNested1).
|
6438 6436 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6439 6437 | pub struct Builder {
|
6440 6438 | pub(crate) recursive_member: ::std::option::Option<
|
6441 6439 | ::std::boxed::Box<crate::model::RecursiveShapesInputOutputNested2>,
|
6442 6440 | >,
|
6443 6441 | }
|
6444 6442 | impl Builder {
|
6445 6443 | #[allow(missing_docs)] // documentation missing in model
|
6446 6444 | pub fn recursive_member(
|
@@ -8529,8527 +8589,8586 @@
8529 8527 | .map(|res| res.map_err(ConstraintViolation::SetOfLengthPatternString))
|
8530 8528 | .transpose()?
|
8531 8529 | .map(|v: crate::model::SetOfLengthPatternString| v.into()),
|
8532 8530 | length_list_of_pattern_string: self
|
8533 8531 | .length_list_of_pattern_string
|
8534 8532 | .map(|v| match v {
|
8535 8533 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
8536 8534 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
8537 8535 | })
|
8538 8536 | .map(|res| res.map_err(ConstraintViolation::LengthListOfPatternString))
|
8539 8537 | .transpose()?
|
8540 8538 | .map(|v: crate::model::LengthListOfPatternString| v.into()),
|
8541 8539 | length_set_of_pattern_string: self
|
8542 8540 | .length_set_of_pattern_string
|
8543 8541 | .map(|v| match v {
|
8544 8542 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
8545 8543 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
8546 8544 | })
|
8547 8545 | .map(|res| res.map_err(ConstraintViolation::LengthSetOfPatternString))
|
8548 8546 | .transpose()?
|
8549 8547 | .map(|v: crate::model::LengthSetOfPatternString| v.into()),
|
8550 8548 | })
|
8551 8549 | }
|
8552 8550 | }
|
8553 8551 | }
|
8554 8552 | /// See [`ConA`](crate::model::ConA).
|
8555 8553 | pub mod con_a {
|
8556 8554 |
|
8557 8555 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
8558 8556 | /// Holds one variant for each of the ways the builder can fail.
|
8559 - |
|
8560 8557 | #[allow(clippy::enum_variant_names)]
|
8561 8558 | pub enum ConstraintViolation {
|
8562 8559 | /// `con_b` was not provided but it is required when building `ConA`.
|
8563 8560 | MissingConB,
|
8564 8561 | }
|
8565 8562 | impl ::std::fmt::Display for ConstraintViolation {
|
8566 8563 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
8567 8564 | match self {
|
8568 8565 | ConstraintViolation::MissingConB => write!(
|
8569 8566 | f,
|
8570 8567 | "`con_b` was not provided but it is required when building `ConA`"
|
8571 8568 | ),
|
8572 8569 | }
|
8573 8570 | }
|
8574 8571 | }
|
8575 8572 | impl ::std::error::Error for ConstraintViolation {}
|
8576 8573 | impl ::std::convert::TryFrom<Builder> for crate::model::ConA {
|
8577 8574 | type Error = ConstraintViolation;
|
8578 8575 |
|
8579 8576 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
8580 8577 | builder.build()
|
8581 8578 | }
|
8582 8579 | }
|
8583 8580 | /// A builder for [`ConA`](crate::model::ConA).
|
8584 8581 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
8585 8582 | pub struct Builder {
|
8586 8583 | pub(crate) con_b: ::std::option::Option<crate::model::ConB>,
|
8587 8584 | pub(crate) opt_con_b: ::std::option::Option<crate::model::ConB>,
|
8588 8585 | pub(crate) length_string: ::std::option::Option<::std::string::String>,
|
8589 8586 | pub(crate) min_length_string: ::std::option::Option<::std::string::String>,
|
@@ -10553,10550 +10613,10609 @@
10553 10550 | #[allow(missing_docs)] // documentation missing in model
|
10554 10551 | pub(crate) fn set_opt_int(mut self, input: Option<impl ::std::convert::Into<i32>>) -> Self {
|
10555 10552 | self.opt_int = input.map(|v| v.into());
|
10556 10553 | self
|
10557 10554 | }
|
10558 10555 | /// Consumes the builder and constructs a [`ConB`](crate::model::ConB).
|
10559 10556 | ///
|
10560 10557 | /// The builder fails to construct a [`ConB`](crate::model::ConB) if a [`ConstraintViolation`] occurs.
|
10561 10558 | ///
|
10562 10559 | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
10563 10560 | pub fn build(self) -> Result<crate::model::ConB, ConstraintViolation> {
|
10564 10561 | self.build_enforcing_all_constraints()
|
10565 10562 | }
|
10566 10563 | fn build_enforcing_all_constraints(
|
10567 10564 | self,
|
10568 10565 | ) -> Result<crate::model::ConB, ConstraintViolation> {
|
10569 10566 | Ok(crate::model::ConB {
|
10570 10567 | nice: self.nice.ok_or(ConstraintViolation::MissingNice)?,
|
10571 10568 | int: self.int.ok_or(ConstraintViolation::MissingInt)?,
|
10572 10569 | opt_nice: self.opt_nice,
|
10573 10570 | opt_int: self.opt_int,
|
10574 10571 | })
|
10575 10572 | }
|
10576 10573 | }
|
10577 10574 | }
|
10578 10575 | /// See [`ConB`](crate::model::ConB).
|
10579 10576 | pub mod con_b {
|
10580 10577 |
|
10581 10578 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
10582 10579 | /// Holds one variant for each of the ways the builder can fail.
|
10583 - |
|
10584 10580 | #[allow(clippy::enum_variant_names)]
|
10585 10581 | pub enum ConstraintViolation {
|
10586 10582 | /// `nice` was not provided but it is required when building `ConB`.
|
10587 10583 | MissingNice,
|
10588 10584 | /// `int` was not provided but it is required when building `ConB`.
|
10589 10585 | MissingInt,
|
10590 10586 | }
|
10591 10587 | impl ::std::fmt::Display for ConstraintViolation {
|
10592 10588 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
10593 10589 | match self {
|
10594 10590 | ConstraintViolation::MissingNice => write!(
|
10595 10591 | f,
|
10596 10592 | "`nice` was not provided but it is required when building `ConB`"
|
10597 10593 | ),
|
10598 10594 | ConstraintViolation::MissingInt => write!(
|
10599 10595 | f,
|
10600 10596 | "`int` was not provided but it is required when building `ConB`"
|
10601 10597 | ),
|
10602 10598 | }
|
10603 10599 | }
|
10604 10600 | }
|
10605 10601 | impl ::std::error::Error for ConstraintViolation {}
|
10606 10602 | impl ::std::convert::TryFrom<Builder> for crate::model::ConB {
|
10607 10603 | type Error = ConstraintViolation;
|
10608 10604 |
|
10609 10605 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
10610 10606 | builder.build()
|
10611 10607 | }
|
10612 10608 | }
|
10613 10609 | /// A builder for [`ConB`](crate::model::ConB).
|
@@ -28,28 +88,87 @@
28 28 | }
|
29 29 | }
|
30 30 |
|
31 31 | impl<B>
|
32 32 | ::aws_smithy_http_server::request::FromRequest<
|
33 33 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
34 34 | B,
|
35 35 | > for crate::input::EventStreamsOperationInput
|
36 36 | where
|
37 37 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
38 38 | B: 'static,
|
39 39 |
|
40 40 | B: Into<::aws_smithy_types::byte_stream::ByteStream>,
|
41 41 | B::Data: Send,
|
42 42 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
43 43 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
44 44 | {
|
45 45 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
46 46 | type Future = EventStreamsOperationInputFuture;
|
47 47 |
|
48 48 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
49 49 | let fut = async move {
|
50 50 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
51 51 | request.headers(),
|
52 52 | &CONTENT_TYPE_EVENTSTREAMSOPERATION,
|
53 53 | ) {
|
54 54 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
55 55 | }
|
56 56 | crate::protocol_serde::shape_event_streams_operation::de_event_streams_operation_http_request(request)
|
57 57 | .await
|
58 - | .map_err(Into::into)
|
59 58 | };
|
60 59 | use ::futures_util::future::TryFutureExt;
|
61 60 | let fut = fut.map_err(
|
62 61 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
63 62 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
64 63 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
65 64 | e,
|
66 65 | )
|
67 66 | },
|
68 67 | );
|
69 68 | EventStreamsOperationInputFuture {
|
70 69 | inner: Box::pin(fut),
|
71 70 | }
|
72 71 | }
|
73 72 | }
|
74 73 | impl
|
75 74 | ::aws_smithy_http_server::response::IntoResponse<
|
76 75 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
77 76 | > for crate::output::EventStreamsOperationOutput
|
78 77 | {
|
79 78 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
80 79 | match crate::protocol_serde::shape_event_streams_operation::ser_event_streams_operation_http_response(self) {
|
81 80 | Ok(response) => response,
|
82 81 | Err(e) => {
|
83 82 | ::tracing::error!(error = %e, "failed to serialize response");
|
84 83 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
85 84 | }
|
86 85 | }
|
87 86 | }
|
88 87 | }
|
@@ -129,128 +189,187 @@
129 128 | }
|
130 129 | }
|
131 130 |
|
132 131 | impl<B>
|
133 132 | ::aws_smithy_http_server::request::FromRequest<
|
134 133 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
135 134 | B,
|
136 135 | > for crate::input::StreamingBlobOperationInput
|
137 136 | where
|
138 137 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
139 138 | B: 'static,
|
140 139 |
|
141 140 | B: Into<::aws_smithy_types::byte_stream::ByteStream>,
|
142 141 | B::Data: Send,
|
143 142 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
144 143 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
145 144 | {
|
146 145 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
147 146 | type Future = StreamingBlobOperationInputFuture;
|
148 147 |
|
149 148 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
150 149 | let fut = async move {
|
151 150 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
152 151 | request.headers(),
|
153 152 | &CONTENT_TYPE_STREAMINGBLOBOPERATION,
|
154 153 | ) {
|
155 154 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
156 155 | }
|
157 156 | crate::protocol_serde::shape_streaming_blob_operation::de_streaming_blob_operation_http_request(request)
|
158 157 | .await
|
159 - | .map_err(Into::into)
|
160 158 | };
|
161 159 | use ::futures_util::future::TryFutureExt;
|
162 160 | let fut = fut.map_err(
|
163 161 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
164 162 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
165 163 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
166 164 | e,
|
167 165 | )
|
168 166 | },
|
169 167 | );
|
170 168 | StreamingBlobOperationInputFuture {
|
171 169 | inner: Box::pin(fut),
|
172 170 | }
|
173 171 | }
|
174 172 | }
|
175 173 | impl
|
176 174 | ::aws_smithy_http_server::response::IntoResponse<
|
177 175 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
178 176 | > for crate::output::StreamingBlobOperationOutput
|
179 177 | {
|
180 178 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
181 179 | match crate::protocol_serde::shape_streaming_blob_operation::ser_streaming_blob_operation_http_response(self) {
|
182 180 | Ok(response) => response,
|
183 181 | Err(e) => {
|
184 182 | ::tracing::error!(error = %e, "failed to serialize response");
|
185 183 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
186 184 | }
|
187 185 | }
|
188 186 | }
|
189 187 | }
|
@@ -222,220 +282,279 @@
222 220 |
|
223 221 | fn poll(
|
224 222 | self: std::pin::Pin<&mut Self>,
|
225 223 | cx: &mut std::task::Context<'_>,
|
226 224 | ) -> std::task::Poll<Self::Output> {
|
227 225 | let this = self.project();
|
228 226 | this.inner.as_mut().poll(cx)
|
229 227 | }
|
230 228 | }
|
231 229 |
|
232 230 | impl<B>
|
233 231 | ::aws_smithy_http_server::request::FromRequest<
|
234 232 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
235 233 | B,
|
236 234 | > for crate::input::NonStreamingBlobOperationInput
|
237 235 | where
|
238 236 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
239 237 | B: 'static,
|
240 238 |
|
241 239 | B::Data: Send,
|
242 240 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
243 241 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
244 242 | {
|
245 243 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
246 244 | type Future = NonStreamingBlobOperationInputFuture;
|
247 245 |
|
248 246 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
249 247 | let fut = async move {
|
250 248 | crate::protocol_serde::shape_non_streaming_blob_operation::de_non_streaming_blob_operation_http_request(request)
|
251 249 | .await
|
252 - | .map_err(Into::into)
|
253 250 | };
|
254 251 | use ::futures_util::future::TryFutureExt;
|
255 252 | let fut = fut.map_err(
|
256 253 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
257 254 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
258 255 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
259 256 | e,
|
260 257 | )
|
261 258 | },
|
262 259 | );
|
263 260 | NonStreamingBlobOperationInputFuture {
|
264 261 | inner: Box::pin(fut),
|
265 262 | }
|
266 263 | }
|
267 264 | }
|
268 265 | impl
|
269 266 | ::aws_smithy_http_server::response::IntoResponse<
|
270 267 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
271 268 | > for crate::output::NonStreamingBlobOperationOutput
|
272 269 | {
|
273 270 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
274 271 | match crate::protocol_serde::shape_non_streaming_blob_operation::ser_non_streaming_blob_operation_http_response(self) {
|
275 272 | Ok(response) => response,
|
276 273 | Err(e) => {
|
277 274 | ::tracing::error!(error = %e, "failed to serialize response");
|
278 275 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
279 276 | }
|
280 277 | }
|
281 278 | }
|
282 279 | }
|
@@ -323,320 +383,379 @@
323 320 | this.inner.as_mut().poll(cx)
|
324 321 | }
|
325 322 | }
|
326 323 |
|
327 324 | impl<B>
|
328 325 | ::aws_smithy_http_server::request::FromRequest<
|
329 326 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
330 327 | B,
|
331 328 | > for crate::input::QueryParamsTargetingMapOfEnumStringOperationInput
|
332 329 | where
|
333 330 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
334 331 | B: 'static,
|
335 332 |
|
336 333 | B::Data: Send,
|
337 334 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
338 335 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
339 336 | {
|
340 337 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
341 338 | type Future = QueryParamsTargetingMapOfEnumStringOperationInputFuture;
|
342 339 |
|
343 340 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
344 341 | let fut = async move {
|
345 342 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
346 343 | request.headers(),
|
347 344 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFENUMSTRINGOPERATION,
|
348 345 | ) {
|
349 346 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
350 347 | }
|
351 348 | crate::protocol_serde::shape_query_params_targeting_map_of_enum_string_operation::de_query_params_targeting_map_of_enum_string_operation_http_request(request)
|
352 349 | .await
|
353 - | .map_err(Into::into)
|
354 350 | };
|
355 351 | use ::futures_util::future::TryFutureExt;
|
356 352 | let fut = fut.map_err(
|
357 353 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
358 354 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
359 355 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
360 356 | e,
|
361 357 | )
|
362 358 | },
|
363 359 | );
|
364 360 | QueryParamsTargetingMapOfEnumStringOperationInputFuture {
|
365 361 | inner: Box::pin(fut),
|
366 362 | }
|
367 363 | }
|
368 364 | }
|
369 365 | impl
|
370 366 | ::aws_smithy_http_server::response::IntoResponse<
|
371 367 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
372 368 | > for crate::output::QueryParamsTargetingMapOfEnumStringOperationOutput
|
373 369 | {
|
374 370 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
375 371 | match crate::protocol_serde::shape_query_params_targeting_map_of_enum_string_operation::ser_query_params_targeting_map_of_enum_string_operation_http_response(self) {
|
376 372 | Ok(response) => response,
|
377 373 | Err(e) => {
|
378 374 | ::tracing::error!(error = %e, "failed to serialize response");
|
379 375 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
380 376 | }
|
381 377 | }
|
382 378 | }
|
383 379 | }
|
@@ -424,420 +484,479 @@
424 420 | this.inner.as_mut().poll(cx)
|
425 421 | }
|
426 422 | }
|
427 423 |
|
428 424 | impl<B>
|
429 425 | ::aws_smithy_http_server::request::FromRequest<
|
430 426 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
431 427 | B,
|
432 428 | > for crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput
|
433 429 | where
|
434 430 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
435 431 | B: 'static,
|
436 432 |
|
437 433 | B::Data: Send,
|
438 434 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
439 435 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
440 436 | {
|
441 437 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
442 438 | type Future = HttpPrefixHeadersTargetingLengthMapOperationInputFuture;
|
443 439 |
|
444 440 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
445 441 | let fut = async move {
|
446 442 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
447 443 | request.headers(),
|
448 444 | &CONTENT_TYPE_HTTPPREFIXHEADERSTARGETINGLENGTHMAPOPERATION,
|
449 445 | ) {
|
450 446 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
451 447 | }
|
452 448 | crate::protocol_serde::shape_http_prefix_headers_targeting_length_map_operation::de_http_prefix_headers_targeting_length_map_operation_http_request(request)
|
453 449 | .await
|
454 - | .map_err(Into::into)
|
455 450 | };
|
456 451 | use ::futures_util::future::TryFutureExt;
|
457 452 | let fut = fut.map_err(
|
458 453 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
459 454 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
460 455 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
461 456 | e,
|
462 457 | )
|
463 458 | },
|
464 459 | );
|
465 460 | HttpPrefixHeadersTargetingLengthMapOperationInputFuture {
|
466 461 | inner: Box::pin(fut),
|
467 462 | }
|
468 463 | }
|
469 464 | }
|
470 465 | impl
|
471 466 | ::aws_smithy_http_server::response::IntoResponse<
|
472 467 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
473 468 | > for crate::output::HttpPrefixHeadersTargetingLengthMapOperationOutput
|
474 469 | {
|
475 470 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
476 471 | match crate::protocol_serde::shape_http_prefix_headers_targeting_length_map_operation::ser_http_prefix_headers_targeting_length_map_operation_http_response(self) {
|
477 472 | Ok(response) => response,
|
478 473 | Err(e) => {
|
479 474 | ::tracing::error!(error = %e, "failed to serialize response");
|
480 475 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
481 476 | }
|
482 477 | }
|
483 478 | }
|
484 479 | }
|
@@ -527,522 +587,581 @@
527 522 | this.inner.as_mut().poll(cx)
|
528 523 | }
|
529 524 | }
|
530 525 |
|
531 526 | impl<B>
|
532 527 | ::aws_smithy_http_server::request::FromRequest<
|
533 528 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
534 529 | B,
|
535 530 | > for crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
536 531 | where
|
537 532 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
538 533 | B: 'static,
|
539 534 |
|
540 535 | B::Data: Send,
|
541 536 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
542 537 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
543 538 | {
|
544 539 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
545 540 | type Future = QueryParamsTargetingMapOfListOfLengthPatternStringOperationInputFuture;
|
546 541 |
|
547 542 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
548 543 | let fut = async move {
|
549 544 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
550 545 | request.headers(),
|
551 546 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFLISTOFLENGTHPATTERNSTRINGOPERATION,
|
552 547 | ) {
|
553 548 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
554 549 | }
|
555 550 | crate::protocol_serde::shape_query_params_targeting_map_of_list_of_length_pattern_string_operation::de_query_params_targeting_map_of_list_of_length_pattern_string_operation_http_request(request)
|
556 551 | .await
|
557 - | .map_err(Into::into)
|
558 552 | };
|
559 553 | use ::futures_util::future::TryFutureExt;
|
560 554 | let fut = fut.map_err(
|
561 555 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
562 556 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
563 557 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
564 558 | e,
|
565 559 | )
|
566 560 | },
|
567 561 | );
|
568 562 | QueryParamsTargetingMapOfListOfLengthPatternStringOperationInputFuture {
|
569 563 | inner: Box::pin(fut),
|
570 564 | }
|
571 565 | }
|
572 566 | }
|
573 567 | impl
|
574 568 | ::aws_smithy_http_server::response::IntoResponse<
|
575 569 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
576 570 | > for crate::output::QueryParamsTargetingMapOfListOfLengthPatternStringOperationOutput
|
577 571 | {
|
578 572 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
579 573 | match crate::protocol_serde::shape_query_params_targeting_map_of_list_of_length_pattern_string_operation::ser_query_params_targeting_map_of_list_of_length_pattern_string_operation_http_response(self) {
|
580 574 | Ok(response) => response,
|
581 575 | Err(e) => {
|
582 576 | ::tracing::error!(error = %e, "failed to serialize response");
|
583 577 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
584 578 | }
|
585 579 | }
|
586 580 | }
|
587 581 | }
|
@@ -628,622 +688,681 @@
628 622 | this.inner.as_mut().poll(cx)
|
629 623 | }
|
630 624 | }
|
631 625 |
|
632 626 | impl<B>
|
633 627 | ::aws_smithy_http_server::request::FromRequest<
|
634 628 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
635 629 | B,
|
636 630 | > for crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput
|
637 631 | where
|
638 632 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
639 633 | B: 'static,
|
640 634 |
|
641 635 | B::Data: Send,
|
642 636 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
643 637 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
644 638 | {
|
645 639 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
646 640 | type Future = QueryParamsTargetingMapOfLengthPatternStringOperationInputFuture;
|
647 641 |
|
648 642 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
649 643 | let fut = async move {
|
650 644 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
651 645 | request.headers(),
|
652 646 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFLENGTHPATTERNSTRINGOPERATION,
|
653 647 | ) {
|
654 648 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
655 649 | }
|
656 650 | crate::protocol_serde::shape_query_params_targeting_map_of_length_pattern_string_operation::de_query_params_targeting_map_of_length_pattern_string_operation_http_request(request)
|
657 651 | .await
|
658 - | .map_err(Into::into)
|
659 652 | };
|
660 653 | use ::futures_util::future::TryFutureExt;
|
661 654 | let fut = fut.map_err(
|
662 655 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
663 656 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
664 657 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
665 658 | e,
|
666 659 | )
|
667 660 | },
|
668 661 | );
|
669 662 | QueryParamsTargetingMapOfLengthPatternStringOperationInputFuture {
|
670 663 | inner: Box::pin(fut),
|
671 664 | }
|
672 665 | }
|
673 666 | }
|
674 667 | impl
|
675 668 | ::aws_smithy_http_server::response::IntoResponse<
|
676 669 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
677 670 | > for crate::output::QueryParamsTargetingMapOfLengthPatternStringOperationOutput
|
678 671 | {
|
679 672 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
680 673 | match crate::protocol_serde::shape_query_params_targeting_map_of_length_pattern_string_operation::ser_query_params_targeting_map_of_length_pattern_string_operation_http_response(self) {
|
681 674 | Ok(response) => response,
|
682 675 | Err(e) => {
|
683 676 | ::tracing::error!(error = %e, "failed to serialize response");
|
684 677 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
685 678 | }
|
686 679 | }
|
687 680 | }
|
688 681 | }
|
@@ -729,722 +789,781 @@
729 722 | this.inner.as_mut().poll(cx)
|
730 723 | }
|
731 724 | }
|
732 725 |
|
733 726 | impl<B>
|
734 727 | ::aws_smithy_http_server::request::FromRequest<
|
735 728 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
736 729 | B,
|
737 730 | > for crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput
|
738 731 | where
|
739 732 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
740 733 | B: 'static,
|
741 734 |
|
742 735 | B::Data: Send,
|
743 736 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
744 737 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
745 738 | {
|
746 739 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
747 740 | type Future = QueryParamsTargetingMapOfListOfPatternStringOperationInputFuture;
|
748 741 |
|
749 742 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
750 743 | let fut = async move {
|
751 744 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
752 745 | request.headers(),
|
753 746 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFLISTOFPATTERNSTRINGOPERATION,
|
754 747 | ) {
|
755 748 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
756 749 | }
|
757 750 | crate::protocol_serde::shape_query_params_targeting_map_of_list_of_pattern_string_operation::de_query_params_targeting_map_of_list_of_pattern_string_operation_http_request(request)
|
758 751 | .await
|
759 - | .map_err(Into::into)
|
760 752 | };
|
761 753 | use ::futures_util::future::TryFutureExt;
|
762 754 | let fut = fut.map_err(
|
763 755 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
764 756 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
765 757 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
766 758 | e,
|
767 759 | )
|
768 760 | },
|
769 761 | );
|
770 762 | QueryParamsTargetingMapOfListOfPatternStringOperationInputFuture {
|
771 763 | inner: Box::pin(fut),
|
772 764 | }
|
773 765 | }
|
774 766 | }
|
775 767 | impl
|
776 768 | ::aws_smithy_http_server::response::IntoResponse<
|
777 769 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
778 770 | > for crate::output::QueryParamsTargetingMapOfListOfPatternStringOperationOutput
|
779 771 | {
|
780 772 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
781 773 | match crate::protocol_serde::shape_query_params_targeting_map_of_list_of_pattern_string_operation::ser_query_params_targeting_map_of_list_of_pattern_string_operation_http_response(self) {
|
782 774 | Ok(response) => response,
|
783 775 | Err(e) => {
|
784 776 | ::tracing::error!(error = %e, "failed to serialize response");
|
785 777 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
786 778 | }
|
787 779 | }
|
788 780 | }
|
789 781 | }
|
@@ -830,822 +890,881 @@
830 822 | this.inner.as_mut().poll(cx)
|
831 823 | }
|
832 824 | }
|
833 825 |
|
834 826 | impl<B>
|
835 827 | ::aws_smithy_http_server::request::FromRequest<
|
836 828 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
837 829 | B,
|
838 830 | > for crate::input::QueryParamsTargetingMapOfPatternStringOperationInput
|
839 831 | where
|
840 832 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
841 833 | B: 'static,
|
842 834 |
|
843 835 | B::Data: Send,
|
844 836 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
845 837 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
846 838 | {
|
847 839 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
848 840 | type Future = QueryParamsTargetingMapOfPatternStringOperationInputFuture;
|
849 841 |
|
850 842 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
851 843 | let fut = async move {
|
852 844 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
853 845 | request.headers(),
|
854 846 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFPATTERNSTRINGOPERATION,
|
855 847 | ) {
|
856 848 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
857 849 | }
|
858 850 | crate::protocol_serde::shape_query_params_targeting_map_of_pattern_string_operation::de_query_params_targeting_map_of_pattern_string_operation_http_request(request)
|
859 851 | .await
|
860 - | .map_err(Into::into)
|
861 852 | };
|
862 853 | use ::futures_util::future::TryFutureExt;
|
863 854 | let fut = fut.map_err(
|
864 855 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
865 856 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
866 857 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
867 858 | e,
|
868 859 | )
|
869 860 | },
|
870 861 | );
|
871 862 | QueryParamsTargetingMapOfPatternStringOperationInputFuture {
|
872 863 | inner: Box::pin(fut),
|
873 864 | }
|
874 865 | }
|
875 866 | }
|
876 867 | impl
|
877 868 | ::aws_smithy_http_server::response::IntoResponse<
|
878 869 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
879 870 | > for crate::output::QueryParamsTargetingMapOfPatternStringOperationOutput
|
880 871 | {
|
881 872 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
882 873 | match crate::protocol_serde::shape_query_params_targeting_map_of_pattern_string_operation::ser_query_params_targeting_map_of_pattern_string_operation_http_response(self) {
|
883 874 | Ok(response) => response,
|
884 875 | Err(e) => {
|
885 876 | ::tracing::error!(error = %e, "failed to serialize response");
|
886 877 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
887 878 | }
|
888 879 | }
|
889 880 | }
|
890 881 | }
|
@@ -931,922 +991,981 @@
931 922 | this.inner.as_mut().poll(cx)
|
932 923 | }
|
933 924 | }
|
934 925 |
|
935 926 | impl<B>
|
936 927 | ::aws_smithy_http_server::request::FromRequest<
|
937 928 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
938 929 | B,
|
939 930 | > for crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput
|
940 931 | where
|
941 932 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
942 933 | B: 'static,
|
943 934 |
|
944 935 | B::Data: Send,
|
945 936 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
946 937 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
947 938 | {
|
948 939 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
949 940 | type Future = QueryParamsTargetingMapOfListOfEnumStringOperationInputFuture;
|
950 941 |
|
951 942 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
952 943 | let fut = async move {
|
953 944 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
954 945 | request.headers(),
|
955 946 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFLISTOFENUMSTRINGOPERATION,
|
956 947 | ) {
|
957 948 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
958 949 | }
|
959 950 | crate::protocol_serde::shape_query_params_targeting_map_of_list_of_enum_string_operation::de_query_params_targeting_map_of_list_of_enum_string_operation_http_request(request)
|
960 951 | .await
|
961 - | .map_err(Into::into)
|
962 952 | };
|
963 953 | use ::futures_util::future::TryFutureExt;
|
964 954 | let fut = fut.map_err(
|
965 955 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
966 956 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
967 957 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
968 958 | e,
|
969 959 | )
|
970 960 | },
|
971 961 | );
|
972 962 | QueryParamsTargetingMapOfListOfEnumStringOperationInputFuture {
|
973 963 | inner: Box::pin(fut),
|
974 964 | }
|
975 965 | }
|
976 966 | }
|
977 967 | impl
|
978 968 | ::aws_smithy_http_server::response::IntoResponse<
|
979 969 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
980 970 | > for crate::output::QueryParamsTargetingMapOfListOfEnumStringOperationOutput
|
981 971 | {
|
982 972 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
983 973 | match crate::protocol_serde::shape_query_params_targeting_map_of_list_of_enum_string_operation::ser_query_params_targeting_map_of_list_of_enum_string_operation_http_response(self) {
|
984 974 | Ok(response) => response,
|
985 975 | Err(e) => {
|
986 976 | ::tracing::error!(error = %e, "failed to serialize response");
|
987 977 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
988 978 | }
|
989 979 | }
|
990 980 | }
|
991 981 | }
|
@@ -1034,1024 +1094,1083 @@
1034 1024 | this.inner.as_mut().poll(cx)
|
1035 1025 | }
|
1036 1026 | }
|
1037 1027 |
|
1038 1028 | impl<B>
|
1039 1029 | ::aws_smithy_http_server::request::FromRequest<
|
1040 1030 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1041 1031 | B,
|
1042 1032 | > for crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
1043 1033 | where
|
1044 1034 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1045 1035 | B: 'static,
|
1046 1036 |
|
1047 1037 | B::Data: Send,
|
1048 1038 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1049 1039 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1050 1040 | {
|
1051 1041 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1052 1042 | type Future = QueryParamsTargetingMapOfLengthListOfPatternStringOperationInputFuture;
|
1053 1043 |
|
1054 1044 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1055 1045 | let fut = async move {
|
1056 1046 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1057 1047 | request.headers(),
|
1058 1048 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFLENGTHLISTOFPATTERNSTRINGOPERATION,
|
1059 1049 | ) {
|
1060 1050 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1061 1051 | }
|
1062 1052 | crate::protocol_serde::shape_query_params_targeting_map_of_length_list_of_pattern_string_operation::de_query_params_targeting_map_of_length_list_of_pattern_string_operation_http_request(request)
|
1063 1053 | .await
|
1064 - | .map_err(Into::into)
|
1065 1054 | };
|
1066 1055 | use ::futures_util::future::TryFutureExt;
|
1067 1056 | let fut = fut.map_err(
|
1068 1057 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1069 1058 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1070 1059 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1071 1060 | e,
|
1072 1061 | )
|
1073 1062 | },
|
1074 1063 | );
|
1075 1064 | QueryParamsTargetingMapOfLengthListOfPatternStringOperationInputFuture {
|
1076 1065 | inner: Box::pin(fut),
|
1077 1066 | }
|
1078 1067 | }
|
1079 1068 | }
|
1080 1069 | impl
|
1081 1070 | ::aws_smithy_http_server::response::IntoResponse<
|
1082 1071 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1083 1072 | > for crate::output::QueryParamsTargetingMapOfLengthListOfPatternStringOperationOutput
|
1084 1073 | {
|
1085 1074 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1086 1075 | match crate::protocol_serde::shape_query_params_targeting_map_of_length_list_of_pattern_string_operation::ser_query_params_targeting_map_of_length_list_of_pattern_string_operation_http_response(self) {
|
1087 1076 | Ok(response) => response,
|
1088 1077 | Err(e) => {
|
1089 1078 | ::tracing::error!(error = %e, "failed to serialize response");
|
1090 1079 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1091 1080 | }
|
1092 1081 | }
|
1093 1082 | }
|
1094 1083 | }
|
@@ -1135,1124 +1195,1183 @@
1135 1124 | this.inner.as_mut().poll(cx)
|
1136 1125 | }
|
1137 1126 | }
|
1138 1127 |
|
1139 1128 | impl<B>
|
1140 1129 | ::aws_smithy_http_server::request::FromRequest<
|
1141 1130 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1142 1131 | B,
|
1143 1132 | > for crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput
|
1144 1133 | where
|
1145 1134 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1146 1135 | B: 'static,
|
1147 1136 |
|
1148 1137 | B::Data: Send,
|
1149 1138 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1150 1139 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1151 1140 | {
|
1152 1141 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1153 1142 | type Future = QueryParamsTargetingMapOfSetOfLengthStringOperationInputFuture;
|
1154 1143 |
|
1155 1144 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1156 1145 | let fut = async move {
|
1157 1146 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1158 1147 | request.headers(),
|
1159 1148 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFSETOFLENGTHSTRINGOPERATION,
|
1160 1149 | ) {
|
1161 1150 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1162 1151 | }
|
1163 1152 | crate::protocol_serde::shape_query_params_targeting_map_of_set_of_length_string_operation::de_query_params_targeting_map_of_set_of_length_string_operation_http_request(request)
|
1164 1153 | .await
|
1165 - | .map_err(Into::into)
|
1166 1154 | };
|
1167 1155 | use ::futures_util::future::TryFutureExt;
|
1168 1156 | let fut = fut.map_err(
|
1169 1157 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1170 1158 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1171 1159 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1172 1160 | e,
|
1173 1161 | )
|
1174 1162 | },
|
1175 1163 | );
|
1176 1164 | QueryParamsTargetingMapOfSetOfLengthStringOperationInputFuture {
|
1177 1165 | inner: Box::pin(fut),
|
1178 1166 | }
|
1179 1167 | }
|
1180 1168 | }
|
1181 1169 | impl
|
1182 1170 | ::aws_smithy_http_server::response::IntoResponse<
|
1183 1171 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1184 1172 | > for crate::output::QueryParamsTargetingMapOfSetOfLengthStringOperationOutput
|
1185 1173 | {
|
1186 1174 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1187 1175 | match crate::protocol_serde::shape_query_params_targeting_map_of_set_of_length_string_operation::ser_query_params_targeting_map_of_set_of_length_string_operation_http_response(self) {
|
1188 1176 | Ok(response) => response,
|
1189 1177 | Err(e) => {
|
1190 1178 | ::tracing::error!(error = %e, "failed to serialize response");
|
1191 1179 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1192 1180 | }
|
1193 1181 | }
|
1194 1182 | }
|
1195 1183 | }
|
@@ -1236,1224 +1296,1283 @@
1236 1224 | this.inner.as_mut().poll(cx)
|
1237 1225 | }
|
1238 1226 | }
|
1239 1227 |
|
1240 1228 | impl<B>
|
1241 1229 | ::aws_smithy_http_server::request::FromRequest<
|
1242 1230 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1243 1231 | B,
|
1244 1232 | > for crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput
|
1245 1233 | where
|
1246 1234 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1247 1235 | B: 'static,
|
1248 1236 |
|
1249 1237 | B::Data: Send,
|
1250 1238 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1251 1239 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1252 1240 | {
|
1253 1241 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1254 1242 | type Future = QueryParamsTargetingMapOfListOfLengthStringOperationInputFuture;
|
1255 1243 |
|
1256 1244 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1257 1245 | let fut = async move {
|
1258 1246 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1259 1247 | request.headers(),
|
1260 1248 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFLISTOFLENGTHSTRINGOPERATION,
|
1261 1249 | ) {
|
1262 1250 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1263 1251 | }
|
1264 1252 | crate::protocol_serde::shape_query_params_targeting_map_of_list_of_length_string_operation::de_query_params_targeting_map_of_list_of_length_string_operation_http_request(request)
|
1265 1253 | .await
|
1266 - | .map_err(Into::into)
|
1267 1254 | };
|
1268 1255 | use ::futures_util::future::TryFutureExt;
|
1269 1256 | let fut = fut.map_err(
|
1270 1257 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1271 1258 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1272 1259 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1273 1260 | e,
|
1274 1261 | )
|
1275 1262 | },
|
1276 1263 | );
|
1277 1264 | QueryParamsTargetingMapOfListOfLengthStringOperationInputFuture {
|
1278 1265 | inner: Box::pin(fut),
|
1279 1266 | }
|
1280 1267 | }
|
1281 1268 | }
|
1282 1269 | impl
|
1283 1270 | ::aws_smithy_http_server::response::IntoResponse<
|
1284 1271 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1285 1272 | > for crate::output::QueryParamsTargetingMapOfListOfLengthStringOperationOutput
|
1286 1273 | {
|
1287 1274 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1288 1275 | match crate::protocol_serde::shape_query_params_targeting_map_of_list_of_length_string_operation::ser_query_params_targeting_map_of_list_of_length_string_operation_http_response(self) {
|
1289 1276 | Ok(response) => response,
|
1290 1277 | Err(e) => {
|
1291 1278 | ::tracing::error!(error = %e, "failed to serialize response");
|
1292 1279 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1293 1280 | }
|
1294 1281 | }
|
1295 1282 | }
|
1296 1283 | }
|
@@ -1337,1324 +1397,1383 @@
1337 1324 | this.inner.as_mut().poll(cx)
|
1338 1325 | }
|
1339 1326 | }
|
1340 1327 |
|
1341 1328 | impl<B>
|
1342 1329 | ::aws_smithy_http_server::request::FromRequest<
|
1343 1330 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1344 1331 | B,
|
1345 1332 | > for crate::input::QueryParamsTargetingMapOfLengthStringOperationInput
|
1346 1333 | where
|
1347 1334 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1348 1335 | B: 'static,
|
1349 1336 |
|
1350 1337 | B::Data: Send,
|
1351 1338 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1352 1339 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1353 1340 | {
|
1354 1341 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1355 1342 | type Future = QueryParamsTargetingMapOfLengthStringOperationInputFuture;
|
1356 1343 |
|
1357 1344 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1358 1345 | let fut = async move {
|
1359 1346 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1360 1347 | request.headers(),
|
1361 1348 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFLENGTHSTRINGOPERATION,
|
1362 1349 | ) {
|
1363 1350 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1364 1351 | }
|
1365 1352 | crate::protocol_serde::shape_query_params_targeting_map_of_length_string_operation::de_query_params_targeting_map_of_length_string_operation_http_request(request)
|
1366 1353 | .await
|
1367 - | .map_err(Into::into)
|
1368 1354 | };
|
1369 1355 | use ::futures_util::future::TryFutureExt;
|
1370 1356 | let fut = fut.map_err(
|
1371 1357 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1372 1358 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1373 1359 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1374 1360 | e,
|
1375 1361 | )
|
1376 1362 | },
|
1377 1363 | );
|
1378 1364 | QueryParamsTargetingMapOfLengthStringOperationInputFuture {
|
1379 1365 | inner: Box::pin(fut),
|
1380 1366 | }
|
1381 1367 | }
|
1382 1368 | }
|
1383 1369 | impl
|
1384 1370 | ::aws_smithy_http_server::response::IntoResponse<
|
1385 1371 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1386 1372 | > for crate::output::QueryParamsTargetingMapOfLengthStringOperationOutput
|
1387 1373 | {
|
1388 1374 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1389 1375 | match crate::protocol_serde::shape_query_params_targeting_map_of_length_string_operation::ser_query_params_targeting_map_of_length_string_operation_http_response(self) {
|
1390 1376 | Ok(response) => response,
|
1391 1377 | Err(e) => {
|
1392 1378 | ::tracing::error!(error = %e, "failed to serialize response");
|
1393 1379 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1394 1380 | }
|
1395 1381 | }
|
1396 1382 | }
|
1397 1383 | }
|
@@ -1437,1423 +1497,1482 @@
1437 1423 | this.inner.as_mut().poll(cx)
|
1438 1424 | }
|
1439 1425 | }
|
1440 1426 |
|
1441 1427 | impl<B>
|
1442 1428 | ::aws_smithy_http_server::request::FromRequest<
|
1443 1429 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1444 1430 | B,
|
1445 1431 | > for crate::input::QueryParamsTargetingLengthMapOperationInput
|
1446 1432 | where
|
1447 1433 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1448 1434 | B: 'static,
|
1449 1435 |
|
1450 1436 | B::Data: Send,
|
1451 1437 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1452 1438 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1453 1439 | {
|
1454 1440 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1455 1441 | type Future = QueryParamsTargetingLengthMapOperationInputFuture;
|
1456 1442 |
|
1457 1443 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1458 1444 | let fut = async move {
|
1459 1445 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1460 1446 | request.headers(),
|
1461 1447 | &CONTENT_TYPE_QUERYPARAMSTARGETINGLENGTHMAPOPERATION,
|
1462 1448 | ) {
|
1463 1449 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1464 1450 | }
|
1465 1451 | crate::protocol_serde::shape_query_params_targeting_length_map_operation::de_query_params_targeting_length_map_operation_http_request(request)
|
1466 1452 | .await
|
1467 - | .map_err(Into::into)
|
1468 1453 | };
|
1469 1454 | use ::futures_util::future::TryFutureExt;
|
1470 1455 | let fut = fut.map_err(
|
1471 1456 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1472 1457 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1473 1458 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1474 1459 | e,
|
1475 1460 | )
|
1476 1461 | },
|
1477 1462 | );
|
1478 1463 | QueryParamsTargetingLengthMapOperationInputFuture {
|
1479 1464 | inner: Box::pin(fut),
|
1480 1465 | }
|
1481 1466 | }
|
1482 1467 | }
|
1483 1468 | impl
|
1484 1469 | ::aws_smithy_http_server::response::IntoResponse<
|
1485 1470 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1486 1471 | > for crate::output::QueryParamsTargetingLengthMapOperationOutput
|
1487 1472 | {
|
1488 1473 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1489 1474 | match crate::protocol_serde::shape_query_params_targeting_length_map_operation::ser_query_params_targeting_length_map_operation_http_response(self) {
|
1490 1475 | Ok(response) => response,
|
1491 1476 | Err(e) => {
|
1492 1477 | ::tracing::error!(error = %e, "failed to serialize response");
|
1493 1478 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1494 1479 | }
|
1495 1480 | }
|
1496 1481 | }
|
1497 1482 | }
|
@@ -1537,1522 +1597,1581 @@
1537 1522 | this.inner.as_mut().poll(cx)
|
1538 1523 | }
|
1539 1524 | }
|
1540 1525 |
|
1541 1526 | impl<B>
|
1542 1527 | ::aws_smithy_http_server::request::FromRequest<
|
1543 1528 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1544 1529 | B,
|
1545 1530 | > for crate::input::ConstrainedRecursiveShapesOperationInput
|
1546 1531 | where
|
1547 1532 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1548 1533 | B: 'static,
|
1549 1534 |
|
1550 1535 | B::Data: Send,
|
1551 1536 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1552 1537 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1553 1538 | {
|
1554 1539 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1555 1540 | type Future = ConstrainedRecursiveShapesOperationInputFuture;
|
1556 1541 |
|
1557 1542 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1558 1543 | let fut = async move {
|
1559 1544 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1560 1545 | request.headers(),
|
1561 1546 | &CONTENT_TYPE_CONSTRAINEDRECURSIVESHAPESOPERATION,
|
1562 1547 | ) {
|
1563 1548 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1564 1549 | }
|
1565 1550 | crate::protocol_serde::shape_constrained_recursive_shapes_operation::de_constrained_recursive_shapes_operation_http_request(request)
|
1566 1551 | .await
|
1567 - | .map_err(Into::into)
|
1568 1552 | };
|
1569 1553 | use ::futures_util::future::TryFutureExt;
|
1570 1554 | let fut = fut.map_err(
|
1571 1555 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1572 1556 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1573 1557 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1574 1558 | e,
|
1575 1559 | )
|
1576 1560 | },
|
1577 1561 | );
|
1578 1562 | ConstrainedRecursiveShapesOperationInputFuture {
|
1579 1563 | inner: Box::pin(fut),
|
1580 1564 | }
|
1581 1565 | }
|
1582 1566 | }
|
1583 1567 | impl
|
1584 1568 | ::aws_smithy_http_server::response::IntoResponse<
|
1585 1569 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1586 1570 | > for crate::output::ConstrainedRecursiveShapesOperationOutput
|
1587 1571 | {
|
1588 1572 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1589 1573 | match crate::protocol_serde::shape_constrained_recursive_shapes_operation::ser_constrained_recursive_shapes_operation_http_response(self) {
|
1590 1574 | Ok(response) => response,
|
1591 1575 | Err(e) => {
|
1592 1576 | ::tracing::error!(error = %e, "failed to serialize response");
|
1593 1577 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1594 1578 | }
|
1595 1579 | }
|
1596 1580 | }
|
1597 1581 | }
|
@@ -1638,1622 +1698,1681 @@
1638 1622 | this.inner.as_mut().poll(cx)
|
1639 1623 | }
|
1640 1624 | }
|
1641 1625 |
|
1642 1626 | impl<B>
|
1643 1627 | ::aws_smithy_http_server::request::FromRequest<
|
1644 1628 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1645 1629 | B,
|
1646 1630 | > for crate::input::ConstrainedHttpPayloadBoundShapeOperationInput
|
1647 1631 | where
|
1648 1632 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1649 1633 | B: 'static,
|
1650 1634 |
|
1651 1635 | B::Data: Send,
|
1652 1636 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1653 1637 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1654 1638 | {
|
1655 1639 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1656 1640 | type Future = ConstrainedHttpPayloadBoundShapeOperationInputFuture;
|
1657 1641 |
|
1658 1642 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1659 1643 | let fut = async move {
|
1660 1644 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1661 1645 | request.headers(),
|
1662 1646 | &CONTENT_TYPE_CONSTRAINEDHTTPPAYLOADBOUNDSHAPEOPERATION,
|
1663 1647 | ) {
|
1664 1648 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1665 1649 | }
|
1666 1650 | crate::protocol_serde::shape_constrained_http_payload_bound_shape_operation::de_constrained_http_payload_bound_shape_operation_http_request(request)
|
1667 1651 | .await
|
1668 - | .map_err(Into::into)
|
1669 1652 | };
|
1670 1653 | use ::futures_util::future::TryFutureExt;
|
1671 1654 | let fut = fut.map_err(
|
1672 1655 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1673 1656 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1674 1657 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1675 1658 | e,
|
1676 1659 | )
|
1677 1660 | },
|
1678 1661 | );
|
1679 1662 | ConstrainedHttpPayloadBoundShapeOperationInputFuture {
|
1680 1663 | inner: Box::pin(fut),
|
1681 1664 | }
|
1682 1665 | }
|
1683 1666 | }
|
1684 1667 | impl
|
1685 1668 | ::aws_smithy_http_server::response::IntoResponse<
|
1686 1669 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1687 1670 | > for crate::output::ConstrainedHttpPayloadBoundShapeOperationOutput
|
1688 1671 | {
|
1689 1672 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1690 1673 | match crate::protocol_serde::shape_constrained_http_payload_bound_shape_operation::ser_constrained_http_payload_bound_shape_operation_http_response(self) {
|
1691 1674 | Ok(response) => response,
|
1692 1675 | Err(e) => {
|
1693 1676 | ::tracing::error!(error = %e, "failed to serialize response");
|
1694 1677 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1695 1678 | }
|
1696 1679 | }
|
1697 1680 | }
|
1698 1681 | }
|
@@ -1738,1721 +1798,1780 @@
1738 1721 | this.inner.as_mut().poll(cx)
|
1739 1722 | }
|
1740 1723 | }
|
1741 1724 |
|
1742 1725 | impl<B>
|
1743 1726 | ::aws_smithy_http_server::request::FromRequest<
|
1744 1727 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1745 1728 | B,
|
1746 1729 | > for crate::input::ConstrainedHttpBoundShapesOperationInput
|
1747 1730 | where
|
1748 1731 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1749 1732 | B: 'static,
|
1750 1733 |
|
1751 1734 | B::Data: Send,
|
1752 1735 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1753 1736 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1754 1737 | {
|
1755 1738 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1756 1739 | type Future = ConstrainedHttpBoundShapesOperationInputFuture;
|
1757 1740 |
|
1758 1741 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1759 1742 | let fut = async move {
|
1760 1743 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1761 1744 | request.headers(),
|
1762 1745 | &CONTENT_TYPE_CONSTRAINEDHTTPBOUNDSHAPESOPERATION,
|
1763 1746 | ) {
|
1764 1747 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1765 1748 | }
|
1766 1749 | crate::protocol_serde::shape_constrained_http_bound_shapes_operation::de_constrained_http_bound_shapes_operation_http_request(request)
|
1767 1750 | .await
|
1768 - | .map_err(Into::into)
|
1769 1751 | };
|
1770 1752 | use ::futures_util::future::TryFutureExt;
|
1771 1753 | let fut = fut.map_err(
|
1772 1754 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1773 1755 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1774 1756 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1775 1757 | e,
|
1776 1758 | )
|
1777 1759 | },
|
1778 1760 | );
|
1779 1761 | ConstrainedHttpBoundShapesOperationInputFuture {
|
1780 1762 | inner: Box::pin(fut),
|
1781 1763 | }
|
1782 1764 | }
|
1783 1765 | }
|
1784 1766 | impl
|
1785 1767 | ::aws_smithy_http_server::response::IntoResponse<
|
1786 1768 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1787 1769 | > for crate::output::ConstrainedHttpBoundShapesOperationOutput
|
1788 1770 | {
|
1789 1771 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1790 1772 | match crate::protocol_serde::shape_constrained_http_bound_shapes_operation::ser_constrained_http_bound_shapes_operation_http_response(self) {
|
1791 1773 | Ok(response) => response,
|
1792 1774 | Err(e) => {
|
1793 1775 | ::tracing::error!(error = %e, "failed to serialize response");
|
1794 1776 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1795 1777 | }
|
1796 1778 | }
|
1797 1779 | }
|
1798 1780 | }
|
@@ -1838,1820 +1898,1879 @@
1838 1820 | this.inner.as_mut().poll(cx)
|
1839 1821 | }
|
1840 1822 | }
|
1841 1823 |
|
1842 1824 | impl<B>
|
1843 1825 | ::aws_smithy_http_server::request::FromRequest<
|
1844 1826 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1845 1827 | B,
|
1846 1828 | > for crate::input::ConstrainedShapesOnlyInOutputOperationInput
|
1847 1829 | where
|
1848 1830 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1849 1831 | B: 'static,
|
1850 1832 |
|
1851 1833 | B::Data: Send,
|
1852 1834 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1853 1835 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1854 1836 | {
|
1855 1837 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1856 1838 | type Future = ConstrainedShapesOnlyInOutputOperationInputFuture;
|
1857 1839 |
|
1858 1840 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1859 1841 | let fut = async move {
|
1860 1842 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1861 1843 | request.headers(),
|
1862 1844 | &CONTENT_TYPE_CONSTRAINEDSHAPESONLYINOUTPUTOPERATION,
|
1863 1845 | ) {
|
1864 1846 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1865 1847 | }
|
1866 1848 | crate::protocol_serde::shape_constrained_shapes_only_in_output_operation::de_constrained_shapes_only_in_output_operation_http_request(request)
|
1867 1849 | .await
|
1868 - | .map_err(Into::into)
|
1869 1850 | };
|
1870 1851 | use ::futures_util::future::TryFutureExt;
|
1871 1852 | let fut = fut.map_err(
|
1872 1853 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1873 1854 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1874 1855 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1875 1856 | e,
|
1876 1857 | )
|
1877 1858 | },
|
1878 1859 | );
|
1879 1860 | ConstrainedShapesOnlyInOutputOperationInputFuture {
|
1880 1861 | inner: Box::pin(fut),
|
1881 1862 | }
|
1882 1863 | }
|
1883 1864 | }
|
1884 1865 | impl
|
1885 1866 | ::aws_smithy_http_server::response::IntoResponse<
|
1886 1867 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1887 1868 | > for crate::output::ConstrainedShapesOnlyInOutputOperationOutput
|
1888 1869 | {
|
1889 1870 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1890 1871 | match crate::protocol_serde::shape_constrained_shapes_only_in_output_operation::ser_constrained_shapes_only_in_output_operation_http_response(self) {
|
1891 1872 | Ok(response) => response,
|
1892 1873 | Err(e) => {
|
1893 1874 | ::tracing::error!(error = %e, "failed to serialize response");
|
1894 1875 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1895 1876 | }
|
1896 1877 | }
|
1897 1878 | }
|
1898 1879 | }
|
@@ -1938,1919 +1998,1978 @@
1938 1919 | this.inner.as_mut().poll(cx)
|
1939 1920 | }
|
1940 1921 | }
|
1941 1922 |
|
1942 1923 | impl<B>
|
1943 1924 | ::aws_smithy_http_server::request::FromRequest<
|
1944 1925 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1945 1926 | B,
|
1946 1927 | > for crate::input::ConstrainedShapesOperationInput
|
1947 1928 | where
|
1948 1929 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1949 1930 | B: 'static,
|
1950 1931 |
|
1951 1932 | B::Data: Send,
|
1952 1933 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1953 1934 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1954 1935 | {
|
1955 1936 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1956 1937 | type Future = ConstrainedShapesOperationInputFuture;
|
1957 1938 |
|
1958 1939 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1959 1940 | let fut = async move {
|
1960 1941 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1961 1942 | request.headers(),
|
1962 1943 | &CONTENT_TYPE_CONSTRAINEDSHAPESOPERATION,
|
1963 1944 | ) {
|
1964 1945 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1965 1946 | }
|
1966 1947 | crate::protocol_serde::shape_constrained_shapes_operation::de_constrained_shapes_operation_http_request(request)
|
1967 1948 | .await
|
1968 - | .map_err(Into::into)
|
1969 1949 | };
|
1970 1950 | use ::futures_util::future::TryFutureExt;
|
1971 1951 | let fut = fut.map_err(
|
1972 1952 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1973 1953 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1974 1954 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1975 1955 | e,
|
1976 1956 | )
|
1977 1957 | },
|
1978 1958 | );
|
1979 1959 | ConstrainedShapesOperationInputFuture {
|
1980 1960 | inner: Box::pin(fut),
|
1981 1961 | }
|
1982 1962 | }
|
1983 1963 | }
|
1984 1964 | impl
|
1985 1965 | ::aws_smithy_http_server::response::IntoResponse<
|
1986 1966 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1987 1967 | > for crate::output::ConstrainedShapesOperationOutput
|
1988 1968 | {
|
1989 1969 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1990 1970 | match crate::protocol_serde::shape_constrained_shapes_operation::ser_constrained_shapes_operation_http_response(self) {
|
1991 1971 | Ok(response) => response,
|
1992 1972 | Err(e) => {
|
1993 1973 | ::tracing::error!(error = %e, "failed to serialize response");
|
1994 1974 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1995 1975 | }
|
1996 1976 | }
|
1997 1977 | }
|
1998 1978 | }
|
@@ -1788,1788 +1848,1847 @@
1788 1788 | fn __repr__(&self) -> String {
|
1789 1789 | format!("{self:?}")
|
1790 1790 | }
|
1791 1791 | fn __str__(&self) -> String {
|
1792 1792 | format!("{self:?}")
|
1793 1793 | }
|
1794 1794 | }
|
1795 1795 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<ConstrainedShapesOperationOutput> {
|
1796 1796 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1797 1797 | ob.extract::<ConstrainedShapesOperationOutput>()
|
1798 1798 | .map(Box::new)
|
1799 1799 | }
|
1800 1800 | }
|
1801 1801 |
|
1802 1802 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<ConstrainedShapesOperationOutput> {
|
1803 1803 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1804 1804 | (*self).into_py(py)
|
1805 1805 | }
|
1806 1806 | }
|
1807 1807 | impl ConstrainedShapesOperationOutput {
|
1808 1808 | /// Creates a new builder-style object to manufacture [`ConstrainedShapesOperationOutput`](crate::output::ConstrainedShapesOperationOutput).
|
1809 1809 | pub fn builder() -> crate::output::constrained_shapes_operation_output::Builder {
|
1810 1810 | crate::output::constrained_shapes_operation_output::Builder::default()
|
1811 1811 | }
|
1812 1812 | }
|
1813 1813 | /// See [`EventStreamsOperationOutput`](crate::output::EventStreamsOperationOutput).
|
1814 1814 | pub mod event_streams_operation_output {
|
1815 1815 |
|
1816 1816 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1817 1817 | /// Holds one variant for each of the ways the builder can fail.
|
1818 - |
|
1819 1818 | #[allow(clippy::enum_variant_names)]
|
1820 1819 | pub enum ConstraintViolation {
|
1821 1820 | /// `events` was not provided but it is required when building `EventStreamsOperationOutput`.
|
1822 1821 | MissingEvents,
|
1823 1822 | }
|
1824 1823 | impl ::std::fmt::Display for ConstraintViolation {
|
1825 1824 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1826 1825 | match self {
|
1827 1826 | ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `EventStreamsOperationOutput`"),
|
1828 1827 | }
|
1829 1828 | }
|
1830 1829 | }
|
1831 1830 | impl ::std::error::Error for ConstraintViolation {}
|
1832 1831 | impl ::std::convert::TryFrom<Builder> for crate::output::EventStreamsOperationOutput {
|
1833 1832 | type Error = ConstraintViolation;
|
1834 1833 |
|
1835 1834 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1836 1835 | builder.build()
|
1837 1836 | }
|
1838 1837 | }
|
1839 1838 | /// A builder for [`EventStreamsOperationOutput`](crate::output::EventStreamsOperationOutput).
|
1840 1839 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1841 1840 | pub struct Builder {
|
1842 1841 | pub(crate) events: ::std::option::Option<
|
1843 1842 | crate::python_event_stream::EventStreamsOperationOutputEventsEventStreamSender,
|
1844 1843 | >,
|
1845 1844 | }
|
1846 1845 | impl Builder {
|
1847 1846 | #[allow(missing_docs)] // documentation missing in model
|
1848 1847 | pub fn events(
|
@@ -2464,2463 +2524,2522 @@
2464 2463 | }
|
2465 2464 | impl Builder {
|
2466 2465 | #[allow(missing_docs)] // documentation missing in model
|
2467 2466 | pub fn length_map(
|
2468 2467 | mut self,
|
2469 2468 | input: ::std::option::Option<
|
2470 2469 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2471 2470 | >,
|
2472 2471 | ) -> Self {
|
2473 2472 | self.length_map = input;
|
2474 2473 | self
|
2475 2474 | }
|
2476 2475 | /// Consumes the builder and constructs a [`QueryParamsTargetingLengthMapOperationOutput`](crate::output::QueryParamsTargetingLengthMapOperationOutput).
|
2477 2476 | pub fn build(self) -> crate::output::QueryParamsTargetingLengthMapOperationOutput {
|
2478 2477 | self.build_enforcing_required_and_enum_traits()
|
2479 2478 | }
|
2480 2479 | fn build_enforcing_required_and_enum_traits(
|
2481 2480 | self,
|
2482 2481 | ) -> crate::output::QueryParamsTargetingLengthMapOperationOutput {
|
2483 2482 | crate::output::QueryParamsTargetingLengthMapOperationOutput {
|
2484 2483 | length_map: self.length_map,
|
2485 2484 | }
|
2486 2485 | }
|
2487 2486 | }
|
2488 2487 | }
|
2489 2488 | /// See [`ConstrainedRecursiveShapesOperationOutput`](crate::output::ConstrainedRecursiveShapesOperationOutput).
|
2490 2489 | pub mod constrained_recursive_shapes_operation_output {
|
2491 2490 |
|
2492 2491 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2493 2492 | /// Holds one variant for each of the ways the builder can fail.
|
2494 - |
|
2495 2493 | #[allow(clippy::enum_variant_names)]
|
2496 2494 | pub enum ConstraintViolation {
|
2497 2495 | /// `recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationOutput`.
|
2498 2496 | MissingRecursiveList,
|
2499 2497 | }
|
2500 2498 | impl ::std::fmt::Display for ConstraintViolation {
|
2501 2499 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2502 2500 | match self {
|
2503 2501 | ConstraintViolation::MissingRecursiveList => write!(f, "`recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationOutput`"),
|
2504 2502 | }
|
2505 2503 | }
|
2506 2504 | }
|
2507 2505 | impl ::std::error::Error for ConstraintViolation {}
|
2508 2506 | impl ::std::convert::TryFrom<Builder> for crate::output::ConstrainedRecursiveShapesOperationOutput {
|
2509 2507 | type Error = ConstraintViolation;
|
2510 2508 |
|
2511 2509 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2512 2510 | builder.build()
|
2513 2511 | }
|
2514 2512 | }
|
2515 2513 | /// A builder for [`ConstrainedRecursiveShapesOperationOutput`](crate::output::ConstrainedRecursiveShapesOperationOutput).
|
2516 2514 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2517 2515 | pub struct Builder {
|
2518 2516 | pub(crate) nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
2519 2517 | pub(crate) recursive_list:
|
2520 2518 | ::std::option::Option<::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>>,
|
2521 2519 | }
|
2522 2520 | impl Builder {
|
2523 2521 | #[allow(missing_docs)] // documentation missing in model
|
2524 2522 | pub fn nested(
|
@@ -2537,2535 +2597,2594 @@
2537 2535 | self
|
2538 2536 | }
|
2539 2537 | /// Consumes the builder and constructs a [`ConstrainedRecursiveShapesOperationOutput`](crate::output::ConstrainedRecursiveShapesOperationOutput).
|
2540 2538 | ///
|
2541 2539 | /// The builder fails to construct a [`ConstrainedRecursiveShapesOperationOutput`](crate::output::ConstrainedRecursiveShapesOperationOutput) if you do not provide a value for all non-`Option`al members.
|
2542 2540 | ///
|
2543 2541 | pub fn build(
|
2544 2542 | self,
|
2545 2543 | ) -> Result<crate::output::ConstrainedRecursiveShapesOperationOutput, ConstraintViolation>
|
2546 2544 | {
|
2547 2545 | self.build_enforcing_required_and_enum_traits()
|
2548 2546 | }
|
2549 2547 | fn build_enforcing_required_and_enum_traits(
|
2550 2548 | self,
|
2551 2549 | ) -> Result<crate::output::ConstrainedRecursiveShapesOperationOutput, ConstraintViolation>
|
2552 2550 | {
|
2553 2551 | Ok(crate::output::ConstrainedRecursiveShapesOperationOutput {
|
2554 2552 | nested: self.nested,
|
2555 2553 | recursive_list: self
|
2556 2554 | .recursive_list
|
2557 2555 | .ok_or(ConstraintViolation::MissingRecursiveList)?,
|
2558 2556 | })
|
2559 2557 | }
|
2560 2558 | }
|
2561 2559 | }
|
2562 2560 | /// See [`ConstrainedHttpPayloadBoundShapeOperationOutput`](crate::output::ConstrainedHttpPayloadBoundShapeOperationOutput).
|
2563 2561 | pub mod constrained_http_payload_bound_shape_operation_output {
|
2564 2562 |
|
2565 2563 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2566 2564 | /// Holds one variant for each of the ways the builder can fail.
|
2567 - |
|
2568 2565 | #[allow(clippy::enum_variant_names)]
|
2569 2566 | pub enum ConstraintViolation {
|
2570 2567 | /// `http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationOutput`.
|
2571 2568 | MissingHttpPayloadBoundConstrainedShape,
|
2572 2569 | }
|
2573 2570 | impl ::std::fmt::Display for ConstraintViolation {
|
2574 2571 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2575 2572 | match self {
|
2576 2573 | ConstraintViolation::MissingHttpPayloadBoundConstrainedShape => write!(f, "`http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationOutput`"),
|
2577 2574 | }
|
2578 2575 | }
|
2579 2576 | }
|
2580 2577 | impl ::std::error::Error for ConstraintViolation {}
|
2581 2578 | impl ::std::convert::TryFrom<Builder>
|
2582 2579 | for crate::output::ConstrainedHttpPayloadBoundShapeOperationOutput
|
2583 2580 | {
|
2584 2581 | type Error = ConstraintViolation;
|
2585 2582 |
|
2586 2583 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2587 2584 | builder.build()
|
2588 2585 | }
|
2589 2586 | }
|
2590 2587 | /// A builder for [`ConstrainedHttpPayloadBoundShapeOperationOutput`](crate::output::ConstrainedHttpPayloadBoundShapeOperationOutput).
|
2591 2588 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2592 2589 | pub struct Builder {
|
2593 2590 | pub(crate) http_payload_bound_constrained_shape: ::std::option::Option<crate::model::ConA>,
|
2594 2591 | }
|
2595 2592 | impl Builder {
|
2596 2593 | #[allow(missing_docs)] // documentation missing in model
|
2597 2594 | pub fn http_payload_bound_constrained_shape(mut self, input: crate::model::ConA) -> Self {
|
@@ -2604,2601 +2664,2660 @@
2604 2601 | ///
|
2605 2602 | pub fn build(
|
2606 2603 | self,
|
2607 2604 | ) -> Result<
|
2608 2605 | crate::output::ConstrainedHttpPayloadBoundShapeOperationOutput,
|
2609 2606 | ConstraintViolation,
|
2610 2607 | > {
|
2611 2608 | self.build_enforcing_required_and_enum_traits()
|
2612 2609 | }
|
2613 2610 | fn build_enforcing_required_and_enum_traits(
|
2614 2611 | self,
|
2615 2612 | ) -> Result<
|
2616 2613 | crate::output::ConstrainedHttpPayloadBoundShapeOperationOutput,
|
2617 2614 | ConstraintViolation,
|
2618 2615 | > {
|
2619 2616 | Ok(
|
2620 2617 | crate::output::ConstrainedHttpPayloadBoundShapeOperationOutput {
|
2621 2618 | http_payload_bound_constrained_shape: self
|
2622 2619 | .http_payload_bound_constrained_shape
|
2623 2620 | .ok_or(ConstraintViolation::MissingHttpPayloadBoundConstrainedShape)?,
|
2624 2621 | },
|
2625 2622 | )
|
2626 2623 | }
|
2627 2624 | }
|
2628 2625 | }
|
2629 2626 | /// See [`ConstrainedHttpBoundShapesOperationOutput`](crate::output::ConstrainedHttpBoundShapesOperationOutput).
|
2630 2627 | pub mod constrained_http_bound_shapes_operation_output {
|
2631 2628 |
|
2632 2629 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2633 2630 | /// Holds one variant for each of the ways the builder can fail.
|
2634 - |
|
2635 2631 | #[allow(clippy::enum_variant_names)]
|
2636 2632 | pub enum ConstraintViolation {
|
2637 2633 | /// `length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationOutput`.
|
2638 2634 | MissingLengthStringLabel,
|
2639 2635 | /// `enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationOutput`.
|
2640 2636 | MissingEnumStringLabel,
|
2641 2637 | /// `length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationOutput`.
|
2642 2638 | MissingLengthStringHeaderMap,
|
2643 2639 | }
|
2644 2640 | impl ::std::fmt::Display for ConstraintViolation {
|
2645 2641 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2646 2642 | match self {
|
2647 2643 | ConstraintViolation::MissingLengthStringLabel => write!(f, "`length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationOutput`"),
|
2648 2644 | ConstraintViolation::MissingEnumStringLabel => write!(f, "`enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationOutput`"),
|
2649 2645 | ConstraintViolation::MissingLengthStringHeaderMap => write!(f, "`length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationOutput`"),
|
2650 2646 | }
|
2651 2647 | }
|
2652 2648 | }
|
2653 2649 | impl ::std::error::Error for ConstraintViolation {}
|
2654 2650 | impl ::std::convert::TryFrom<Builder> for crate::output::ConstrainedHttpBoundShapesOperationOutput {
|
2655 2651 | type Error = ConstraintViolation;
|
2656 2652 |
|
2657 2653 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2658 2654 | builder.build()
|
2659 2655 | }
|
2660 2656 | }
|
2661 2657 | /// A builder for [`ConstrainedHttpBoundShapesOperationOutput`](crate::output::ConstrainedHttpBoundShapesOperationOutput).
|
2662 2658 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2663 2659 | pub struct Builder {
|
2664 2660 | pub(crate) length_string_label: ::std::option::Option<::std::string::String>,
|
@@ -3120,3116 +3180,3175 @@
3120 3116 | self
|
3121 3117 | }
|
3122 3118 | #[allow(missing_docs)] // documentation missing in model
|
3123 3119 | pub fn union(
|
3124 3120 | mut self,
|
3125 3121 | input: ::std::option::Option<crate::model::ConstrainedUnionInOutput>,
|
3126 3122 | ) -> Self {
|
3127 3123 | self.union = input;
|
3128 3124 | self
|
3129 3125 | }
|
3130 3126 | /// Consumes the builder and constructs a [`ConstrainedShapesOnlyInOutputOperationOutput`](crate::output::ConstrainedShapesOnlyInOutputOperationOutput).
|
3131 3127 | pub fn build(self) -> crate::output::ConstrainedShapesOnlyInOutputOperationOutput {
|
3132 3128 | self.build_enforcing_required_and_enum_traits()
|
3133 3129 | }
|
3134 3130 | fn build_enforcing_required_and_enum_traits(
|
3135 3131 | self,
|
3136 3132 | ) -> crate::output::ConstrainedShapesOnlyInOutputOperationOutput {
|
3137 3133 | crate::output::ConstrainedShapesOnlyInOutputOperationOutput {
|
3138 3134 | list: self.list,
|
3139 3135 | map: self.map,
|
3140 3136 | union: self.union,
|
3141 3137 | }
|
3142 3138 | }
|
3143 3139 | }
|
3144 3140 | }
|
3145 3141 | /// See [`ConstrainedShapesOperationOutput`](crate::output::ConstrainedShapesOperationOutput).
|
3146 3142 | pub mod constrained_shapes_operation_output {
|
3147 3143 |
|
3148 3144 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3149 3145 | /// Holds one variant for each of the ways the builder can fail.
|
3150 - |
|
3151 3146 | #[allow(clippy::enum_variant_names)]
|
3152 3147 | pub enum ConstraintViolation {
|
3153 3148 | /// `con_a` was not provided but it is required when building `ConstrainedShapesOperationOutput`.
|
3154 3149 | MissingConA,
|
3155 3150 | }
|
3156 3151 | impl ::std::fmt::Display for ConstraintViolation {
|
3157 3152 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3158 3153 | match self {
|
3159 3154 | ConstraintViolation::MissingConA => write!(f, "`con_a` was not provided but it is required when building `ConstrainedShapesOperationOutput`"),
|
3160 3155 | }
|
3161 3156 | }
|
3162 3157 | }
|
3163 3158 | impl ::std::error::Error for ConstraintViolation {}
|
3164 3159 | impl ::std::convert::TryFrom<Builder> for crate::output::ConstrainedShapesOperationOutput {
|
3165 3160 | type Error = ConstraintViolation;
|
3166 3161 |
|
3167 3162 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3168 3163 | builder.build()
|
3169 3164 | }
|
3170 3165 | }
|
3171 3166 | /// A builder for [`ConstrainedShapesOperationOutput`](crate::output::ConstrainedShapesOperationOutput).
|
3172 3167 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3173 3168 | pub struct Builder {
|
3174 3169 | pub(crate) con_a: ::std::option::Option<crate::model::ConA>,
|
3175 3170 | }
|
3176 3171 | impl Builder {
|
3177 3172 | #[allow(missing_docs)] // documentation missing in model
|
3178 3173 | pub fn con_a(mut self, input: crate::model::ConA) -> Self {
|
3179 3174 | self.con_a = Some(input);
|
3180 3175 | self
|
@@ -102,102 +178,178 @@
102 102 | ::nom::bytes::complete::tag("/"),
|
103 103 | ::nom::branch::alt::<_, _, ::nom::error::Error<&str>, _>((
|
104 104 | ::nom::bytes::complete::take_until("/"),
|
105 105 | ::nom::combinator::rest,
|
106 106 | )),
|
107 107 | ),
|
108 108 | ::nom::sequence::preceded(
|
109 109 | ::nom::bytes::complete::tag("/"),
|
110 110 | ::nom::branch::alt::<_, _, ::nom::error::Error<&str>, _>((
|
111 111 | ::nom::bytes::complete::take_until("/"),
|
112 112 | ::nom::combinator::rest,
|
113 113 | )),
|
114 114 | ),
|
115 115 | ::nom::sequence::preceded(
|
116 116 | ::nom::bytes::complete::tag("/"),
|
117 117 | ::nom::branch::alt::<_, _, ::nom::error::Error<&str>, _>((
|
118 118 | ::nom::bytes::complete::take_until("/"),
|
119 119 | ::nom::combinator::rest,
|
120 120 | )),
|
121 121 | ),
|
122 122 | ::nom::sequence::preceded(
|
123 123 | ::nom::bytes::complete::tag("/"),
|
124 124 | ::nom::branch::alt::<_, _, ::nom::error::Error<&str>, _>((
|
125 125 | ::nom::bytes::complete::take_until("/"),
|
126 126 | ::nom::combinator::rest,
|
127 127 | )),
|
128 128 | ),
|
129 129 | ))(input_string)?;
|
130 130 | debug_assert_eq!("", input_string);
|
131 131 | input = input.set_range_integer_label(
|
132 - | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_range_integer_label(m1)?
|
133 - | );
|
132 + | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_range_integer_label(m1)?
|
133 + | );
|
134 134 | input = input.set_range_short_label(
|
135 - | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_range_short_label(m2)?
|
136 - | );
|
135 + | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_range_short_label(m2)?
|
136 + | );
|
137 137 | input = input.set_range_long_label(
|
138 - | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_range_long_label(m3)?
|
139 - | );
|
138 + | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_range_long_label(m3)?
|
139 + | );
|
140 140 | input = input.set_range_byte_label(
|
141 - | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_range_byte_label(m4)?
|
142 - | );
|
141 + | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_range_byte_label(m4)?
|
142 + | );
|
143 143 | input = input.set_length_string_label(
|
144 - | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_length_string_label(m5)?
|
145 - | );
|
144 + | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_length_string_label(m5)?
|
145 + | );
|
146 146 | input = input.set_enum_string_label(
|
147 - | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_enum_string_label(m6)?
|
148 - | );
|
147 + | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_enum_string_label(m6)?
|
148 + | );
|
149 149 | let query_string = uri.query().unwrap_or("");
|
150 150 | let pairs = ::form_urlencoded::parse(query_string.as_bytes());
|
151 151 | let mut enum_string_query_seen = false;
|
152 152 | let mut length_string_query_seen = false;
|
153 153 | let mut range_byte_query_seen = false;
|
154 154 | let mut range_integer_query_seen = false;
|
155 155 | let mut range_long_query_seen = false;
|
156 156 | let mut range_short_query_seen = false;
|
157 157 | let mut enum_string_list_query = Vec::new();
|
158 158 | let mut length_list_pattern_string_query = Vec::new();
|
159 159 | let mut length_string_list_query = Vec::new();
|
160 160 | let mut length_string_set_query = Vec::new();
|
161 161 | let mut range_byte_list_query = Vec::new();
|
162 162 | let mut range_byte_set_query = Vec::new();
|
163 163 | let mut range_integer_list_query = Vec::new();
|
164 164 | let mut range_integer_set_query = Vec::new();
|
165 165 | let mut range_long_list_query = Vec::new();
|
166 166 | let mut range_long_set_query = Vec::new();
|
167 167 | let mut range_short_list_query = Vec::new();
|
168 168 | let mut range_short_set_query = Vec::new();
|
169 169 | for (k, v) in pairs {
|
170 170 | if !enum_string_query_seen && k == "enumString" {
|
171 171 | input = input.set_enum_string_query(
|
172 172 | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_enum_string_query(&v)?
|
173 173 | );
|
174 174 | enum_string_query_seen = true;
|
175 175 | }
|
176 176 | if !length_string_query_seen && k == "lengthString" {
|
177 177 | input = input.set_length_string_query(
|
178 178 | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_length_string_query(&v)?
|
@@ -2043,2043 +2103,2102 @@
2043 2043 | }
|
2044 2044 | impl ::std::convert::From<crate::error::InternalServerError>
|
2045 2045 | for crate::error::ConstrainedShapesOperationError
|
2046 2046 | {
|
2047 2047 | fn from(
|
2048 2048 | variant: crate::error::InternalServerError,
|
2049 2049 | ) -> crate::error::ConstrainedShapesOperationError {
|
2050 2050 | Self::InternalServerError(variant)
|
2051 2051 | }
|
2052 2052 | }
|
2053 2053 |
|
2054 2054 | impl ::std::convert::From<::pyo3::PyErr> for crate::error::ConstrainedShapesOperationError {
|
2055 2055 | fn from(variant: ::pyo3::PyErr) -> crate::error::ConstrainedShapesOperationError {
|
2056 2056 | ::pyo3::Python::with_gil(|py| {
|
2057 2057 | let error = variant.value(py);
|
2058 2058 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
2059 2059 | return error.into();
|
2060 2060 | }
|
2061 2061 | crate::error::InternalServerError {
|
2062 2062 | message: error.to_string(),
|
2063 2063 | }
|
2064 2064 | .into()
|
2065 2065 | })
|
2066 2066 | }
|
2067 2067 | }
|
2068 2068 | /// See [`InternalServerError`](crate::error::InternalServerError).
|
2069 2069 | pub mod internal_server_error {
|
2070 2070 |
|
2071 2071 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2072 2072 | /// Holds one variant for each of the ways the builder can fail.
|
2073 - |
|
2074 2073 | #[allow(clippy::enum_variant_names)]
|
2075 2074 | pub enum ConstraintViolation {
|
2076 2075 | /// `message` was not provided but it is required when building `InternalServerError`.
|
2077 2076 | MissingMessage,
|
2078 2077 | }
|
2079 2078 | impl ::std::fmt::Display for ConstraintViolation {
|
2080 2079 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2081 2080 | match self {
|
2082 2081 | ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `InternalServerError`"),
|
2083 2082 | }
|
2084 2083 | }
|
2085 2084 | }
|
2086 2085 | impl ::std::error::Error for ConstraintViolation {}
|
2087 2086 | impl ::std::convert::TryFrom<Builder> for crate::error::InternalServerError {
|
2088 2087 | type Error = ConstraintViolation;
|
2089 2088 |
|
2090 2089 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2091 2090 | builder.build()
|
2092 2091 | }
|
2093 2092 | }
|
2094 2093 | /// A builder for [`InternalServerError`](crate::error::InternalServerError).
|
2095 2094 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2096 2095 | pub struct Builder {
|
2097 2096 | pub(crate) message: ::std::option::Option<::std::string::String>,
|
2098 2097 | }
|
2099 2098 | impl Builder {
|
2100 2099 | #[allow(missing_docs)] // documentation missing in model
|
2101 2100 | pub fn message(mut self, input: ::std::string::String) -> Self {
|
2102 2101 | self.message = Some(input);
|
2103 2102 | self
|
@@ -2162,2161 +2222,2220 @@
2162 2161 | /// A builder for [`EventStreamErrorMessage`](crate::error::EventStreamErrorMessage).
|
2163 2162 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2164 2163 | pub struct Builder {
|
2165 2164 | pub(crate) message_content: ::std::option::Option<::std::string::String>,
|
2166 2165 | }
|
2167 2166 | impl Builder {
|
2168 2167 | #[allow(missing_docs)] // documentation missing in model
|
2169 2168 | pub fn message_content(
|
2170 2169 | mut self,
|
2171 2170 | input: ::std::option::Option<::std::string::String>,
|
2172 2171 | ) -> Self {
|
2173 2172 | self.message_content = input;
|
2174 2173 | self
|
2175 2174 | }
|
2176 2175 | /// Consumes the builder and constructs a [`EventStreamErrorMessage`](crate::error::EventStreamErrorMessage).
|
2177 2176 | pub fn build(self) -> crate::error::EventStreamErrorMessage {
|
2178 2177 | self.build_enforcing_required_and_enum_traits()
|
2179 2178 | }
|
2180 2179 | fn build_enforcing_required_and_enum_traits(self) -> crate::error::EventStreamErrorMessage {
|
2181 2180 | crate::error::EventStreamErrorMessage {
|
2182 2181 | message_content: self.message_content,
|
2183 2182 | }
|
2184 2183 | }
|
2185 2184 | }
|
2186 2185 | }
|
2187 2186 | /// See [`ValidationException`](crate::error::ValidationException).
|
2188 2187 | pub mod validation_exception {
|
2189 2188 |
|
2190 2189 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2191 2190 | /// Holds one variant for each of the ways the builder can fail.
|
2192 - |
|
2193 2191 | #[allow(clippy::enum_variant_names)]
|
2194 2192 | pub enum ConstraintViolation {
|
2195 2193 | /// `message` was not provided but it is required when building `ValidationException`.
|
2196 2194 | MissingMessage,
|
2197 2195 | }
|
2198 2196 | impl ::std::fmt::Display for ConstraintViolation {
|
2199 2197 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2200 2198 | match self {
|
2201 2199 | ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationException`"),
|
2202 2200 | }
|
2203 2201 | }
|
2204 2202 | }
|
2205 2203 | impl ::std::error::Error for ConstraintViolation {}
|
2206 2204 | impl ::std::convert::TryFrom<Builder> for crate::error::ValidationException {
|
2207 2205 | type Error = ConstraintViolation;
|
2208 2206 |
|
2209 2207 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2210 2208 | builder.build()
|
2211 2209 | }
|
2212 2210 | }
|
2213 2211 | /// A builder for [`ValidationException`](crate::error::ValidationException).
|
2214 2212 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2215 2213 | pub struct Builder {
|
2216 2214 | pub(crate) message: ::std::option::Option<::std::string::String>,
|
2217 2215 | pub(crate) field_list:
|
2218 2216 | ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
|
2219 2217 | }
|
2220 2218 | impl Builder {
|
2221 2219 | /// A summary of the validation failure.
|
2222 2220 | pub fn message(mut self, input: ::std::string::String) -> Self {
|
@@ -1930,1930 +1990,1989 @@
1930 1930 | input: impl ::std::convert::Into<
|
1931 1931 | crate::python_event_stream::EventStreamsOperationInputEventsReceiver,
|
1932 1932 | >,
|
1933 1933 | ) -> Self {
|
1934 1934 | self.events = Some(input.into());
|
1935 1935 | self
|
1936 1936 | }
|
1937 1937 | /// Consumes the builder and constructs a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
1938 1938 | ///
|
1939 1939 | /// The builder fails to construct a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput) if a [`ConstraintViolation`] occurs.
|
1940 1940 | ///
|
1941 1941 | pub fn build(
|
1942 1942 | self,
|
1943 1943 | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
1944 1944 | self.build_enforcing_all_constraints()
|
1945 1945 | }
|
1946 1946 | fn build_enforcing_all_constraints(
|
1947 1947 | self,
|
1948 1948 | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
1949 1949 | Ok(crate::input::EventStreamsOperationInput {
|
1950 1950 | events: self.events.ok_or(ConstraintViolation::MissingEvents)?,
|
1951 1951 | })
|
1952 1952 | }
|
1953 1953 | }
|
1954 1954 | }
|
1955 1955 | /// See [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
1956 1956 | pub mod event_streams_operation_input {
|
1957 1957 |
|
1958 1958 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1959 1959 | /// Holds one variant for each of the ways the builder can fail.
|
1960 - |
|
1961 1960 | #[allow(clippy::enum_variant_names)]
|
1962 1961 | pub enum ConstraintViolation {
|
1963 1962 | /// `events` was not provided but it is required when building `EventStreamsOperationInput`.
|
1964 1963 | MissingEvents,
|
1965 1964 | }
|
1966 1965 | impl ::std::fmt::Display for ConstraintViolation {
|
1967 1966 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1968 1967 | match self {
|
1969 1968 | ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `EventStreamsOperationInput`"),
|
1970 1969 | }
|
1971 1970 | }
|
1972 1971 | }
|
1973 1972 | impl ::std::error::Error for ConstraintViolation {}
|
1974 1973 | impl ::std::convert::TryFrom<Builder> for crate::input::EventStreamsOperationInput {
|
1975 1974 | type Error = ConstraintViolation;
|
1976 1975 |
|
1977 1976 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1978 1977 | builder.build()
|
1979 1978 | }
|
1980 1979 | }
|
1981 1980 | /// A builder for [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
1982 1981 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1983 1982 | pub struct Builder {
|
1984 1983 | pub(crate) events: ::std::option::Option<
|
1985 1984 | crate::python_event_stream::EventStreamsOperationInputEventsReceiver,
|
1986 1985 | >,
|
1987 1986 | }
|
1988 1987 | impl Builder {
|
1989 1988 | #[allow(missing_docs)] // documentation missing in model
|
1990 1989 | pub fn events(
|
@@ -4276,4275 +4336,4334 @@
4276 4275 | Ok(crate::input::ConstrainedRecursiveShapesOperationInput {
|
4277 4276 | nested: self
|
4278 4277 | .nested
|
4279 4278 | .map(|v| match v {
|
4280 4279 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4281 4280 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4282 4281 | })
|
4283 4282 | .map(|res| res.map_err(ConstraintViolation::Nested))
|
4284 4283 | .transpose()?,
|
4285 4284 | recursive_list: self
|
4286 4285 | .recursive_list
|
4287 4286 | .map(|v| match v {
|
4288 4287 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4289 4288 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4290 4289 | })
|
4291 4290 | .map(|res| {
|
4292 4291 | res.map(|v| v.into())
|
4293 4292 | .map_err(ConstraintViolation::RecursiveList)
|
4294 4293 | })
|
4295 4294 | .transpose()?
|
4296 4295 | .ok_or(ConstraintViolation::MissingRecursiveList)?,
|
4297 4296 | })
|
4298 4297 | }
|
4299 4298 | }
|
4300 4299 | }
|
4301 4300 | /// See [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
4302 4301 | pub mod constrained_recursive_shapes_operation_input {
|
4303 4302 |
|
4304 4303 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4305 4304 | /// Holds one variant for each of the ways the builder can fail.
|
4306 - |
|
4307 4305 | #[allow(clippy::enum_variant_names)]
|
4308 4306 | pub enum ConstraintViolation {
|
4309 4307 | /// `recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`.
|
4310 4308 | MissingRecursiveList,
|
4311 4309 | }
|
4312 4310 | impl ::std::fmt::Display for ConstraintViolation {
|
4313 4311 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4314 4312 | match self {
|
4315 4313 | ConstraintViolation::MissingRecursiveList => write!(f, "`recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`"),
|
4316 4314 | }
|
4317 4315 | }
|
4318 4316 | }
|
4319 4317 | impl ::std::error::Error for ConstraintViolation {}
|
4320 4318 | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedRecursiveShapesOperationInput {
|
4321 4319 | type Error = ConstraintViolation;
|
4322 4320 |
|
4323 4321 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4324 4322 | builder.build()
|
4325 4323 | }
|
4326 4324 | }
|
4327 4325 | /// A builder for [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
4328 4326 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4329 4327 | pub struct Builder {
|
4330 4328 | pub(crate) nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
4331 4329 | pub(crate) recursive_list:
|
4332 4330 | ::std::option::Option<::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>>,
|
4333 4331 | }
|
4334 4332 | impl Builder {
|
4335 4333 | #[allow(missing_docs)] // documentation missing in model
|
4336 4334 | pub fn nested(
|
@@ -4471,4469 +4531,4528 @@
4471 4469 | {
|
4472 4470 | self.build_enforcing_all_constraints()
|
4473 4471 | }
|
4474 4472 | fn build_enforcing_all_constraints(
|
4475 4473 | self,
|
4476 4474 | ) -> Result<crate::input::ConstrainedHttpPayloadBoundShapeOperationInput, ConstraintViolation>
|
4477 4475 | {
|
4478 4476 | Ok(
|
4479 4477 | crate::input::ConstrainedHttpPayloadBoundShapeOperationInput {
|
4480 4478 | http_payload_bound_constrained_shape: self
|
4481 4479 | .http_payload_bound_constrained_shape
|
4482 4480 | .map(|v| match v {
|
4483 4481 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4484 4482 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4485 4483 | })
|
4486 4484 | .map(|res| {
|
4487 4485 | res.map_err(ConstraintViolation::HttpPayloadBoundConstrainedShape)
|
4488 4486 | })
|
4489 4487 | .transpose()?
|
4490 4488 | .ok_or(ConstraintViolation::MissingHttpPayloadBoundConstrainedShape)?,
|
4491 4489 | },
|
4492 4490 | )
|
4493 4491 | }
|
4494 4492 | }
|
4495 4493 | }
|
4496 4494 | /// See [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
4497 4495 | pub mod constrained_http_payload_bound_shape_operation_input {
|
4498 4496 |
|
4499 4497 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4500 4498 | /// Holds one variant for each of the ways the builder can fail.
|
4501 - |
|
4502 4499 | #[allow(clippy::enum_variant_names)]
|
4503 4500 | pub enum ConstraintViolation {
|
4504 4501 | /// `http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationInput`.
|
4505 4502 | MissingHttpPayloadBoundConstrainedShape,
|
4506 4503 | }
|
4507 4504 | impl ::std::fmt::Display for ConstraintViolation {
|
4508 4505 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4509 4506 | match self {
|
4510 4507 | ConstraintViolation::MissingHttpPayloadBoundConstrainedShape => write!(f, "`http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationInput`"),
|
4511 4508 | }
|
4512 4509 | }
|
4513 4510 | }
|
4514 4511 | impl ::std::error::Error for ConstraintViolation {}
|
4515 4512 | impl ::std::convert::TryFrom<Builder>
|
4516 4513 | for crate::input::ConstrainedHttpPayloadBoundShapeOperationInput
|
4517 4514 | {
|
4518 4515 | type Error = ConstraintViolation;
|
4519 4516 |
|
4520 4517 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4521 4518 | builder.build()
|
4522 4519 | }
|
4523 4520 | }
|
4524 4521 | /// A builder for [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
4525 4522 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4526 4523 | pub struct Builder {
|
4527 4524 | pub(crate) http_payload_bound_constrained_shape: ::std::option::Option<crate::model::ConA>,
|
4528 4525 | }
|
4529 4526 | impl Builder {
|
4530 4527 | #[allow(missing_docs)] // documentation missing in model
|
4531 4528 | pub fn http_payload_bound_constrained_shape(mut self, input: crate::model::ConA) -> Self {
|
@@ -5741,5738 +5801,5797 @@
5741 5738 | .map(|v: crate::model::SetOfRangeInteger| v.into()),
|
5742 5739 | range_long_set_query: self
|
5743 5740 | .range_long_set_query
|
5744 5741 | .map(|v| match v {
|
5745 5742 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5746 5743 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5747 5744 | })
|
5748 5745 | .map(|res| res.map_err(ConstraintViolation::RangeLongSetQuery))
|
5749 5746 | .transpose()?
|
5750 5747 | .map(|v: crate::model::SetOfRangeLong| v.into()),
|
5751 5748 | enum_string_list_query: self
|
5752 5749 | .enum_string_list_query
|
5753 5750 | .map(|v| match v {
|
5754 5751 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5755 5752 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5756 5753 | })
|
5757 5754 | .map(|res| {
|
5758 5755 | res.map(|v| v.into())
|
5759 5756 | .map_err(ConstraintViolation::EnumStringListQuery)
|
5760 5757 | })
|
5761 5758 | .transpose()?,
|
5762 5759 | })
|
5763 5760 | }
|
5764 5761 | }
|
5765 5762 | }
|
5766 5763 | /// See [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
5767 5764 | pub mod constrained_http_bound_shapes_operation_input {
|
5768 5765 |
|
5769 5766 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5770 5767 | /// Holds one variant for each of the ways the builder can fail.
|
5771 - |
|
5772 5768 | #[allow(clippy::enum_variant_names)]
|
5773 5769 | pub enum ConstraintViolation {
|
5774 5770 | /// `length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
5775 5771 | MissingLengthStringLabel,
|
5776 5772 | /// `enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
5777 5773 | MissingEnumStringLabel,
|
5778 5774 | /// `length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
5779 5775 | MissingLengthStringHeaderMap,
|
5780 5776 | }
|
5781 5777 | impl ::std::fmt::Display for ConstraintViolation {
|
5782 5778 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5783 5779 | match self {
|
5784 5780 | ConstraintViolation::MissingLengthStringLabel => write!(f, "`length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5785 5781 | ConstraintViolation::MissingEnumStringLabel => write!(f, "`enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5786 5782 | ConstraintViolation::MissingLengthStringHeaderMap => write!(f, "`length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
5787 5783 | }
|
5788 5784 | }
|
5789 5785 | }
|
5790 5786 | impl ::std::error::Error for ConstraintViolation {}
|
5791 5787 | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedHttpBoundShapesOperationInput {
|
5792 5788 | type Error = ConstraintViolation;
|
5793 5789 |
|
5794 5790 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5795 5791 | builder.build()
|
5796 5792 | }
|
5797 5793 | }
|
5798 5794 | /// A builder for [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
5799 5795 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5800 5796 | pub struct Builder {
|
5801 5797 | pub(crate) length_string_label: ::std::option::Option<::std::string::String>,
|
@@ -6354,6350 +6414,6409 @@
6354 6350 | /// The builder fails to construct a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput) if a [`ConstraintViolation`] occurs.
|
6355 6351 | ///
|
6356 6352 | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
6357 6353 | pub fn build(
|
6358 6354 | self,
|
6359 6355 | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
6360 6356 | self.build_enforcing_all_constraints()
|
6361 6357 | }
|
6362 6358 | fn build_enforcing_all_constraints(
|
6363 6359 | self,
|
6364 6360 | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
6365 6361 | Ok(crate::input::ConstrainedShapesOperationInput {
|
6366 6362 | con_a: self
|
6367 6363 | .con_a
|
6368 6364 | .map(|v| match v {
|
6369 6365 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
6370 6366 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
6371 6367 | })
|
6372 6368 | .map(|res| res.map_err(ConstraintViolation::ConA))
|
6373 6369 | .transpose()?
|
6374 6370 | .ok_or(ConstraintViolation::MissingConA)?,
|
6375 6371 | })
|
6376 6372 | }
|
6377 6373 | }
|
6378 6374 | }
|
6379 6375 | /// See [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
6380 6376 | pub mod constrained_shapes_operation_input {
|
6381 6377 |
|
6382 6378 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
6383 6379 | /// Holds one variant for each of the ways the builder can fail.
|
6384 - |
|
6385 6380 | #[allow(clippy::enum_variant_names)]
|
6386 6381 | pub enum ConstraintViolation {
|
6387 6382 | /// `con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`.
|
6388 6383 | MissingConA,
|
6389 6384 | }
|
6390 6385 | impl ::std::fmt::Display for ConstraintViolation {
|
6391 6386 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
6392 6387 | match self {
|
6393 6388 | ConstraintViolation::MissingConA => write!(f, "`con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`"),
|
6394 6389 | }
|
6395 6390 | }
|
6396 6391 | }
|
6397 6392 | impl ::std::error::Error for ConstraintViolation {}
|
6398 6393 | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedShapesOperationInput {
|
6399 6394 | type Error = ConstraintViolation;
|
6400 6395 |
|
6401 6396 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
6402 6397 | builder.build()
|
6403 6398 | }
|
6404 6399 | }
|
6405 6400 | /// A builder for [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
6406 6401 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6407 6402 | pub struct Builder {
|
6408 6403 | pub(crate) con_a: ::std::option::Option<crate::model::ConA>,
|
6409 6404 | }
|
6410 6405 | impl Builder {
|
6411 6406 | #[allow(missing_docs)] // documentation missing in model
|
6412 6407 | pub fn con_a(mut self, input: crate::model::ConA) -> Self {
|
6413 6408 | self.con_a = Some(input);
|
6414 6409 | self
|
@@ -5261,5261 +5321,5320 @@
5261 5261 | }
|
5262 5262 | }
|
5263 5263 | impl ::std::convert::TryFrom<::std::vec::Vec<crate::model::ConstrainedUnionInOutput>>
|
5264 5264 | for ConstrainedListInOutput
|
5265 5265 | {
|
5266 5266 | type Error = crate::model::constrained_list_in_output_internal::ConstraintViolation;
|
5267 5267 |
|
5268 5268 | /// Constructs a `ConstrainedListInOutput` from an [`::std::vec::Vec<crate::model::ConstrainedUnionInOutput>`], failing when the provided value does not satisfy the modeled constraints.
|
5269 5269 | fn try_from(
|
5270 5270 | value: ::std::vec::Vec<crate::model::ConstrainedUnionInOutput>,
|
5271 5271 | ) -> ::std::result::Result<Self, Self::Error> {
|
5272 5272 | Self::check_length(value.len())?;
|
5273 5273 |
|
5274 5274 | Ok(Self(value))
|
5275 5275 | }
|
5276 5276 | }
|
5277 5277 |
|
5278 5278 | impl ::std::convert::From<ConstrainedListInOutput>
|
5279 5279 | for ::std::vec::Vec<crate::model::ConstrainedUnionInOutput>
|
5280 5280 | {
|
5281 5281 | fn from(value: ConstrainedListInOutput) -> Self {
|
5282 5282 | value.into_inner()
|
5283 5283 | }
|
5284 5284 | }
|
5285 5285 |
|
5286 5286 | /// See [`ValidationExceptionField`](crate::model::ValidationExceptionField).
|
5287 5287 | pub mod validation_exception_field {
|
5288 5288 |
|
5289 5289 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5290 5290 | /// Holds one variant for each of the ways the builder can fail.
|
5291 - |
|
5292 5291 | #[allow(clippy::enum_variant_names)]
|
5293 5292 | pub enum ConstraintViolation {
|
5294 5293 | /// `path` was not provided but it is required when building `ValidationExceptionField`.
|
5295 5294 | MissingPath,
|
5296 5295 | /// `message` was not provided but it is required when building `ValidationExceptionField`.
|
5297 5296 | MissingMessage,
|
5298 5297 | }
|
5299 5298 | impl ::std::fmt::Display for ConstraintViolation {
|
5300 5299 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5301 5300 | match self {
|
5302 5301 | ConstraintViolation::MissingPath => write!(f, "`path` was not provided but it is required when building `ValidationExceptionField`"),
|
5303 5302 | ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationExceptionField`"),
|
5304 5303 | }
|
5305 5304 | }
|
5306 5305 | }
|
5307 5306 | impl ::std::error::Error for ConstraintViolation {}
|
5308 5307 | impl ::std::convert::TryFrom<Builder> for crate::model::ValidationExceptionField {
|
5309 5308 | type Error = ConstraintViolation;
|
5310 5309 |
|
5311 5310 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5312 5311 | builder.build()
|
5313 5312 | }
|
5314 5313 | }
|
5315 5314 | /// A builder for [`ValidationExceptionField`](crate::model::ValidationExceptionField).
|
5316 5315 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5317 5316 | pub struct Builder {
|
5318 5317 | pub(crate) path: ::std::option::Option<::std::string::String>,
|
5319 5318 | pub(crate) message: ::std::option::Option<::std::string::String>,
|
5320 5319 | }
|
5321 5320 | impl Builder {
|
@@ -6386,6385 +6446,6444 @@
6386 6385 | ) -> Result<crate::model::RecursiveShapesInputOutputNested1, ConstraintViolation> {
|
6387 6386 | self.build_enforcing_all_constraints()
|
6388 6387 | }
|
6389 6388 | fn build_enforcing_all_constraints(
|
6390 6389 | self,
|
6391 6390 | ) -> Result<crate::model::RecursiveShapesInputOutputNested1, ConstraintViolation> {
|
6392 6391 | Ok(crate::model::RecursiveShapesInputOutputNested1 {
|
6393 6392 | recursive_member: self
|
6394 6393 | .recursive_member
|
6395 6394 | .map(|v| match *v {
|
6396 6395 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(Box::new(x)),
|
6397 6396 | crate::constrained::MaybeConstrained::Unconstrained(x) => {
|
6398 6397 | Ok(Box::new(x.try_into()?))
|
6399 6398 | }
|
6400 6399 | })
|
6401 6400 | .map(|res| {
|
6402 6401 | res.map_err(Box::new)
|
6403 6402 | .map_err(ConstraintViolation::RecursiveMember)
|
6404 6403 | })
|
6405 6404 | .transpose()?
|
6406 6405 | .ok_or(ConstraintViolation::MissingRecursiveMember)?,
|
6407 6406 | })
|
6408 6407 | }
|
6409 6408 | }
|
6410 6409 | }
|
6411 6410 | /// See [`RecursiveShapesInputOutputNested1`](crate::model::RecursiveShapesInputOutputNested1).
|
6412 6411 | pub mod recursive_shapes_input_output_nested1 {
|
6413 6412 |
|
6414 6413 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
6415 6414 | /// Holds one variant for each of the ways the builder can fail.
|
6416 - |
|
6417 6415 | #[allow(clippy::enum_variant_names)]
|
6418 6416 | pub enum ConstraintViolation {
|
6419 6417 | /// `recursive_member` was not provided but it is required when building `RecursiveShapesInputOutputNested1`.
|
6420 6418 | MissingRecursiveMember,
|
6421 6419 | }
|
6422 6420 | impl ::std::fmt::Display for ConstraintViolation {
|
6423 6421 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
6424 6422 | match self {
|
6425 6423 | ConstraintViolation::MissingRecursiveMember => write!(f, "`recursive_member` was not provided but it is required when building `RecursiveShapesInputOutputNested1`"),
|
6426 6424 | }
|
6427 6425 | }
|
6428 6426 | }
|
6429 6427 | impl ::std::error::Error for ConstraintViolation {}
|
6430 6428 | impl ::std::convert::TryFrom<Builder> for crate::model::RecursiveShapesInputOutputNested1 {
|
6431 6429 | type Error = ConstraintViolation;
|
6432 6430 |
|
6433 6431 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
6434 6432 | builder.build()
|
6435 6433 | }
|
6436 6434 | }
|
6437 6435 | /// A builder for [`RecursiveShapesInputOutputNested1`](crate::model::RecursiveShapesInputOutputNested1).
|
6438 6436 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
6439 6437 | pub struct Builder {
|
6440 6438 | pub(crate) recursive_member: ::std::option::Option<
|
6441 6439 | ::std::boxed::Box<crate::model::RecursiveShapesInputOutputNested2>,
|
6442 6440 | >,
|
6443 6441 | }
|
6444 6442 | impl Builder {
|
6445 6443 | #[allow(missing_docs)] // documentation missing in model
|
6446 6444 | pub fn recursive_member(
|
@@ -8529,8527 +8589,8586 @@
8529 8527 | .map(|res| res.map_err(ConstraintViolation::SetOfLengthPatternString))
|
8530 8528 | .transpose()?
|
8531 8529 | .map(|v: crate::model::SetOfLengthPatternString| v.into()),
|
8532 8530 | length_list_of_pattern_string: self
|
8533 8531 | .length_list_of_pattern_string
|
8534 8532 | .map(|v| match v {
|
8535 8533 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
8536 8534 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
8537 8535 | })
|
8538 8536 | .map(|res| res.map_err(ConstraintViolation::LengthListOfPatternString))
|
8539 8537 | .transpose()?
|
8540 8538 | .map(|v: crate::model::LengthListOfPatternString| v.into()),
|
8541 8539 | length_set_of_pattern_string: self
|
8542 8540 | .length_set_of_pattern_string
|
8543 8541 | .map(|v| match v {
|
8544 8542 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
8545 8543 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
8546 8544 | })
|
8547 8545 | .map(|res| res.map_err(ConstraintViolation::LengthSetOfPatternString))
|
8548 8546 | .transpose()?
|
8549 8547 | .map(|v: crate::model::LengthSetOfPatternString| v.into()),
|
8550 8548 | })
|
8551 8549 | }
|
8552 8550 | }
|
8553 8551 | }
|
8554 8552 | /// See [`ConA`](crate::model::ConA).
|
8555 8553 | pub mod con_a {
|
8556 8554 |
|
8557 8555 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
8558 8556 | /// Holds one variant for each of the ways the builder can fail.
|
8559 - |
|
8560 8557 | #[allow(clippy::enum_variant_names)]
|
8561 8558 | pub enum ConstraintViolation {
|
8562 8559 | /// `con_b` was not provided but it is required when building `ConA`.
|
8563 8560 | MissingConB,
|
8564 8561 | }
|
8565 8562 | impl ::std::fmt::Display for ConstraintViolation {
|
8566 8563 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
8567 8564 | match self {
|
8568 8565 | ConstraintViolation::MissingConB => write!(
|
8569 8566 | f,
|
8570 8567 | "`con_b` was not provided but it is required when building `ConA`"
|
8571 8568 | ),
|
8572 8569 | }
|
8573 8570 | }
|
8574 8571 | }
|
8575 8572 | impl ::std::error::Error for ConstraintViolation {}
|
8576 8573 | impl ::std::convert::TryFrom<Builder> for crate::model::ConA {
|
8577 8574 | type Error = ConstraintViolation;
|
8578 8575 |
|
8579 8576 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
8580 8577 | builder.build()
|
8581 8578 | }
|
8582 8579 | }
|
8583 8580 | /// A builder for [`ConA`](crate::model::ConA).
|
8584 8581 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
8585 8582 | pub struct Builder {
|
8586 8583 | pub(crate) con_b: ::std::option::Option<crate::model::ConB>,
|
8587 8584 | pub(crate) opt_con_b: ::std::option::Option<crate::model::ConB>,
|
8588 8585 | pub(crate) length_string: ::std::option::Option<::std::string::String>,
|
8589 8586 | pub(crate) min_length_string: ::std::option::Option<::std::string::String>,
|
@@ -10553,10550 +10613,10609 @@
10553 10550 | #[allow(missing_docs)] // documentation missing in model
|
10554 10551 | pub(crate) fn set_opt_int(mut self, input: Option<impl ::std::convert::Into<i32>>) -> Self {
|
10555 10552 | self.opt_int = input.map(|v| v.into());
|
10556 10553 | self
|
10557 10554 | }
|
10558 10555 | /// Consumes the builder and constructs a [`ConB`](crate::model::ConB).
|
10559 10556 | ///
|
10560 10557 | /// The builder fails to construct a [`ConB`](crate::model::ConB) if a [`ConstraintViolation`] occurs.
|
10561 10558 | ///
|
10562 10559 | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
10563 10560 | pub fn build(self) -> Result<crate::model::ConB, ConstraintViolation> {
|
10564 10561 | self.build_enforcing_all_constraints()
|
10565 10562 | }
|
10566 10563 | fn build_enforcing_all_constraints(
|
10567 10564 | self,
|
10568 10565 | ) -> Result<crate::model::ConB, ConstraintViolation> {
|
10569 10566 | Ok(crate::model::ConB {
|
10570 10567 | nice: self.nice.ok_or(ConstraintViolation::MissingNice)?,
|
10571 10568 | int: self.int.ok_or(ConstraintViolation::MissingInt)?,
|
10572 10569 | opt_nice: self.opt_nice,
|
10573 10570 | opt_int: self.opt_int,
|
10574 10571 | })
|
10575 10572 | }
|
10576 10573 | }
|
10577 10574 | }
|
10578 10575 | /// See [`ConB`](crate::model::ConB).
|
10579 10576 | pub mod con_b {
|
10580 10577 |
|
10581 10578 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
10582 10579 | /// Holds one variant for each of the ways the builder can fail.
|
10583 - |
|
10584 10580 | #[allow(clippy::enum_variant_names)]
|
10585 10581 | pub enum ConstraintViolation {
|
10586 10582 | /// `nice` was not provided but it is required when building `ConB`.
|
10587 10583 | MissingNice,
|
10588 10584 | /// `int` was not provided but it is required when building `ConB`.
|
10589 10585 | MissingInt,
|
10590 10586 | }
|
10591 10587 | impl ::std::fmt::Display for ConstraintViolation {
|
10592 10588 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
10593 10589 | match self {
|
10594 10590 | ConstraintViolation::MissingNice => write!(
|
10595 10591 | f,
|
10596 10592 | "`nice` was not provided but it is required when building `ConB`"
|
10597 10593 | ),
|
10598 10594 | ConstraintViolation::MissingInt => write!(
|
10599 10595 | f,
|
10600 10596 | "`int` was not provided but it is required when building `ConB`"
|
10601 10597 | ),
|
10602 10598 | }
|
10603 10599 | }
|
10604 10600 | }
|
10605 10601 | impl ::std::error::Error for ConstraintViolation {}
|
10606 10602 | impl ::std::convert::TryFrom<Builder> for crate::model::ConB {
|
10607 10603 | type Error = ConstraintViolation;
|
10608 10604 |
|
10609 10605 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
10610 10606 | builder.build()
|
10611 10607 | }
|
10612 10608 | }
|
10613 10609 | /// A builder for [`ConB`](crate::model::ConB).
|
@@ -28,28 +88,87 @@
28 28 | }
|
29 29 | }
|
30 30 |
|
31 31 | impl<B>
|
32 32 | ::aws_smithy_http_server::request::FromRequest<
|
33 33 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
34 34 | B,
|
35 35 | > for crate::input::EventStreamsOperationInput
|
36 36 | where
|
37 37 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
38 38 | B: 'static,
|
39 39 |
|
40 40 | B: Into<::aws_smithy_types::byte_stream::ByteStream>,
|
41 41 | B::Data: Send,
|
42 42 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
43 43 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
44 44 | {
|
45 45 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
46 46 | type Future = EventStreamsOperationInputFuture;
|
47 47 |
|
48 48 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
49 49 | let fut = async move {
|
50 50 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
51 51 | request.headers(),
|
52 52 | &CONTENT_TYPE_EVENTSTREAMSOPERATION,
|
53 53 | ) {
|
54 54 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
55 55 | }
|
56 56 | crate::protocol_serde::shape_event_streams_operation::de_event_streams_operation_http_request(request)
|
57 57 | .await
|
58 - | .map_err(Into::into)
|
59 58 | };
|
60 59 | use ::futures_util::future::TryFutureExt;
|
61 60 | let fut = fut.map_err(
|
62 61 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
63 62 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
64 63 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
65 64 | e,
|
66 65 | )
|
67 66 | },
|
68 67 | );
|
69 68 | EventStreamsOperationInputFuture {
|
70 69 | inner: Box::pin(fut),
|
71 70 | }
|
72 71 | }
|
73 72 | }
|
74 73 | impl
|
75 74 | ::aws_smithy_http_server::response::IntoResponse<
|
76 75 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
77 76 | > for crate::output::EventStreamsOperationOutput
|
78 77 | {
|
79 78 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
80 79 | match crate::protocol_serde::shape_event_streams_operation::ser_event_streams_operation_http_response(self) {
|
81 80 | Ok(response) => response,
|
82 81 | Err(e) => {
|
83 82 | ::tracing::error!(error = %e, "failed to serialize response");
|
84 83 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
85 84 | }
|
86 85 | }
|
87 86 | }
|
88 87 | }
|
@@ -129,128 +189,187 @@
129 128 | }
|
130 129 | }
|
131 130 |
|
132 131 | impl<B>
|
133 132 | ::aws_smithy_http_server::request::FromRequest<
|
134 133 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
135 134 | B,
|
136 135 | > for crate::input::StreamingBlobOperationInput
|
137 136 | where
|
138 137 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
139 138 | B: 'static,
|
140 139 |
|
141 140 | B: Into<::aws_smithy_types::byte_stream::ByteStream>,
|
142 141 | B::Data: Send,
|
143 142 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
144 143 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
145 144 | {
|
146 145 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
147 146 | type Future = StreamingBlobOperationInputFuture;
|
148 147 |
|
149 148 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
150 149 | let fut = async move {
|
151 150 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
152 151 | request.headers(),
|
153 152 | &CONTENT_TYPE_STREAMINGBLOBOPERATION,
|
154 153 | ) {
|
155 154 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
156 155 | }
|
157 156 | crate::protocol_serde::shape_streaming_blob_operation::de_streaming_blob_operation_http_request(request)
|
158 157 | .await
|
159 - | .map_err(Into::into)
|
160 158 | };
|
161 159 | use ::futures_util::future::TryFutureExt;
|
162 160 | let fut = fut.map_err(
|
163 161 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
164 162 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
165 163 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
166 164 | e,
|
167 165 | )
|
168 166 | },
|
169 167 | );
|
170 168 | StreamingBlobOperationInputFuture {
|
171 169 | inner: Box::pin(fut),
|
172 170 | }
|
173 171 | }
|
174 172 | }
|
175 173 | impl
|
176 174 | ::aws_smithy_http_server::response::IntoResponse<
|
177 175 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
178 176 | > for crate::output::StreamingBlobOperationOutput
|
179 177 | {
|
180 178 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
181 179 | match crate::protocol_serde::shape_streaming_blob_operation::ser_streaming_blob_operation_http_response(self) {
|
182 180 | Ok(response) => response,
|
183 181 | Err(e) => {
|
184 182 | ::tracing::error!(error = %e, "failed to serialize response");
|
185 183 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
186 184 | }
|
187 185 | }
|
188 186 | }
|
189 187 | }
|
@@ -222,220 +282,279 @@
222 220 |
|
223 221 | fn poll(
|
224 222 | self: std::pin::Pin<&mut Self>,
|
225 223 | cx: &mut std::task::Context<'_>,
|
226 224 | ) -> std::task::Poll<Self::Output> {
|
227 225 | let this = self.project();
|
228 226 | this.inner.as_mut().poll(cx)
|
229 227 | }
|
230 228 | }
|
231 229 |
|
232 230 | impl<B>
|
233 231 | ::aws_smithy_http_server::request::FromRequest<
|
234 232 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
235 233 | B,
|
236 234 | > for crate::input::NonStreamingBlobOperationInput
|
237 235 | where
|
238 236 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
239 237 | B: 'static,
|
240 238 |
|
241 239 | B::Data: Send,
|
242 240 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
243 241 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
244 242 | {
|
245 243 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
246 244 | type Future = NonStreamingBlobOperationInputFuture;
|
247 245 |
|
248 246 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
249 247 | let fut = async move {
|
250 248 | crate::protocol_serde::shape_non_streaming_blob_operation::de_non_streaming_blob_operation_http_request(request)
|
251 249 | .await
|
252 - | .map_err(Into::into)
|
253 250 | };
|
254 251 | use ::futures_util::future::TryFutureExt;
|
255 252 | let fut = fut.map_err(
|
256 253 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
257 254 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
258 255 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
259 256 | e,
|
260 257 | )
|
261 258 | },
|
262 259 | );
|
263 260 | NonStreamingBlobOperationInputFuture {
|
264 261 | inner: Box::pin(fut),
|
265 262 | }
|
266 263 | }
|
267 264 | }
|
268 265 | impl
|
269 266 | ::aws_smithy_http_server::response::IntoResponse<
|
270 267 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
271 268 | > for crate::output::NonStreamingBlobOperationOutput
|
272 269 | {
|
273 270 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
274 271 | match crate::protocol_serde::shape_non_streaming_blob_operation::ser_non_streaming_blob_operation_http_response(self) {
|
275 272 | Ok(response) => response,
|
276 273 | Err(e) => {
|
277 274 | ::tracing::error!(error = %e, "failed to serialize response");
|
278 275 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
279 276 | }
|
280 277 | }
|
281 278 | }
|
282 279 | }
|
@@ -323,320 +383,379 @@
323 320 | this.inner.as_mut().poll(cx)
|
324 321 | }
|
325 322 | }
|
326 323 |
|
327 324 | impl<B>
|
328 325 | ::aws_smithy_http_server::request::FromRequest<
|
329 326 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
330 327 | B,
|
331 328 | > for crate::input::QueryParamsTargetingMapOfEnumStringOperationInput
|
332 329 | where
|
333 330 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
334 331 | B: 'static,
|
335 332 |
|
336 333 | B::Data: Send,
|
337 334 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
338 335 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
339 336 | {
|
340 337 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
341 338 | type Future = QueryParamsTargetingMapOfEnumStringOperationInputFuture;
|
342 339 |
|
343 340 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
344 341 | let fut = async move {
|
345 342 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
346 343 | request.headers(),
|
347 344 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFENUMSTRINGOPERATION,
|
348 345 | ) {
|
349 346 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
350 347 | }
|
351 348 | crate::protocol_serde::shape_query_params_targeting_map_of_enum_string_operation::de_query_params_targeting_map_of_enum_string_operation_http_request(request)
|
352 349 | .await
|
353 - | .map_err(Into::into)
|
354 350 | };
|
355 351 | use ::futures_util::future::TryFutureExt;
|
356 352 | let fut = fut.map_err(
|
357 353 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
358 354 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
359 355 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
360 356 | e,
|
361 357 | )
|
362 358 | },
|
363 359 | );
|
364 360 | QueryParamsTargetingMapOfEnumStringOperationInputFuture {
|
365 361 | inner: Box::pin(fut),
|
366 362 | }
|
367 363 | }
|
368 364 | }
|
369 365 | impl
|
370 366 | ::aws_smithy_http_server::response::IntoResponse<
|
371 367 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
372 368 | > for crate::output::QueryParamsTargetingMapOfEnumStringOperationOutput
|
373 369 | {
|
374 370 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
375 371 | match crate::protocol_serde::shape_query_params_targeting_map_of_enum_string_operation::ser_query_params_targeting_map_of_enum_string_operation_http_response(self) {
|
376 372 | Ok(response) => response,
|
377 373 | Err(e) => {
|
378 374 | ::tracing::error!(error = %e, "failed to serialize response");
|
379 375 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
380 376 | }
|
381 377 | }
|
382 378 | }
|
383 379 | }
|
@@ -424,420 +484,479 @@
424 420 | this.inner.as_mut().poll(cx)
|
425 421 | }
|
426 422 | }
|
427 423 |
|
428 424 | impl<B>
|
429 425 | ::aws_smithy_http_server::request::FromRequest<
|
430 426 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
431 427 | B,
|
432 428 | > for crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput
|
433 429 | where
|
434 430 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
435 431 | B: 'static,
|
436 432 |
|
437 433 | B::Data: Send,
|
438 434 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
439 435 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
440 436 | {
|
441 437 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
442 438 | type Future = HttpPrefixHeadersTargetingLengthMapOperationInputFuture;
|
443 439 |
|
444 440 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
445 441 | let fut = async move {
|
446 442 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
447 443 | request.headers(),
|
448 444 | &CONTENT_TYPE_HTTPPREFIXHEADERSTARGETINGLENGTHMAPOPERATION,
|
449 445 | ) {
|
450 446 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
451 447 | }
|
452 448 | crate::protocol_serde::shape_http_prefix_headers_targeting_length_map_operation::de_http_prefix_headers_targeting_length_map_operation_http_request(request)
|
453 449 | .await
|
454 - | .map_err(Into::into)
|
455 450 | };
|
456 451 | use ::futures_util::future::TryFutureExt;
|
457 452 | let fut = fut.map_err(
|
458 453 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
459 454 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
460 455 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
461 456 | e,
|
462 457 | )
|
463 458 | },
|
464 459 | );
|
465 460 | HttpPrefixHeadersTargetingLengthMapOperationInputFuture {
|
466 461 | inner: Box::pin(fut),
|
467 462 | }
|
468 463 | }
|
469 464 | }
|
470 465 | impl
|
471 466 | ::aws_smithy_http_server::response::IntoResponse<
|
472 467 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
473 468 | > for crate::output::HttpPrefixHeadersTargetingLengthMapOperationOutput
|
474 469 | {
|
475 470 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
476 471 | match crate::protocol_serde::shape_http_prefix_headers_targeting_length_map_operation::ser_http_prefix_headers_targeting_length_map_operation_http_response(self) {
|
477 472 | Ok(response) => response,
|
478 473 | Err(e) => {
|
479 474 | ::tracing::error!(error = %e, "failed to serialize response");
|
480 475 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
481 476 | }
|
482 477 | }
|
483 478 | }
|
484 479 | }
|
@@ -527,522 +587,581 @@
527 522 | this.inner.as_mut().poll(cx)
|
528 523 | }
|
529 524 | }
|
530 525 |
|
531 526 | impl<B>
|
532 527 | ::aws_smithy_http_server::request::FromRequest<
|
533 528 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
534 529 | B,
|
535 530 | > for crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
536 531 | where
|
537 532 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
538 533 | B: 'static,
|
539 534 |
|
540 535 | B::Data: Send,
|
541 536 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
542 537 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
543 538 | {
|
544 539 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
545 540 | type Future = QueryParamsTargetingMapOfListOfLengthPatternStringOperationInputFuture;
|
546 541 |
|
547 542 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
548 543 | let fut = async move {
|
549 544 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
550 545 | request.headers(),
|
551 546 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFLISTOFLENGTHPATTERNSTRINGOPERATION,
|
552 547 | ) {
|
553 548 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
554 549 | }
|
555 550 | crate::protocol_serde::shape_query_params_targeting_map_of_list_of_length_pattern_string_operation::de_query_params_targeting_map_of_list_of_length_pattern_string_operation_http_request(request)
|
556 551 | .await
|
557 - | .map_err(Into::into)
|
558 552 | };
|
559 553 | use ::futures_util::future::TryFutureExt;
|
560 554 | let fut = fut.map_err(
|
561 555 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
562 556 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
563 557 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
564 558 | e,
|
565 559 | )
|
566 560 | },
|
567 561 | );
|
568 562 | QueryParamsTargetingMapOfListOfLengthPatternStringOperationInputFuture {
|
569 563 | inner: Box::pin(fut),
|
570 564 | }
|
571 565 | }
|
572 566 | }
|
573 567 | impl
|
574 568 | ::aws_smithy_http_server::response::IntoResponse<
|
575 569 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
576 570 | > for crate::output::QueryParamsTargetingMapOfListOfLengthPatternStringOperationOutput
|
577 571 | {
|
578 572 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
579 573 | match crate::protocol_serde::shape_query_params_targeting_map_of_list_of_length_pattern_string_operation::ser_query_params_targeting_map_of_list_of_length_pattern_string_operation_http_response(self) {
|
580 574 | Ok(response) => response,
|
581 575 | Err(e) => {
|
582 576 | ::tracing::error!(error = %e, "failed to serialize response");
|
583 577 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
584 578 | }
|
585 579 | }
|
586 580 | }
|
587 581 | }
|
@@ -628,622 +688,681 @@
628 622 | this.inner.as_mut().poll(cx)
|
629 623 | }
|
630 624 | }
|
631 625 |
|
632 626 | impl<B>
|
633 627 | ::aws_smithy_http_server::request::FromRequest<
|
634 628 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
635 629 | B,
|
636 630 | > for crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput
|
637 631 | where
|
638 632 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
639 633 | B: 'static,
|
640 634 |
|
641 635 | B::Data: Send,
|
642 636 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
643 637 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
644 638 | {
|
645 639 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
646 640 | type Future = QueryParamsTargetingMapOfLengthPatternStringOperationInputFuture;
|
647 641 |
|
648 642 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
649 643 | let fut = async move {
|
650 644 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
651 645 | request.headers(),
|
652 646 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFLENGTHPATTERNSTRINGOPERATION,
|
653 647 | ) {
|
654 648 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
655 649 | }
|
656 650 | crate::protocol_serde::shape_query_params_targeting_map_of_length_pattern_string_operation::de_query_params_targeting_map_of_length_pattern_string_operation_http_request(request)
|
657 651 | .await
|
658 - | .map_err(Into::into)
|
659 652 | };
|
660 653 | use ::futures_util::future::TryFutureExt;
|
661 654 | let fut = fut.map_err(
|
662 655 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
663 656 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
664 657 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
665 658 | e,
|
666 659 | )
|
667 660 | },
|
668 661 | );
|
669 662 | QueryParamsTargetingMapOfLengthPatternStringOperationInputFuture {
|
670 663 | inner: Box::pin(fut),
|
671 664 | }
|
672 665 | }
|
673 666 | }
|
674 667 | impl
|
675 668 | ::aws_smithy_http_server::response::IntoResponse<
|
676 669 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
677 670 | > for crate::output::QueryParamsTargetingMapOfLengthPatternStringOperationOutput
|
678 671 | {
|
679 672 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
680 673 | match crate::protocol_serde::shape_query_params_targeting_map_of_length_pattern_string_operation::ser_query_params_targeting_map_of_length_pattern_string_operation_http_response(self) {
|
681 674 | Ok(response) => response,
|
682 675 | Err(e) => {
|
683 676 | ::tracing::error!(error = %e, "failed to serialize response");
|
684 677 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
685 678 | }
|
686 679 | }
|
687 680 | }
|
688 681 | }
|
@@ -729,722 +789,781 @@
729 722 | this.inner.as_mut().poll(cx)
|
730 723 | }
|
731 724 | }
|
732 725 |
|
733 726 | impl<B>
|
734 727 | ::aws_smithy_http_server::request::FromRequest<
|
735 728 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
736 729 | B,
|
737 730 | > for crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput
|
738 731 | where
|
739 732 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
740 733 | B: 'static,
|
741 734 |
|
742 735 | B::Data: Send,
|
743 736 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
744 737 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
745 738 | {
|
746 739 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
747 740 | type Future = QueryParamsTargetingMapOfListOfPatternStringOperationInputFuture;
|
748 741 |
|
749 742 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
750 743 | let fut = async move {
|
751 744 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
752 745 | request.headers(),
|
753 746 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFLISTOFPATTERNSTRINGOPERATION,
|
754 747 | ) {
|
755 748 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
756 749 | }
|
757 750 | crate::protocol_serde::shape_query_params_targeting_map_of_list_of_pattern_string_operation::de_query_params_targeting_map_of_list_of_pattern_string_operation_http_request(request)
|
758 751 | .await
|
759 - | .map_err(Into::into)
|
760 752 | };
|
761 753 | use ::futures_util::future::TryFutureExt;
|
762 754 | let fut = fut.map_err(
|
763 755 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
764 756 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
765 757 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
766 758 | e,
|
767 759 | )
|
768 760 | },
|
769 761 | );
|
770 762 | QueryParamsTargetingMapOfListOfPatternStringOperationInputFuture {
|
771 763 | inner: Box::pin(fut),
|
772 764 | }
|
773 765 | }
|
774 766 | }
|
775 767 | impl
|
776 768 | ::aws_smithy_http_server::response::IntoResponse<
|
777 769 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
778 770 | > for crate::output::QueryParamsTargetingMapOfListOfPatternStringOperationOutput
|
779 771 | {
|
780 772 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
781 773 | match crate::protocol_serde::shape_query_params_targeting_map_of_list_of_pattern_string_operation::ser_query_params_targeting_map_of_list_of_pattern_string_operation_http_response(self) {
|
782 774 | Ok(response) => response,
|
783 775 | Err(e) => {
|
784 776 | ::tracing::error!(error = %e, "failed to serialize response");
|
785 777 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
786 778 | }
|
787 779 | }
|
788 780 | }
|
789 781 | }
|
@@ -830,822 +890,881 @@
830 822 | this.inner.as_mut().poll(cx)
|
831 823 | }
|
832 824 | }
|
833 825 |
|
834 826 | impl<B>
|
835 827 | ::aws_smithy_http_server::request::FromRequest<
|
836 828 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
837 829 | B,
|
838 830 | > for crate::input::QueryParamsTargetingMapOfPatternStringOperationInput
|
839 831 | where
|
840 832 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
841 833 | B: 'static,
|
842 834 |
|
843 835 | B::Data: Send,
|
844 836 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
845 837 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
846 838 | {
|
847 839 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
848 840 | type Future = QueryParamsTargetingMapOfPatternStringOperationInputFuture;
|
849 841 |
|
850 842 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
851 843 | let fut = async move {
|
852 844 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
853 845 | request.headers(),
|
854 846 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFPATTERNSTRINGOPERATION,
|
855 847 | ) {
|
856 848 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
857 849 | }
|
858 850 | crate::protocol_serde::shape_query_params_targeting_map_of_pattern_string_operation::de_query_params_targeting_map_of_pattern_string_operation_http_request(request)
|
859 851 | .await
|
860 - | .map_err(Into::into)
|
861 852 | };
|
862 853 | use ::futures_util::future::TryFutureExt;
|
863 854 | let fut = fut.map_err(
|
864 855 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
865 856 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
866 857 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
867 858 | e,
|
868 859 | )
|
869 860 | },
|
870 861 | );
|
871 862 | QueryParamsTargetingMapOfPatternStringOperationInputFuture {
|
872 863 | inner: Box::pin(fut),
|
873 864 | }
|
874 865 | }
|
875 866 | }
|
876 867 | impl
|
877 868 | ::aws_smithy_http_server::response::IntoResponse<
|
878 869 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
879 870 | > for crate::output::QueryParamsTargetingMapOfPatternStringOperationOutput
|
880 871 | {
|
881 872 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
882 873 | match crate::protocol_serde::shape_query_params_targeting_map_of_pattern_string_operation::ser_query_params_targeting_map_of_pattern_string_operation_http_response(self) {
|
883 874 | Ok(response) => response,
|
884 875 | Err(e) => {
|
885 876 | ::tracing::error!(error = %e, "failed to serialize response");
|
886 877 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
887 878 | }
|
888 879 | }
|
889 880 | }
|
890 881 | }
|
@@ -931,922 +991,981 @@
931 922 | this.inner.as_mut().poll(cx)
|
932 923 | }
|
933 924 | }
|
934 925 |
|
935 926 | impl<B>
|
936 927 | ::aws_smithy_http_server::request::FromRequest<
|
937 928 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
938 929 | B,
|
939 930 | > for crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput
|
940 931 | where
|
941 932 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
942 933 | B: 'static,
|
943 934 |
|
944 935 | B::Data: Send,
|
945 936 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
946 937 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
947 938 | {
|
948 939 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
949 940 | type Future = QueryParamsTargetingMapOfListOfEnumStringOperationInputFuture;
|
950 941 |
|
951 942 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
952 943 | let fut = async move {
|
953 944 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
954 945 | request.headers(),
|
955 946 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFLISTOFENUMSTRINGOPERATION,
|
956 947 | ) {
|
957 948 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
958 949 | }
|
959 950 | crate::protocol_serde::shape_query_params_targeting_map_of_list_of_enum_string_operation::de_query_params_targeting_map_of_list_of_enum_string_operation_http_request(request)
|
960 951 | .await
|
961 - | .map_err(Into::into)
|
962 952 | };
|
963 953 | use ::futures_util::future::TryFutureExt;
|
964 954 | let fut = fut.map_err(
|
965 955 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
966 956 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
967 957 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
968 958 | e,
|
969 959 | )
|
970 960 | },
|
971 961 | );
|
972 962 | QueryParamsTargetingMapOfListOfEnumStringOperationInputFuture {
|
973 963 | inner: Box::pin(fut),
|
974 964 | }
|
975 965 | }
|
976 966 | }
|
977 967 | impl
|
978 968 | ::aws_smithy_http_server::response::IntoResponse<
|
979 969 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
980 970 | > for crate::output::QueryParamsTargetingMapOfListOfEnumStringOperationOutput
|
981 971 | {
|
982 972 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
983 973 | match crate::protocol_serde::shape_query_params_targeting_map_of_list_of_enum_string_operation::ser_query_params_targeting_map_of_list_of_enum_string_operation_http_response(self) {
|
984 974 | Ok(response) => response,
|
985 975 | Err(e) => {
|
986 976 | ::tracing::error!(error = %e, "failed to serialize response");
|
987 977 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
988 978 | }
|
989 979 | }
|
990 980 | }
|
991 981 | }
|
@@ -1034,1024 +1094,1083 @@
1034 1024 | this.inner.as_mut().poll(cx)
|
1035 1025 | }
|
1036 1026 | }
|
1037 1027 |
|
1038 1028 | impl<B>
|
1039 1029 | ::aws_smithy_http_server::request::FromRequest<
|
1040 1030 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1041 1031 | B,
|
1042 1032 | > for crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
1043 1033 | where
|
1044 1034 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1045 1035 | B: 'static,
|
1046 1036 |
|
1047 1037 | B::Data: Send,
|
1048 1038 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1049 1039 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1050 1040 | {
|
1051 1041 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1052 1042 | type Future = QueryParamsTargetingMapOfLengthListOfPatternStringOperationInputFuture;
|
1053 1043 |
|
1054 1044 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1055 1045 | let fut = async move {
|
1056 1046 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1057 1047 | request.headers(),
|
1058 1048 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFLENGTHLISTOFPATTERNSTRINGOPERATION,
|
1059 1049 | ) {
|
1060 1050 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1061 1051 | }
|
1062 1052 | crate::protocol_serde::shape_query_params_targeting_map_of_length_list_of_pattern_string_operation::de_query_params_targeting_map_of_length_list_of_pattern_string_operation_http_request(request)
|
1063 1053 | .await
|
1064 - | .map_err(Into::into)
|
1065 1054 | };
|
1066 1055 | use ::futures_util::future::TryFutureExt;
|
1067 1056 | let fut = fut.map_err(
|
1068 1057 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1069 1058 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1070 1059 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1071 1060 | e,
|
1072 1061 | )
|
1073 1062 | },
|
1074 1063 | );
|
1075 1064 | QueryParamsTargetingMapOfLengthListOfPatternStringOperationInputFuture {
|
1076 1065 | inner: Box::pin(fut),
|
1077 1066 | }
|
1078 1067 | }
|
1079 1068 | }
|
1080 1069 | impl
|
1081 1070 | ::aws_smithy_http_server::response::IntoResponse<
|
1082 1071 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1083 1072 | > for crate::output::QueryParamsTargetingMapOfLengthListOfPatternStringOperationOutput
|
1084 1073 | {
|
1085 1074 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1086 1075 | match crate::protocol_serde::shape_query_params_targeting_map_of_length_list_of_pattern_string_operation::ser_query_params_targeting_map_of_length_list_of_pattern_string_operation_http_response(self) {
|
1087 1076 | Ok(response) => response,
|
1088 1077 | Err(e) => {
|
1089 1078 | ::tracing::error!(error = %e, "failed to serialize response");
|
1090 1079 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1091 1080 | }
|
1092 1081 | }
|
1093 1082 | }
|
1094 1083 | }
|
@@ -1135,1124 +1195,1183 @@
1135 1124 | this.inner.as_mut().poll(cx)
|
1136 1125 | }
|
1137 1126 | }
|
1138 1127 |
|
1139 1128 | impl<B>
|
1140 1129 | ::aws_smithy_http_server::request::FromRequest<
|
1141 1130 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1142 1131 | B,
|
1143 1132 | > for crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput
|
1144 1133 | where
|
1145 1134 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1146 1135 | B: 'static,
|
1147 1136 |
|
1148 1137 | B::Data: Send,
|
1149 1138 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1150 1139 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1151 1140 | {
|
1152 1141 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1153 1142 | type Future = QueryParamsTargetingMapOfSetOfLengthStringOperationInputFuture;
|
1154 1143 |
|
1155 1144 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1156 1145 | let fut = async move {
|
1157 1146 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1158 1147 | request.headers(),
|
1159 1148 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFSETOFLENGTHSTRINGOPERATION,
|
1160 1149 | ) {
|
1161 1150 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1162 1151 | }
|
1163 1152 | crate::protocol_serde::shape_query_params_targeting_map_of_set_of_length_string_operation::de_query_params_targeting_map_of_set_of_length_string_operation_http_request(request)
|
1164 1153 | .await
|
1165 - | .map_err(Into::into)
|
1166 1154 | };
|
1167 1155 | use ::futures_util::future::TryFutureExt;
|
1168 1156 | let fut = fut.map_err(
|
1169 1157 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1170 1158 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1171 1159 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1172 1160 | e,
|
1173 1161 | )
|
1174 1162 | },
|
1175 1163 | );
|
1176 1164 | QueryParamsTargetingMapOfSetOfLengthStringOperationInputFuture {
|
1177 1165 | inner: Box::pin(fut),
|
1178 1166 | }
|
1179 1167 | }
|
1180 1168 | }
|
1181 1169 | impl
|
1182 1170 | ::aws_smithy_http_server::response::IntoResponse<
|
1183 1171 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1184 1172 | > for crate::output::QueryParamsTargetingMapOfSetOfLengthStringOperationOutput
|
1185 1173 | {
|
1186 1174 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1187 1175 | match crate::protocol_serde::shape_query_params_targeting_map_of_set_of_length_string_operation::ser_query_params_targeting_map_of_set_of_length_string_operation_http_response(self) {
|
1188 1176 | Ok(response) => response,
|
1189 1177 | Err(e) => {
|
1190 1178 | ::tracing::error!(error = %e, "failed to serialize response");
|
1191 1179 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1192 1180 | }
|
1193 1181 | }
|
1194 1182 | }
|
1195 1183 | }
|
@@ -1236,1224 +1296,1283 @@
1236 1224 | this.inner.as_mut().poll(cx)
|
1237 1225 | }
|
1238 1226 | }
|
1239 1227 |
|
1240 1228 | impl<B>
|
1241 1229 | ::aws_smithy_http_server::request::FromRequest<
|
1242 1230 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1243 1231 | B,
|
1244 1232 | > for crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput
|
1245 1233 | where
|
1246 1234 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1247 1235 | B: 'static,
|
1248 1236 |
|
1249 1237 | B::Data: Send,
|
1250 1238 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1251 1239 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1252 1240 | {
|
1253 1241 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1254 1242 | type Future = QueryParamsTargetingMapOfListOfLengthStringOperationInputFuture;
|
1255 1243 |
|
1256 1244 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1257 1245 | let fut = async move {
|
1258 1246 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1259 1247 | request.headers(),
|
1260 1248 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFLISTOFLENGTHSTRINGOPERATION,
|
1261 1249 | ) {
|
1262 1250 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1263 1251 | }
|
1264 1252 | crate::protocol_serde::shape_query_params_targeting_map_of_list_of_length_string_operation::de_query_params_targeting_map_of_list_of_length_string_operation_http_request(request)
|
1265 1253 | .await
|
1266 - | .map_err(Into::into)
|
1267 1254 | };
|
1268 1255 | use ::futures_util::future::TryFutureExt;
|
1269 1256 | let fut = fut.map_err(
|
1270 1257 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1271 1258 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1272 1259 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1273 1260 | e,
|
1274 1261 | )
|
1275 1262 | },
|
1276 1263 | );
|
1277 1264 | QueryParamsTargetingMapOfListOfLengthStringOperationInputFuture {
|
1278 1265 | inner: Box::pin(fut),
|
1279 1266 | }
|
1280 1267 | }
|
1281 1268 | }
|
1282 1269 | impl
|
1283 1270 | ::aws_smithy_http_server::response::IntoResponse<
|
1284 1271 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1285 1272 | > for crate::output::QueryParamsTargetingMapOfListOfLengthStringOperationOutput
|
1286 1273 | {
|
1287 1274 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1288 1275 | match crate::protocol_serde::shape_query_params_targeting_map_of_list_of_length_string_operation::ser_query_params_targeting_map_of_list_of_length_string_operation_http_response(self) {
|
1289 1276 | Ok(response) => response,
|
1290 1277 | Err(e) => {
|
1291 1278 | ::tracing::error!(error = %e, "failed to serialize response");
|
1292 1279 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1293 1280 | }
|
1294 1281 | }
|
1295 1282 | }
|
1296 1283 | }
|
@@ -1337,1324 +1397,1383 @@
1337 1324 | this.inner.as_mut().poll(cx)
|
1338 1325 | }
|
1339 1326 | }
|
1340 1327 |
|
1341 1328 | impl<B>
|
1342 1329 | ::aws_smithy_http_server::request::FromRequest<
|
1343 1330 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1344 1331 | B,
|
1345 1332 | > for crate::input::QueryParamsTargetingMapOfLengthStringOperationInput
|
1346 1333 | where
|
1347 1334 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1348 1335 | B: 'static,
|
1349 1336 |
|
1350 1337 | B::Data: Send,
|
1351 1338 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1352 1339 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1353 1340 | {
|
1354 1341 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1355 1342 | type Future = QueryParamsTargetingMapOfLengthStringOperationInputFuture;
|
1356 1343 |
|
1357 1344 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1358 1345 | let fut = async move {
|
1359 1346 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1360 1347 | request.headers(),
|
1361 1348 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFLENGTHSTRINGOPERATION,
|
1362 1349 | ) {
|
1363 1350 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1364 1351 | }
|
1365 1352 | crate::protocol_serde::shape_query_params_targeting_map_of_length_string_operation::de_query_params_targeting_map_of_length_string_operation_http_request(request)
|
1366 1353 | .await
|
1367 - | .map_err(Into::into)
|
1368 1354 | };
|
1369 1355 | use ::futures_util::future::TryFutureExt;
|
1370 1356 | let fut = fut.map_err(
|
1371 1357 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1372 1358 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1373 1359 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1374 1360 | e,
|
1375 1361 | )
|
1376 1362 | },
|
1377 1363 | );
|
1378 1364 | QueryParamsTargetingMapOfLengthStringOperationInputFuture {
|
1379 1365 | inner: Box::pin(fut),
|
1380 1366 | }
|
1381 1367 | }
|
1382 1368 | }
|
1383 1369 | impl
|
1384 1370 | ::aws_smithy_http_server::response::IntoResponse<
|
1385 1371 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1386 1372 | > for crate::output::QueryParamsTargetingMapOfLengthStringOperationOutput
|
1387 1373 | {
|
1388 1374 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1389 1375 | match crate::protocol_serde::shape_query_params_targeting_map_of_length_string_operation::ser_query_params_targeting_map_of_length_string_operation_http_response(self) {
|
1390 1376 | Ok(response) => response,
|
1391 1377 | Err(e) => {
|
1392 1378 | ::tracing::error!(error = %e, "failed to serialize response");
|
1393 1379 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1394 1380 | }
|
1395 1381 | }
|
1396 1382 | }
|
1397 1383 | }
|
@@ -1437,1423 +1497,1482 @@
1437 1423 | this.inner.as_mut().poll(cx)
|
1438 1424 | }
|
1439 1425 | }
|
1440 1426 |
|
1441 1427 | impl<B>
|
1442 1428 | ::aws_smithy_http_server::request::FromRequest<
|
1443 1429 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1444 1430 | B,
|
1445 1431 | > for crate::input::QueryParamsTargetingLengthMapOperationInput
|
1446 1432 | where
|
1447 1433 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1448 1434 | B: 'static,
|
1449 1435 |
|
1450 1436 | B::Data: Send,
|
1451 1437 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1452 1438 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1453 1439 | {
|
1454 1440 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1455 1441 | type Future = QueryParamsTargetingLengthMapOperationInputFuture;
|
1456 1442 |
|
1457 1443 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1458 1444 | let fut = async move {
|
1459 1445 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1460 1446 | request.headers(),
|
1461 1447 | &CONTENT_TYPE_QUERYPARAMSTARGETINGLENGTHMAPOPERATION,
|
1462 1448 | ) {
|
1463 1449 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1464 1450 | }
|
1465 1451 | crate::protocol_serde::shape_query_params_targeting_length_map_operation::de_query_params_targeting_length_map_operation_http_request(request)
|
1466 1452 | .await
|
1467 - | .map_err(Into::into)
|
1468 1453 | };
|
1469 1454 | use ::futures_util::future::TryFutureExt;
|
1470 1455 | let fut = fut.map_err(
|
1471 1456 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1472 1457 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1473 1458 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1474 1459 | e,
|
1475 1460 | )
|
1476 1461 | },
|
1477 1462 | );
|
1478 1463 | QueryParamsTargetingLengthMapOperationInputFuture {
|
1479 1464 | inner: Box::pin(fut),
|
1480 1465 | }
|
1481 1466 | }
|
1482 1467 | }
|
1483 1468 | impl
|
1484 1469 | ::aws_smithy_http_server::response::IntoResponse<
|
1485 1470 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1486 1471 | > for crate::output::QueryParamsTargetingLengthMapOperationOutput
|
1487 1472 | {
|
1488 1473 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1489 1474 | match crate::protocol_serde::shape_query_params_targeting_length_map_operation::ser_query_params_targeting_length_map_operation_http_response(self) {
|
1490 1475 | Ok(response) => response,
|
1491 1476 | Err(e) => {
|
1492 1477 | ::tracing::error!(error = %e, "failed to serialize response");
|
1493 1478 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1494 1479 | }
|
1495 1480 | }
|
1496 1481 | }
|
1497 1482 | }
|
@@ -1537,1522 +1597,1581 @@
1537 1522 | this.inner.as_mut().poll(cx)
|
1538 1523 | }
|
1539 1524 | }
|
1540 1525 |
|
1541 1526 | impl<B>
|
1542 1527 | ::aws_smithy_http_server::request::FromRequest<
|
1543 1528 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1544 1529 | B,
|
1545 1530 | > for crate::input::ConstrainedRecursiveShapesOperationInput
|
1546 1531 | where
|
1547 1532 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1548 1533 | B: 'static,
|
1549 1534 |
|
1550 1535 | B::Data: Send,
|
1551 1536 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1552 1537 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1553 1538 | {
|
1554 1539 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1555 1540 | type Future = ConstrainedRecursiveShapesOperationInputFuture;
|
1556 1541 |
|
1557 1542 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1558 1543 | let fut = async move {
|
1559 1544 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1560 1545 | request.headers(),
|
1561 1546 | &CONTENT_TYPE_CONSTRAINEDRECURSIVESHAPESOPERATION,
|
1562 1547 | ) {
|
1563 1548 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1564 1549 | }
|
1565 1550 | crate::protocol_serde::shape_constrained_recursive_shapes_operation::de_constrained_recursive_shapes_operation_http_request(request)
|
1566 1551 | .await
|
1567 - | .map_err(Into::into)
|
1568 1552 | };
|
1569 1553 | use ::futures_util::future::TryFutureExt;
|
1570 1554 | let fut = fut.map_err(
|
1571 1555 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1572 1556 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1573 1557 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1574 1558 | e,
|
1575 1559 | )
|
1576 1560 | },
|
1577 1561 | );
|
1578 1562 | ConstrainedRecursiveShapesOperationInputFuture {
|
1579 1563 | inner: Box::pin(fut),
|
1580 1564 | }
|
1581 1565 | }
|
1582 1566 | }
|
1583 1567 | impl
|
1584 1568 | ::aws_smithy_http_server::response::IntoResponse<
|
1585 1569 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1586 1570 | > for crate::output::ConstrainedRecursiveShapesOperationOutput
|
1587 1571 | {
|
1588 1572 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1589 1573 | match crate::protocol_serde::shape_constrained_recursive_shapes_operation::ser_constrained_recursive_shapes_operation_http_response(self) {
|
1590 1574 | Ok(response) => response,
|
1591 1575 | Err(e) => {
|
1592 1576 | ::tracing::error!(error = %e, "failed to serialize response");
|
1593 1577 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1594 1578 | }
|
1595 1579 | }
|
1596 1580 | }
|
1597 1581 | }
|
@@ -1638,1622 +1698,1681 @@
1638 1622 | this.inner.as_mut().poll(cx)
|
1639 1623 | }
|
1640 1624 | }
|
1641 1625 |
|
1642 1626 | impl<B>
|
1643 1627 | ::aws_smithy_http_server::request::FromRequest<
|
1644 1628 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1645 1629 | B,
|
1646 1630 | > for crate::input::ConstrainedHttpPayloadBoundShapeOperationInput
|
1647 1631 | where
|
1648 1632 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1649 1633 | B: 'static,
|
1650 1634 |
|
1651 1635 | B::Data: Send,
|
1652 1636 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1653 1637 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1654 1638 | {
|
1655 1639 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1656 1640 | type Future = ConstrainedHttpPayloadBoundShapeOperationInputFuture;
|
1657 1641 |
|
1658 1642 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1659 1643 | let fut = async move {
|
1660 1644 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1661 1645 | request.headers(),
|
1662 1646 | &CONTENT_TYPE_CONSTRAINEDHTTPPAYLOADBOUNDSHAPEOPERATION,
|
1663 1647 | ) {
|
1664 1648 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1665 1649 | }
|
1666 1650 | crate::protocol_serde::shape_constrained_http_payload_bound_shape_operation::de_constrained_http_payload_bound_shape_operation_http_request(request)
|
1667 1651 | .await
|
1668 - | .map_err(Into::into)
|
1669 1652 | };
|
1670 1653 | use ::futures_util::future::TryFutureExt;
|
1671 1654 | let fut = fut.map_err(
|
1672 1655 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1673 1656 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1674 1657 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1675 1658 | e,
|
1676 1659 | )
|
1677 1660 | },
|
1678 1661 | );
|
1679 1662 | ConstrainedHttpPayloadBoundShapeOperationInputFuture {
|
1680 1663 | inner: Box::pin(fut),
|
1681 1664 | }
|
1682 1665 | }
|
1683 1666 | }
|
1684 1667 | impl
|
1685 1668 | ::aws_smithy_http_server::response::IntoResponse<
|
1686 1669 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1687 1670 | > for crate::output::ConstrainedHttpPayloadBoundShapeOperationOutput
|
1688 1671 | {
|
1689 1672 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1690 1673 | match crate::protocol_serde::shape_constrained_http_payload_bound_shape_operation::ser_constrained_http_payload_bound_shape_operation_http_response(self) {
|
1691 1674 | Ok(response) => response,
|
1692 1675 | Err(e) => {
|
1693 1676 | ::tracing::error!(error = %e, "failed to serialize response");
|
1694 1677 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1695 1678 | }
|
1696 1679 | }
|
1697 1680 | }
|
1698 1681 | }
|
@@ -1738,1721 +1798,1780 @@
1738 1721 | this.inner.as_mut().poll(cx)
|
1739 1722 | }
|
1740 1723 | }
|
1741 1724 |
|
1742 1725 | impl<B>
|
1743 1726 | ::aws_smithy_http_server::request::FromRequest<
|
1744 1727 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1745 1728 | B,
|
1746 1729 | > for crate::input::ConstrainedHttpBoundShapesOperationInput
|
1747 1730 | where
|
1748 1731 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1749 1732 | B: 'static,
|
1750 1733 |
|
1751 1734 | B::Data: Send,
|
1752 1735 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1753 1736 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1754 1737 | {
|
1755 1738 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1756 1739 | type Future = ConstrainedHttpBoundShapesOperationInputFuture;
|
1757 1740 |
|
1758 1741 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1759 1742 | let fut = async move {
|
1760 1743 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1761 1744 | request.headers(),
|
1762 1745 | &CONTENT_TYPE_CONSTRAINEDHTTPBOUNDSHAPESOPERATION,
|
1763 1746 | ) {
|
1764 1747 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1765 1748 | }
|
1766 1749 | crate::protocol_serde::shape_constrained_http_bound_shapes_operation::de_constrained_http_bound_shapes_operation_http_request(request)
|
1767 1750 | .await
|
1768 - | .map_err(Into::into)
|
1769 1751 | };
|
1770 1752 | use ::futures_util::future::TryFutureExt;
|
1771 1753 | let fut = fut.map_err(
|
1772 1754 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1773 1755 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1774 1756 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1775 1757 | e,
|
1776 1758 | )
|
1777 1759 | },
|
1778 1760 | );
|
1779 1761 | ConstrainedHttpBoundShapesOperationInputFuture {
|
1780 1762 | inner: Box::pin(fut),
|
1781 1763 | }
|
1782 1764 | }
|
1783 1765 | }
|
1784 1766 | impl
|
1785 1767 | ::aws_smithy_http_server::response::IntoResponse<
|
1786 1768 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1787 1769 | > for crate::output::ConstrainedHttpBoundShapesOperationOutput
|
1788 1770 | {
|
1789 1771 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1790 1772 | match crate::protocol_serde::shape_constrained_http_bound_shapes_operation::ser_constrained_http_bound_shapes_operation_http_response(self) {
|
1791 1773 | Ok(response) => response,
|
1792 1774 | Err(e) => {
|
1793 1775 | ::tracing::error!(error = %e, "failed to serialize response");
|
1794 1776 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1795 1777 | }
|
1796 1778 | }
|
1797 1779 | }
|
1798 1780 | }
|
@@ -1838,1820 +1898,1879 @@
1838 1820 | this.inner.as_mut().poll(cx)
|
1839 1821 | }
|
1840 1822 | }
|
1841 1823 |
|
1842 1824 | impl<B>
|
1843 1825 | ::aws_smithy_http_server::request::FromRequest<
|
1844 1826 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1845 1827 | B,
|
1846 1828 | > for crate::input::ConstrainedShapesOnlyInOutputOperationInput
|
1847 1829 | where
|
1848 1830 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1849 1831 | B: 'static,
|
1850 1832 |
|
1851 1833 | B::Data: Send,
|
1852 1834 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1853 1835 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1854 1836 | {
|
1855 1837 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1856 1838 | type Future = ConstrainedShapesOnlyInOutputOperationInputFuture;
|
1857 1839 |
|
1858 1840 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1859 1841 | let fut = async move {
|
1860 1842 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1861 1843 | request.headers(),
|
1862 1844 | &CONTENT_TYPE_CONSTRAINEDSHAPESONLYINOUTPUTOPERATION,
|
1863 1845 | ) {
|
1864 1846 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1865 1847 | }
|
1866 1848 | crate::protocol_serde::shape_constrained_shapes_only_in_output_operation::de_constrained_shapes_only_in_output_operation_http_request(request)
|
1867 1849 | .await
|
1868 - | .map_err(Into::into)
|
1869 1850 | };
|
1870 1851 | use ::futures_util::future::TryFutureExt;
|
1871 1852 | let fut = fut.map_err(
|
1872 1853 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1873 1854 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1874 1855 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1875 1856 | e,
|
1876 1857 | )
|
1877 1858 | },
|
1878 1859 | );
|
1879 1860 | ConstrainedShapesOnlyInOutputOperationInputFuture {
|
1880 1861 | inner: Box::pin(fut),
|
1881 1862 | }
|
1882 1863 | }
|
1883 1864 | }
|
1884 1865 | impl
|
1885 1866 | ::aws_smithy_http_server::response::IntoResponse<
|
1886 1867 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1887 1868 | > for crate::output::ConstrainedShapesOnlyInOutputOperationOutput
|
1888 1869 | {
|
1889 1870 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1890 1871 | match crate::protocol_serde::shape_constrained_shapes_only_in_output_operation::ser_constrained_shapes_only_in_output_operation_http_response(self) {
|
1891 1872 | Ok(response) => response,
|
1892 1873 | Err(e) => {
|
1893 1874 | ::tracing::error!(error = %e, "failed to serialize response");
|
1894 1875 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1895 1876 | }
|
1896 1877 | }
|
1897 1878 | }
|
1898 1879 | }
|
@@ -1938,1919 +1998,1978 @@
1938 1919 | this.inner.as_mut().poll(cx)
|
1939 1920 | }
|
1940 1921 | }
|
1941 1922 |
|
1942 1923 | impl<B>
|
1943 1924 | ::aws_smithy_http_server::request::FromRequest<
|
1944 1925 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1945 1926 | B,
|
1946 1927 | > for crate::input::ConstrainedShapesOperationInput
|
1947 1928 | where
|
1948 1929 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1949 1930 | B: 'static,
|
1950 1931 |
|
1951 1932 | B::Data: Send,
|
1952 1933 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1953 1934 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1954 1935 | {
|
1955 1936 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1956 1937 | type Future = ConstrainedShapesOperationInputFuture;
|
1957 1938 |
|
1958 1939 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1959 1940 | let fut = async move {
|
1960 1941 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1961 1942 | request.headers(),
|
1962 1943 | &CONTENT_TYPE_CONSTRAINEDSHAPESOPERATION,
|
1963 1944 | ) {
|
1964 1945 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1965 1946 | }
|
1966 1947 | crate::protocol_serde::shape_constrained_shapes_operation::de_constrained_shapes_operation_http_request(request)
|
1967 1948 | .await
|
1968 - | .map_err(Into::into)
|
1969 1949 | };
|
1970 1950 | use ::futures_util::future::TryFutureExt;
|
1971 1951 | let fut = fut.map_err(
|
1972 1952 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1973 1953 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1974 1954 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1975 1955 | e,
|
1976 1956 | )
|
1977 1957 | },
|
1978 1958 | );
|
1979 1959 | ConstrainedShapesOperationInputFuture {
|
1980 1960 | inner: Box::pin(fut),
|
1981 1961 | }
|
1982 1962 | }
|
1983 1963 | }
|
1984 1964 | impl
|
1985 1965 | ::aws_smithy_http_server::response::IntoResponse<
|
1986 1966 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1987 1967 | > for crate::output::ConstrainedShapesOperationOutput
|
1988 1968 | {
|
1989 1969 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1990 1970 | match crate::protocol_serde::shape_constrained_shapes_operation::ser_constrained_shapes_operation_http_response(self) {
|
1991 1971 | Ok(response) => response,
|
1992 1972 | Err(e) => {
|
1993 1973 | ::tracing::error!(error = %e, "failed to serialize response");
|
1994 1974 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1995 1975 | }
|
1996 1976 | }
|
1997 1977 | }
|
1998 1978 | }
|
@@ -1788,1788 +1848,1847 @@
1788 1788 | fn __repr__(&self) -> String {
|
1789 1789 | format!("{self:?}")
|
1790 1790 | }
|
1791 1791 | fn __str__(&self) -> String {
|
1792 1792 | format!("{self:?}")
|
1793 1793 | }
|
1794 1794 | }
|
1795 1795 | impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<ConstrainedShapesOperationOutput> {
|
1796 1796 | fn extract(ob: &'source ::pyo3::PyAny) -> ::pyo3::PyResult<Self> {
|
1797 1797 | ob.extract::<ConstrainedShapesOperationOutput>()
|
1798 1798 | .map(Box::new)
|
1799 1799 | }
|
1800 1800 | }
|
1801 1801 |
|
1802 1802 | impl ::pyo3::IntoPy<::pyo3::PyObject> for std::boxed::Box<ConstrainedShapesOperationOutput> {
|
1803 1803 | fn into_py(self, py: ::pyo3::Python<'_>) -> ::pyo3::PyObject {
|
1804 1804 | (*self).into_py(py)
|
1805 1805 | }
|
1806 1806 | }
|
1807 1807 | impl ConstrainedShapesOperationOutput {
|
1808 1808 | /// Creates a new builder-style object to manufacture [`ConstrainedShapesOperationOutput`](crate::output::ConstrainedShapesOperationOutput).
|
1809 1809 | pub fn builder() -> crate::output::constrained_shapes_operation_output::Builder {
|
1810 1810 | crate::output::constrained_shapes_operation_output::Builder::default()
|
1811 1811 | }
|
1812 1812 | }
|
1813 1813 | /// See [`EventStreamsOperationOutput`](crate::output::EventStreamsOperationOutput).
|
1814 1814 | pub mod event_streams_operation_output {
|
1815 1815 |
|
1816 1816 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1817 1817 | /// Holds one variant for each of the ways the builder can fail.
|
1818 - |
|
1819 1818 | #[allow(clippy::enum_variant_names)]
|
1820 1819 | pub enum ConstraintViolation {
|
1821 1820 | /// `events` was not provided but it is required when building `EventStreamsOperationOutput`.
|
1822 1821 | MissingEvents,
|
1823 1822 | }
|
1824 1823 | impl ::std::fmt::Display for ConstraintViolation {
|
1825 1824 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1826 1825 | match self {
|
1827 1826 | ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `EventStreamsOperationOutput`"),
|
1828 1827 | }
|
1829 1828 | }
|
1830 1829 | }
|
1831 1830 | impl ::std::error::Error for ConstraintViolation {}
|
1832 1831 | impl ::std::convert::TryFrom<Builder> for crate::output::EventStreamsOperationOutput {
|
1833 1832 | type Error = ConstraintViolation;
|
1834 1833 |
|
1835 1834 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1836 1835 | builder.build()
|
1837 1836 | }
|
1838 1837 | }
|
1839 1838 | /// A builder for [`EventStreamsOperationOutput`](crate::output::EventStreamsOperationOutput).
|
1840 1839 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1841 1840 | pub struct Builder {
|
1842 1841 | pub(crate) events: ::std::option::Option<
|
1843 1842 | crate::python_event_stream::EventStreamsOperationOutputEventsEventStreamSender,
|
1844 1843 | >,
|
1845 1844 | }
|
1846 1845 | impl Builder {
|
1847 1846 | #[allow(missing_docs)] // documentation missing in model
|
1848 1847 | pub fn events(
|
@@ -2464,2463 +2524,2522 @@
2464 2463 | }
|
2465 2464 | impl Builder {
|
2466 2465 | #[allow(missing_docs)] // documentation missing in model
|
2467 2466 | pub fn length_map(
|
2468 2467 | mut self,
|
2469 2468 | input: ::std::option::Option<
|
2470 2469 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
2471 2470 | >,
|
2472 2471 | ) -> Self {
|
2473 2472 | self.length_map = input;
|
2474 2473 | self
|
2475 2474 | }
|
2476 2475 | /// Consumes the builder and constructs a [`QueryParamsTargetingLengthMapOperationOutput`](crate::output::QueryParamsTargetingLengthMapOperationOutput).
|
2477 2476 | pub fn build(self) -> crate::output::QueryParamsTargetingLengthMapOperationOutput {
|
2478 2477 | self.build_enforcing_required_and_enum_traits()
|
2479 2478 | }
|
2480 2479 | fn build_enforcing_required_and_enum_traits(
|
2481 2480 | self,
|
2482 2481 | ) -> crate::output::QueryParamsTargetingLengthMapOperationOutput {
|
2483 2482 | crate::output::QueryParamsTargetingLengthMapOperationOutput {
|
2484 2483 | length_map: self.length_map,
|
2485 2484 | }
|
2486 2485 | }
|
2487 2486 | }
|
2488 2487 | }
|
2489 2488 | /// See [`ConstrainedRecursiveShapesOperationOutput`](crate::output::ConstrainedRecursiveShapesOperationOutput).
|
2490 2489 | pub mod constrained_recursive_shapes_operation_output {
|
2491 2490 |
|
2492 2491 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2493 2492 | /// Holds one variant for each of the ways the builder can fail.
|
2494 - |
|
2495 2493 | #[allow(clippy::enum_variant_names)]
|
2496 2494 | pub enum ConstraintViolation {
|
2497 2495 | /// `recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationOutput`.
|
2498 2496 | MissingRecursiveList,
|
2499 2497 | }
|
2500 2498 | impl ::std::fmt::Display for ConstraintViolation {
|
2501 2499 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2502 2500 | match self {
|
2503 2501 | ConstraintViolation::MissingRecursiveList => write!(f, "`recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationOutput`"),
|
2504 2502 | }
|
2505 2503 | }
|
2506 2504 | }
|
2507 2505 | impl ::std::error::Error for ConstraintViolation {}
|
2508 2506 | impl ::std::convert::TryFrom<Builder> for crate::output::ConstrainedRecursiveShapesOperationOutput {
|
2509 2507 | type Error = ConstraintViolation;
|
2510 2508 |
|
2511 2509 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2512 2510 | builder.build()
|
2513 2511 | }
|
2514 2512 | }
|
2515 2513 | /// A builder for [`ConstrainedRecursiveShapesOperationOutput`](crate::output::ConstrainedRecursiveShapesOperationOutput).
|
2516 2514 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2517 2515 | pub struct Builder {
|
2518 2516 | pub(crate) nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
2519 2517 | pub(crate) recursive_list:
|
2520 2518 | ::std::option::Option<::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>>,
|
2521 2519 | }
|
2522 2520 | impl Builder {
|
2523 2521 | #[allow(missing_docs)] // documentation missing in model
|
2524 2522 | pub fn nested(
|
@@ -2537,2535 +2597,2594 @@
2537 2535 | self
|
2538 2536 | }
|
2539 2537 | /// Consumes the builder and constructs a [`ConstrainedRecursiveShapesOperationOutput`](crate::output::ConstrainedRecursiveShapesOperationOutput).
|
2540 2538 | ///
|
2541 2539 | /// The builder fails to construct a [`ConstrainedRecursiveShapesOperationOutput`](crate::output::ConstrainedRecursiveShapesOperationOutput) if you do not provide a value for all non-`Option`al members.
|
2542 2540 | ///
|
2543 2541 | pub fn build(
|
2544 2542 | self,
|
2545 2543 | ) -> Result<crate::output::ConstrainedRecursiveShapesOperationOutput, ConstraintViolation>
|
2546 2544 | {
|
2547 2545 | self.build_enforcing_required_and_enum_traits()
|
2548 2546 | }
|
2549 2547 | fn build_enforcing_required_and_enum_traits(
|
2550 2548 | self,
|
2551 2549 | ) -> Result<crate::output::ConstrainedRecursiveShapesOperationOutput, ConstraintViolation>
|
2552 2550 | {
|
2553 2551 | Ok(crate::output::ConstrainedRecursiveShapesOperationOutput {
|
2554 2552 | nested: self.nested,
|
2555 2553 | recursive_list: self
|
2556 2554 | .recursive_list
|
2557 2555 | .ok_or(ConstraintViolation::MissingRecursiveList)?,
|
2558 2556 | })
|
2559 2557 | }
|
2560 2558 | }
|
2561 2559 | }
|
2562 2560 | /// See [`ConstrainedHttpPayloadBoundShapeOperationOutput`](crate::output::ConstrainedHttpPayloadBoundShapeOperationOutput).
|
2563 2561 | pub mod constrained_http_payload_bound_shape_operation_output {
|
2564 2562 |
|
2565 2563 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2566 2564 | /// Holds one variant for each of the ways the builder can fail.
|
2567 - |
|
2568 2565 | #[allow(clippy::enum_variant_names)]
|
2569 2566 | pub enum ConstraintViolation {
|
2570 2567 | /// `http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationOutput`.
|
2571 2568 | MissingHttpPayloadBoundConstrainedShape,
|
2572 2569 | }
|
2573 2570 | impl ::std::fmt::Display for ConstraintViolation {
|
2574 2571 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2575 2572 | match self {
|
2576 2573 | ConstraintViolation::MissingHttpPayloadBoundConstrainedShape => write!(f, "`http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationOutput`"),
|
2577 2574 | }
|
2578 2575 | }
|
2579 2576 | }
|
2580 2577 | impl ::std::error::Error for ConstraintViolation {}
|
2581 2578 | impl ::std::convert::TryFrom<Builder>
|
2582 2579 | for crate::output::ConstrainedHttpPayloadBoundShapeOperationOutput
|
2583 2580 | {
|
2584 2581 | type Error = ConstraintViolation;
|
2585 2582 |
|
2586 2583 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2587 2584 | builder.build()
|
2588 2585 | }
|
2589 2586 | }
|
2590 2587 | /// A builder for [`ConstrainedHttpPayloadBoundShapeOperationOutput`](crate::output::ConstrainedHttpPayloadBoundShapeOperationOutput).
|
2591 2588 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2592 2589 | pub struct Builder {
|
2593 2590 | pub(crate) http_payload_bound_constrained_shape: ::std::option::Option<crate::model::ConA>,
|
2594 2591 | }
|
2595 2592 | impl Builder {
|
2596 2593 | #[allow(missing_docs)] // documentation missing in model
|
2597 2594 | pub fn http_payload_bound_constrained_shape(mut self, input: crate::model::ConA) -> Self {
|
@@ -2604,2601 +2664,2660 @@
2604 2601 | ///
|
2605 2602 | pub fn build(
|
2606 2603 | self,
|
2607 2604 | ) -> Result<
|
2608 2605 | crate::output::ConstrainedHttpPayloadBoundShapeOperationOutput,
|
2609 2606 | ConstraintViolation,
|
2610 2607 | > {
|
2611 2608 | self.build_enforcing_required_and_enum_traits()
|
2612 2609 | }
|
2613 2610 | fn build_enforcing_required_and_enum_traits(
|
2614 2611 | self,
|
2615 2612 | ) -> Result<
|
2616 2613 | crate::output::ConstrainedHttpPayloadBoundShapeOperationOutput,
|
2617 2614 | ConstraintViolation,
|
2618 2615 | > {
|
2619 2616 | Ok(
|
2620 2617 | crate::output::ConstrainedHttpPayloadBoundShapeOperationOutput {
|
2621 2618 | http_payload_bound_constrained_shape: self
|
2622 2619 | .http_payload_bound_constrained_shape
|
2623 2620 | .ok_or(ConstraintViolation::MissingHttpPayloadBoundConstrainedShape)?,
|
2624 2621 | },
|
2625 2622 | )
|
2626 2623 | }
|
2627 2624 | }
|
2628 2625 | }
|
2629 2626 | /// See [`ConstrainedHttpBoundShapesOperationOutput`](crate::output::ConstrainedHttpBoundShapesOperationOutput).
|
2630 2627 | pub mod constrained_http_bound_shapes_operation_output {
|
2631 2628 |
|
2632 2629 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2633 2630 | /// Holds one variant for each of the ways the builder can fail.
|
2634 - |
|
2635 2631 | #[allow(clippy::enum_variant_names)]
|
2636 2632 | pub enum ConstraintViolation {
|
2637 2633 | /// `length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationOutput`.
|
2638 2634 | MissingLengthStringLabel,
|
2639 2635 | /// `enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationOutput`.
|
2640 2636 | MissingEnumStringLabel,
|
2641 2637 | /// `length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationOutput`.
|
2642 2638 | MissingLengthStringHeaderMap,
|
2643 2639 | }
|
2644 2640 | impl ::std::fmt::Display for ConstraintViolation {
|
2645 2641 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2646 2642 | match self {
|
2647 2643 | ConstraintViolation::MissingLengthStringLabel => write!(f, "`length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationOutput`"),
|
2648 2644 | ConstraintViolation::MissingEnumStringLabel => write!(f, "`enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationOutput`"),
|
2649 2645 | ConstraintViolation::MissingLengthStringHeaderMap => write!(f, "`length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationOutput`"),
|
2650 2646 | }
|
2651 2647 | }
|
2652 2648 | }
|
2653 2649 | impl ::std::error::Error for ConstraintViolation {}
|
2654 2650 | impl ::std::convert::TryFrom<Builder> for crate::output::ConstrainedHttpBoundShapesOperationOutput {
|
2655 2651 | type Error = ConstraintViolation;
|
2656 2652 |
|
2657 2653 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2658 2654 | builder.build()
|
2659 2655 | }
|
2660 2656 | }
|
2661 2657 | /// A builder for [`ConstrainedHttpBoundShapesOperationOutput`](crate::output::ConstrainedHttpBoundShapesOperationOutput).
|
2662 2658 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2663 2659 | pub struct Builder {
|
2664 2660 | pub(crate) length_string_label: ::std::option::Option<::std::string::String>,
|
@@ -3120,3116 +3180,3175 @@
3120 3116 | self
|
3121 3117 | }
|
3122 3118 | #[allow(missing_docs)] // documentation missing in model
|
3123 3119 | pub fn union(
|
3124 3120 | mut self,
|
3125 3121 | input: ::std::option::Option<crate::model::ConstrainedUnionInOutput>,
|
3126 3122 | ) -> Self {
|
3127 3123 | self.union = input;
|
3128 3124 | self
|
3129 3125 | }
|
3130 3126 | /// Consumes the builder and constructs a [`ConstrainedShapesOnlyInOutputOperationOutput`](crate::output::ConstrainedShapesOnlyInOutputOperationOutput).
|
3131 3127 | pub fn build(self) -> crate::output::ConstrainedShapesOnlyInOutputOperationOutput {
|
3132 3128 | self.build_enforcing_required_and_enum_traits()
|
3133 3129 | }
|
3134 3130 | fn build_enforcing_required_and_enum_traits(
|
3135 3131 | self,
|
3136 3132 | ) -> crate::output::ConstrainedShapesOnlyInOutputOperationOutput {
|
3137 3133 | crate::output::ConstrainedShapesOnlyInOutputOperationOutput {
|
3138 3134 | list: self.list,
|
3139 3135 | map: self.map,
|
3140 3136 | union: self.union,
|
3141 3137 | }
|
3142 3138 | }
|
3143 3139 | }
|
3144 3140 | }
|
3145 3141 | /// See [`ConstrainedShapesOperationOutput`](crate::output::ConstrainedShapesOperationOutput).
|
3146 3142 | pub mod constrained_shapes_operation_output {
|
3147 3143 |
|
3148 3144 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3149 3145 | /// Holds one variant for each of the ways the builder can fail.
|
3150 - |
|
3151 3146 | #[allow(clippy::enum_variant_names)]
|
3152 3147 | pub enum ConstraintViolation {
|
3153 3148 | /// `con_a` was not provided but it is required when building `ConstrainedShapesOperationOutput`.
|
3154 3149 | MissingConA,
|
3155 3150 | }
|
3156 3151 | impl ::std::fmt::Display for ConstraintViolation {
|
3157 3152 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3158 3153 | match self {
|
3159 3154 | ConstraintViolation::MissingConA => write!(f, "`con_a` was not provided but it is required when building `ConstrainedShapesOperationOutput`"),
|
3160 3155 | }
|
3161 3156 | }
|
3162 3157 | }
|
3163 3158 | impl ::std::error::Error for ConstraintViolation {}
|
3164 3159 | impl ::std::convert::TryFrom<Builder> for crate::output::ConstrainedShapesOperationOutput {
|
3165 3160 | type Error = ConstraintViolation;
|
3166 3161 |
|
3167 3162 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3168 3163 | builder.build()
|
3169 3164 | }
|
3170 3165 | }
|
3171 3166 | /// A builder for [`ConstrainedShapesOperationOutput`](crate::output::ConstrainedShapesOperationOutput).
|
3172 3167 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3173 3168 | pub struct Builder {
|
3174 3169 | pub(crate) con_a: ::std::option::Option<crate::model::ConA>,
|
3175 3170 | }
|
3176 3171 | impl Builder {
|
3177 3172 | #[allow(missing_docs)] // documentation missing in model
|
3178 3173 | pub fn con_a(mut self, input: crate::model::ConA) -> Self {
|
3179 3174 | self.con_a = Some(input);
|
3180 3175 | self
|
@@ -102,102 +178,178 @@
102 102 | ::nom::bytes::complete::tag("/"),
|
103 103 | ::nom::branch::alt::<_, _, ::nom::error::Error<&str>, _>((
|
104 104 | ::nom::bytes::complete::take_until("/"),
|
105 105 | ::nom::combinator::rest,
|
106 106 | )),
|
107 107 | ),
|
108 108 | ::nom::sequence::preceded(
|
109 109 | ::nom::bytes::complete::tag("/"),
|
110 110 | ::nom::branch::alt::<_, _, ::nom::error::Error<&str>, _>((
|
111 111 | ::nom::bytes::complete::take_until("/"),
|
112 112 | ::nom::combinator::rest,
|
113 113 | )),
|
114 114 | ),
|
115 115 | ::nom::sequence::preceded(
|
116 116 | ::nom::bytes::complete::tag("/"),
|
117 117 | ::nom::branch::alt::<_, _, ::nom::error::Error<&str>, _>((
|
118 118 | ::nom::bytes::complete::take_until("/"),
|
119 119 | ::nom::combinator::rest,
|
120 120 | )),
|
121 121 | ),
|
122 122 | ::nom::sequence::preceded(
|
123 123 | ::nom::bytes::complete::tag("/"),
|
124 124 | ::nom::branch::alt::<_, _, ::nom::error::Error<&str>, _>((
|
125 125 | ::nom::bytes::complete::take_until("/"),
|
126 126 | ::nom::combinator::rest,
|
127 127 | )),
|
128 128 | ),
|
129 129 | ))(input_string)?;
|
130 130 | debug_assert_eq!("", input_string);
|
131 131 | input = input.set_range_integer_label(
|
132 - | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_range_integer_label(m1)?
|
133 - | );
|
132 + | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_range_integer_label(m1)?
|
133 + | );
|
134 134 | input = input.set_range_short_label(
|
135 - | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_range_short_label(m2)?
|
136 - | );
|
135 + | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_range_short_label(m2)?
|
136 + | );
|
137 137 | input = input.set_range_long_label(
|
138 - | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_range_long_label(m3)?
|
139 - | );
|
138 + | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_range_long_label(m3)?
|
139 + | );
|
140 140 | input = input.set_range_byte_label(
|
141 - | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_range_byte_label(m4)?
|
142 - | );
|
141 + | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_range_byte_label(m4)?
|
142 + | );
|
143 143 | input = input.set_length_string_label(
|
144 - | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_length_string_label(m5)?
|
145 - | );
|
144 + | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_length_string_label(m5)?
|
145 + | );
|
146 146 | input = input.set_enum_string_label(
|
147 - | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_enum_string_label(m6)?
|
148 - | );
|
147 + | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_enum_string_label(m6)?
|
148 + | );
|
149 149 | let query_string = uri.query().unwrap_or("");
|
150 150 | let pairs = ::form_urlencoded::parse(query_string.as_bytes());
|
151 151 | let mut enum_string_query_seen = false;
|
152 152 | let mut length_string_query_seen = false;
|
153 153 | let mut range_byte_query_seen = false;
|
154 154 | let mut range_integer_query_seen = false;
|
155 155 | let mut range_long_query_seen = false;
|
156 156 | let mut range_short_query_seen = false;
|
157 157 | let mut enum_string_list_query = Vec::new();
|
158 158 | let mut length_list_pattern_string_query = Vec::new();
|
159 159 | let mut length_string_list_query = Vec::new();
|
160 160 | let mut length_string_set_query = Vec::new();
|
161 161 | let mut range_byte_list_query = Vec::new();
|
162 162 | let mut range_byte_set_query = Vec::new();
|
163 163 | let mut range_integer_list_query = Vec::new();
|
164 164 | let mut range_integer_set_query = Vec::new();
|
165 165 | let mut range_long_list_query = Vec::new();
|
166 166 | let mut range_long_set_query = Vec::new();
|
167 167 | let mut range_short_list_query = Vec::new();
|
168 168 | let mut range_short_set_query = Vec::new();
|
169 169 | for (k, v) in pairs {
|
170 170 | if !enum_string_query_seen && k == "enumString" {
|
171 171 | input = input.set_enum_string_query(
|
172 172 | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_enum_string_query(&v)?
|
173 173 | );
|
174 174 | enum_string_query_seen = true;
|
175 175 | }
|
176 176 | if !length_string_query_seen && k == "lengthString" {
|
177 177 | input = input.set_length_string_query(
|
178 178 | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_length_string_query(&v)?
|
@@ -1659,1659 +1772,1770 @@
1659 1659 | if let Ok(error) = error.extract::<crate::error::InternalServerException>() {
|
1660 1660 | return error.into();
|
1661 1661 | }
|
1662 1662 | if let Ok(error) = error.extract::<crate::error::ResourceNotFoundException>() {
|
1663 1663 | return error.into();
|
1664 1664 | }
|
1665 1665 | if let Ok(error) = error.extract::<crate::error::AccessDeniedException>() {
|
1666 1666 | return error.into();
|
1667 1667 | }
|
1668 1668 | if let Ok(error) = error.extract::<crate::error::RequestThrottledException>() {
|
1669 1669 | return error.into();
|
1670 1670 | }
|
1671 1671 | if let Ok(error) = error.extract::<crate::error::ServiceQuotaExceededException>() {
|
1672 1672 | return error.into();
|
1673 1673 | }
|
1674 1674 | if let Ok(error) = error.extract::<crate::error::ValidationException>() {
|
1675 1675 | return error.into();
|
1676 1676 | }
|
1677 1677 | crate::error::InternalServerError {
|
1678 1678 | message: error.to_string(),
|
1679 1679 | }
|
1680 1680 | .into()
|
1681 1681 | })
|
1682 1682 | }
|
1683 1683 | }
|
1684 1684 | /// See [`InternalServerError`](crate::error::InternalServerError).
|
1685 1685 | pub mod internal_server_error {
|
1686 1686 |
|
1687 1687 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1688 1688 | /// Holds one variant for each of the ways the builder can fail.
|
1689 - |
|
1690 1689 | #[allow(clippy::enum_variant_names)]
|
1691 1690 | pub enum ConstraintViolation {
|
1692 1691 | /// `message` was not provided but it is required when building `InternalServerError`.
|
1693 1692 | MissingMessage,
|
1694 1693 | }
|
1695 1694 | impl ::std::fmt::Display for ConstraintViolation {
|
1696 1695 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1697 1696 | match self {
|
1698 1697 | ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `InternalServerError`"),
|
1699 1698 | }
|
1700 1699 | }
|
1701 1700 | }
|
1702 1701 | impl ::std::error::Error for ConstraintViolation {}
|
1703 1702 | impl ::std::convert::TryFrom<Builder> for crate::error::InternalServerError {
|
1704 1703 | type Error = ConstraintViolation;
|
1705 1704 |
|
1706 1705 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1707 1706 | builder.build()
|
1708 1707 | }
|
1709 1708 | }
|
1710 1709 | /// A builder for [`InternalServerError`](crate::error::InternalServerError).
|
1711 1710 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1712 1711 | pub struct Builder {
|
1713 1712 | pub(crate) message: ::std::option::Option<::std::string::String>,
|
1714 1713 | }
|
1715 1714 | impl Builder {
|
1716 1715 | #[allow(missing_docs)] // documentation missing in model
|
1717 1716 | pub fn message(mut self, input: ::std::string::String) -> Self {
|
1718 1717 | self.message = Some(input);
|
1719 1718 | self
|
1720 1719 | }
|
1721 1720 | /// Consumes the builder and constructs a [`InternalServerError`](crate::error::InternalServerError).
|
1722 1721 | ///
|
1723 1722 | /// The builder fails to construct a [`InternalServerError`](crate::error::InternalServerError) if you do not provide a value for all non-`Option`al members.
|
1724 1723 | ///
|
1725 1724 | pub fn build(self) -> Result<crate::error::InternalServerError, ConstraintViolation> {
|
1726 1725 | self.build_enforcing_required_and_enum_traits()
|
1727 1726 | }
|
1728 1727 | fn build_enforcing_required_and_enum_traits(
|
1729 1728 | self,
|
1730 1729 | ) -> Result<crate::error::InternalServerError, ConstraintViolation> {
|
1731 1730 | Ok(crate::error::InternalServerError {
|
1732 1731 | message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
|
1733 1732 | })
|
1734 1733 | }
|
1735 1734 | }
|
1736 1735 | }
|
1737 1736 | /// See [`ValidationException`](crate::error::ValidationException).
|
1738 1737 | pub mod validation_exception {
|
1739 1738 |
|
1740 1739 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1741 1740 | /// Holds one variant for each of the ways the builder can fail.
|
1742 - |
|
1743 1741 | #[allow(clippy::enum_variant_names)]
|
1744 1742 | pub enum ConstraintViolation {
|
1745 1743 | /// `message` was not provided but it is required when building `ValidationException`.
|
1746 1744 | MissingMessage,
|
1747 1745 | }
|
1748 1746 | impl ::std::fmt::Display for ConstraintViolation {
|
1749 1747 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1750 1748 | match self {
|
1751 1749 | ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationException`"),
|
1752 1750 | }
|
1753 1751 | }
|
1754 1752 | }
|
1755 1753 | impl ::std::error::Error for ConstraintViolation {}
|
1756 1754 | impl ::std::convert::TryFrom<Builder> for crate::error::ValidationException {
|
1757 1755 | type Error = ConstraintViolation;
|
1758 1756 |
|
1759 1757 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1760 1758 | builder.build()
|
1761 1759 | }
|
1762 1760 | }
|
1763 1761 | /// A builder for [`ValidationException`](crate::error::ValidationException).
|
1764 1762 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1765 1763 | pub struct Builder {
|
1766 1764 | pub(crate) message: ::std::option::Option<::std::string::String>,
|
1767 1765 | pub(crate) field_list:
|
1768 1766 | ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
|
1769 1767 | }
|
1770 1768 | impl Builder {
|
1771 1769 | /// A summary of the validation failure.
|
1772 1770 | pub fn message(mut self, input: ::std::string::String) -> Self {
|
@@ -1922,1920 +1982,1979 @@
1922 1920 | builder.build()
|
1923 1921 | }
|
1924 1922 | }
|
1925 1923 | /// A builder for [`ConflictException`](crate::error::ConflictException).
|
1926 1924 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1927 1925 | pub struct Builder {
|
1928 1926 | pub(crate) message: ::std::option::Option<::std::string::String>,
|
1929 1927 | }
|
1930 1928 | impl Builder {
|
1931 1929 | #[allow(missing_docs)] // documentation missing in model
|
1932 1930 | pub fn message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
1933 1931 | self.message = input;
|
1934 1932 | self
|
1935 1933 | }
|
1936 1934 | /// Consumes the builder and constructs a [`ConflictException`](crate::error::ConflictException).
|
1937 1935 | pub fn build(self) -> crate::error::ConflictException {
|
1938 1936 | self.build_enforcing_required_and_enum_traits()
|
1939 1937 | }
|
1940 1938 | fn build_enforcing_required_and_enum_traits(self) -> crate::error::ConflictException {
|
1941 1939 | crate::error::ConflictException {
|
1942 1940 | message: self.message,
|
1943 1941 | }
|
1944 1942 | }
|
1945 1943 | }
|
1946 1944 | }
|
1947 1945 | /// See [`AccessDeniedException`](crate::error::AccessDeniedException).
|
1948 1946 | pub mod access_denied_exception {
|
1949 1947 |
|
1950 1948 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1951 1949 | /// Holds one variant for each of the ways the builder can fail.
|
1952 - |
|
1953 1950 | #[allow(clippy::enum_variant_names)]
|
1954 1951 | pub enum ConstraintViolation {
|
1955 1952 | /// `reason` was not provided but it is required when building `AccessDeniedException`.
|
1956 1953 | MissingReason,
|
1957 1954 | }
|
1958 1955 | impl ::std::fmt::Display for ConstraintViolation {
|
1959 1956 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1960 1957 | match self {
|
1961 1958 | ConstraintViolation::MissingReason => write!(f, "`reason` was not provided but it is required when building `AccessDeniedException`"),
|
1962 1959 | }
|
1963 1960 | }
|
1964 1961 | }
|
1965 1962 | impl ::std::error::Error for ConstraintViolation {}
|
1966 1963 | impl ::std::convert::TryFrom<Builder> for crate::error::AccessDeniedException {
|
1967 1964 | type Error = ConstraintViolation;
|
1968 1965 |
|
1969 1966 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1970 1967 | builder.build()
|
1971 1968 | }
|
1972 1969 | }
|
1973 1970 | /// A builder for [`AccessDeniedException`](crate::error::AccessDeniedException).
|
1974 1971 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1975 1972 | pub struct Builder {
|
1976 1973 | pub(crate) message: ::std::option::Option<::std::string::String>,
|
1977 1974 | pub(crate) reason: ::std::option::Option<crate::model::AccessDeniedExceptionReason>,
|
1978 1975 | }
|
1979 1976 | impl Builder {
|
1980 1977 | #[allow(missing_docs)] // documentation missing in model
|
1981 1978 | pub fn message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
1982 1979 | self.message = input;
|
@@ -1022,1022 +1082,1081 @@
1022 1022 | .map(|v| match v {
|
1023 1023 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1024 1024 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1025 1025 | })
|
1026 1026 | .map(|res| res.map_err(ConstraintViolation::Description))
|
1027 1027 | .transpose()?
|
1028 1028 | .map(|v: crate::model::Description| v.into()),
|
1029 1029 | })
|
1030 1030 | }
|
1031 1031 | }
|
1032 1032 | impl ::std::fmt::Debug for Builder {
|
1033 1033 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
1034 1034 | let mut formatter = f.debug_struct("Builder");
|
1035 1035 | formatter.field("timeout", &self.timeout);
|
1036 1036 | formatter.field("client_token", &self.client_token);
|
1037 1037 | formatter.field("volume_size", &self.volume_size);
|
1038 1038 | formatter.field("tags", &self.tags);
|
1039 1039 | formatter.field("encrypted", &self.encrypted);
|
1040 1040 | formatter.field("kms_key_arn", &"*** Sensitive Data Redacted ***");
|
1041 1041 | formatter.field("parent_snapshot_id", &self.parent_snapshot_id);
|
1042 1042 | formatter.field("description", &self.description);
|
1043 1043 | formatter.finish()
|
1044 1044 | }
|
1045 1045 | }
|
1046 1046 | }
|
1047 1047 | /// See [`StartSnapshotInput`](crate::input::StartSnapshotInput).
|
1048 1048 | pub mod start_snapshot_input {
|
1049 1049 |
|
1050 1050 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1051 1051 | /// Holds one variant for each of the ways the builder can fail.
|
1052 - |
|
1053 1052 | #[allow(clippy::enum_variant_names)]
|
1054 1053 | pub enum ConstraintViolation {
|
1055 1054 | /// `volume_size` was not provided but it is required when building `StartSnapshotInput`.
|
1056 1055 | MissingVolumeSize,
|
1057 1056 | }
|
1058 1057 | impl ::std::fmt::Display for ConstraintViolation {
|
1059 1058 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1060 1059 | match self {
|
1061 1060 | ConstraintViolation::MissingVolumeSize => write!(f, "`volume_size` was not provided but it is required when building `StartSnapshotInput`"),
|
1062 1061 | }
|
1063 1062 | }
|
1064 1063 | }
|
1065 1064 | impl ::std::error::Error for ConstraintViolation {}
|
1066 1065 | impl ::std::convert::TryFrom<Builder> for crate::input::StartSnapshotInput {
|
1067 1066 | type Error = ConstraintViolation;
|
1068 1067 |
|
1069 1068 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1070 1069 | builder.build()
|
1071 1070 | }
|
1072 1071 | }
|
1073 1072 | /// A builder for [`StartSnapshotInput`](crate::input::StartSnapshotInput).
|
1074 1073 | #[derive(::std::clone::Clone, ::std::default::Default)]
|
1075 1074 | pub struct Builder {
|
1076 1075 | pub(crate) timeout: ::std::option::Option<i32>,
|
1077 1076 | pub(crate) client_token: ::std::option::Option<::std::string::String>,
|
1078 1077 | pub(crate) volume_size: ::std::option::Option<i64>,
|
1079 1078 | pub(crate) tags: ::std::option::Option<::std::vec::Vec<crate::model::Tag>>,
|
1080 1079 | pub(crate) encrypted: ::std::option::Option<bool>,
|
1081 1080 | pub(crate) kms_key_arn: ::std::option::Option<::std::string::String>,
|
1082 1081 | pub(crate) parent_snapshot_id: ::std::option::Option<::std::string::String>,
|
@@ -1440,1439 +1500,1498 @@
1440 1439 | .checksum_algorithm
|
1441 1440 | .map(|v| match v {
|
1442 1441 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1443 1442 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1444 1443 | })
|
1445 1444 | .map(|res| res.map_err(ConstraintViolation::ChecksumAlgorithm))
|
1446 1445 | .transpose()?
|
1447 1446 | .ok_or(ConstraintViolation::MissingChecksumAlgorithm)?,
|
1448 1447 | })
|
1449 1448 | }
|
1450 1449 | }
|
1451 1450 | impl ::std::fmt::Debug for Builder {
|
1452 1451 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
1453 1452 | let mut formatter = f.debug_struct("Builder");
|
1454 1453 | formatter.field("snapshot_id", &self.snapshot_id);
|
1455 1454 | formatter.field("block_index", &self.block_index);
|
1456 1455 | formatter.field("checksum", &self.checksum);
|
1457 1456 | formatter.field("progress", &self.progress);
|
1458 1457 | formatter.field("block_data", &"*** Sensitive Data Redacted ***");
|
1459 1458 | formatter.field("data_length", &self.data_length);
|
1460 1459 | formatter.field("checksum_algorithm", &self.checksum_algorithm);
|
1461 1460 | formatter.finish()
|
1462 1461 | }
|
1463 1462 | }
|
1464 1463 | }
|
1465 1464 | /// See [`PutSnapshotBlockInput`](crate::input::PutSnapshotBlockInput).
|
1466 1465 | pub mod put_snapshot_block_input {
|
1467 1466 |
|
1468 1467 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1469 1468 | /// Holds one variant for each of the ways the builder can fail.
|
1470 - |
|
1471 1469 | #[allow(clippy::enum_variant_names)]
|
1472 1470 | pub enum ConstraintViolation {
|
1473 1471 | /// `snapshot_id` was not provided but it is required when building `PutSnapshotBlockInput`.
|
1474 1472 | MissingSnapshotId,
|
1475 1473 | /// `block_index` was not provided but it is required when building `PutSnapshotBlockInput`.
|
1476 1474 | MissingBlockIndex,
|
1477 1475 | /// `checksum` was not provided but it is required when building `PutSnapshotBlockInput`.
|
1478 1476 | MissingChecksum,
|
1479 1477 | /// `block_data` was not provided but it is required when building `PutSnapshotBlockInput`.
|
1480 1478 | MissingBlockData,
|
1481 1479 | /// `data_length` was not provided but it is required when building `PutSnapshotBlockInput`.
|
1482 1480 | MissingDataLength,
|
1483 1481 | /// `checksum_algorithm` was not provided but it is required when building `PutSnapshotBlockInput`.
|
1484 1482 | MissingChecksumAlgorithm,
|
1485 1483 | }
|
1486 1484 | impl ::std::fmt::Display for ConstraintViolation {
|
1487 1485 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1488 1486 | match self {
|
1489 1487 | ConstraintViolation::MissingSnapshotId => write!(f, "`snapshot_id` was not provided but it is required when building `PutSnapshotBlockInput`"),
|
1490 1488 | ConstraintViolation::MissingBlockIndex => write!(f, "`block_index` was not provided but it is required when building `PutSnapshotBlockInput`"),
|
1491 1489 | ConstraintViolation::MissingChecksum => write!(f, "`checksum` was not provided but it is required when building `PutSnapshotBlockInput`"),
|
1492 1490 | ConstraintViolation::MissingBlockData => write!(f, "`block_data` was not provided but it is required when building `PutSnapshotBlockInput`"),
|
1493 1491 | ConstraintViolation::MissingDataLength => write!(f, "`data_length` was not provided but it is required when building `PutSnapshotBlockInput`"),
|
1494 1492 | ConstraintViolation::MissingChecksumAlgorithm => write!(f, "`checksum_algorithm` was not provided but it is required when building `PutSnapshotBlockInput`"),
|
1495 1493 | }
|
1496 1494 | }
|
1497 1495 | }
|
1498 1496 | impl ::std::error::Error for ConstraintViolation {}
|
1499 1497 | impl ::std::convert::TryFrom<Builder> for crate::input::PutSnapshotBlockInput {
|
1500 1498 | type Error = ConstraintViolation;
|
@@ -1761,1759 +1821,1818 @@
1761 1759 | .transpose()?
|
1762 1760 | .map(|v: crate::model::BlockIndex| v.into()),
|
1763 1761 | next_token: self
|
1764 1762 | .next_token
|
1765 1763 | .map(|v| match v {
|
1766 1764 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1767 1765 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1768 1766 | })
|
1769 1767 | .map(|res| res.map_err(ConstraintViolation::NextToken))
|
1770 1768 | .transpose()?
|
1771 1769 | .map(|v: crate::model::PageToken| v.into()),
|
1772 1770 | snapshot_id: self
|
1773 1771 | .snapshot_id
|
1774 1772 | .map(|v| match v {
|
1775 1773 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
1776 1774 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
1777 1775 | })
|
1778 1776 | .map(|res| res.map_err(ConstraintViolation::SnapshotId))
|
1779 1777 | .transpose()?
|
1780 1778 | .map(|v: crate::model::SnapshotId| v.into())
|
1781 1779 | .ok_or(ConstraintViolation::MissingSnapshotId)?,
|
1782 1780 | })
|
1783 1781 | }
|
1784 1782 | }
|
1785 1783 | }
|
1786 1784 | /// See [`ListSnapshotBlocksInput`](crate::input::ListSnapshotBlocksInput).
|
1787 1785 | pub mod list_snapshot_blocks_input {
|
1788 1786 |
|
1789 1787 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1790 1788 | /// Holds one variant for each of the ways the builder can fail.
|
1791 - |
|
1792 1789 | #[allow(clippy::enum_variant_names)]
|
1793 1790 | pub enum ConstraintViolation {
|
1794 1791 | /// `snapshot_id` was not provided but it is required when building `ListSnapshotBlocksInput`.
|
1795 1792 | MissingSnapshotId,
|
1796 1793 | }
|
1797 1794 | impl ::std::fmt::Display for ConstraintViolation {
|
1798 1795 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1799 1796 | match self {
|
1800 1797 | ConstraintViolation::MissingSnapshotId => write!(f, "`snapshot_id` was not provided but it is required when building `ListSnapshotBlocksInput`"),
|
1801 1798 | }
|
1802 1799 | }
|
1803 1800 | }
|
1804 1801 | impl ::std::error::Error for ConstraintViolation {}
|
1805 1802 | impl ::std::convert::TryFrom<Builder> for crate::input::ListSnapshotBlocksInput {
|
1806 1803 | type Error = ConstraintViolation;
|
1807 1804 |
|
1808 1805 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1809 1806 | builder.build()
|
1810 1807 | }
|
1811 1808 | }
|
1812 1809 | /// A builder for [`ListSnapshotBlocksInput`](crate::input::ListSnapshotBlocksInput).
|
1813 1810 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1814 1811 | pub struct Builder {
|
1815 1812 | pub(crate) max_results: ::std::option::Option<i32>,
|
1816 1813 | pub(crate) starting_block_index: ::std::option::Option<i32>,
|
1817 1814 | pub(crate) next_token: ::std::option::Option<::std::string::String>,
|
1818 1815 | pub(crate) snapshot_id: ::std::option::Option<::std::string::String>,
|
1819 1816 | }
|
1820 1817 | impl Builder {
|
1821 1818 | /// <p>The number of results to return.</p>
|
@@ -2065,2062 +2125,2121 @@
2065 2062 | .map(|res| res.map_err(ConstraintViolation::NextToken))
|
2066 2063 | .transpose()?
|
2067 2064 | .map(|v: crate::model::PageToken| v.into()),
|
2068 2065 | max_results: self
|
2069 2066 | .max_results
|
2070 2067 | .map(|v| match v {
|
2071 2068 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2072 2069 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2073 2070 | })
|
2074 2071 | .map(|res| res.map_err(ConstraintViolation::MaxResults))
|
2075 2072 | .transpose()?
|
2076 2073 | .map(|v: crate::model::MaxResults| v.into()),
|
2077 2074 | starting_block_index: self
|
2078 2075 | .starting_block_index
|
2079 2076 | .map(|v| match v {
|
2080 2077 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2081 2078 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2082 2079 | })
|
2083 2080 | .map(|res| res.map_err(ConstraintViolation::StartingBlockIndex))
|
2084 2081 | .transpose()?
|
2085 2082 | .map(|v: crate::model::BlockIndex| v.into()),
|
2086 2083 | })
|
2087 2084 | }
|
2088 2085 | }
|
2089 2086 | }
|
2090 2087 | /// See [`ListChangedBlocksInput`](crate::input::ListChangedBlocksInput).
|
2091 2088 | pub mod list_changed_blocks_input {
|
2092 2089 |
|
2093 2090 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2094 2091 | /// Holds one variant for each of the ways the builder can fail.
|
2095 - |
|
2096 2092 | #[allow(clippy::enum_variant_names)]
|
2097 2093 | pub enum ConstraintViolation {
|
2098 2094 | /// `second_snapshot_id` was not provided but it is required when building `ListChangedBlocksInput`.
|
2099 2095 | MissingSecondSnapshotId,
|
2100 2096 | }
|
2101 2097 | impl ::std::fmt::Display for ConstraintViolation {
|
2102 2098 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2103 2099 | match self {
|
2104 2100 | ConstraintViolation::MissingSecondSnapshotId => write!(f, "`second_snapshot_id` was not provided but it is required when building `ListChangedBlocksInput`"),
|
2105 2101 | }
|
2106 2102 | }
|
2107 2103 | }
|
2108 2104 | impl ::std::error::Error for ConstraintViolation {}
|
2109 2105 | impl ::std::convert::TryFrom<Builder> for crate::input::ListChangedBlocksInput {
|
2110 2106 | type Error = ConstraintViolation;
|
2111 2107 |
|
2112 2108 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2113 2109 | builder.build()
|
2114 2110 | }
|
2115 2111 | }
|
2116 2112 | /// A builder for [`ListChangedBlocksInput`](crate::input::ListChangedBlocksInput).
|
2117 2113 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2118 2114 | pub struct Builder {
|
2119 2115 | pub(crate) second_snapshot_id: ::std::option::Option<::std::string::String>,
|
2120 2116 | pub(crate) first_snapshot_id: ::std::option::Option<::std::string::String>,
|
2121 2117 | pub(crate) next_token: ::std::option::Option<::std::string::String>,
|
2122 2118 | pub(crate) max_results: ::std::option::Option<i32>,
|
2123 2119 | pub(crate) starting_block_index: ::std::option::Option<i32>,
|
2124 2120 | }
|
2125 2121 | impl Builder {
|
@@ -2339,2335 +2399,2394 @@
2339 2335 | .ok_or(ConstraintViolation::MissingSnapshotId)?,
|
2340 2336 | block_token: self
|
2341 2337 | .block_token
|
2342 2338 | .map(|v| match v {
|
2343 2339 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2344 2340 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2345 2341 | })
|
2346 2342 | .map(|res| res.map_err(ConstraintViolation::BlockToken))
|
2347 2343 | .transpose()?
|
2348 2344 | .map(|v: crate::model::BlockToken| v.into())
|
2349 2345 | .ok_or(ConstraintViolation::MissingBlockToken)?,
|
2350 2346 | block_index: self
|
2351 2347 | .block_index
|
2352 2348 | .map(|v| match v {
|
2353 2349 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2354 2350 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2355 2351 | })
|
2356 2352 | .map(|res| res.map_err(ConstraintViolation::BlockIndex))
|
2357 2353 | .transpose()?
|
2358 2354 | .map(|v: crate::model::BlockIndex| v.into())
|
2359 2355 | .ok_or(ConstraintViolation::MissingBlockIndex)?,
|
2360 2356 | })
|
2361 2357 | }
|
2362 2358 | }
|
2363 2359 | }
|
2364 2360 | /// See [`GetSnapshotBlockInput`](crate::input::GetSnapshotBlockInput).
|
2365 2361 | pub mod get_snapshot_block_input {
|
2366 2362 |
|
2367 2363 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2368 2364 | /// Holds one variant for each of the ways the builder can fail.
|
2369 - |
|
2370 2365 | #[allow(clippy::enum_variant_names)]
|
2371 2366 | pub enum ConstraintViolation {
|
2372 2367 | /// `snapshot_id` was not provided but it is required when building `GetSnapshotBlockInput`.
|
2373 2368 | MissingSnapshotId,
|
2374 2369 | /// `block_token` was not provided but it is required when building `GetSnapshotBlockInput`.
|
2375 2370 | MissingBlockToken,
|
2376 2371 | /// `block_index` was not provided but it is required when building `GetSnapshotBlockInput`.
|
2377 2372 | MissingBlockIndex,
|
2378 2373 | }
|
2379 2374 | impl ::std::fmt::Display for ConstraintViolation {
|
2380 2375 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2381 2376 | match self {
|
2382 2377 | ConstraintViolation::MissingSnapshotId => write!(f, "`snapshot_id` was not provided but it is required when building `GetSnapshotBlockInput`"),
|
2383 2378 | ConstraintViolation::MissingBlockToken => write!(f, "`block_token` was not provided but it is required when building `GetSnapshotBlockInput`"),
|
2384 2379 | ConstraintViolation::MissingBlockIndex => write!(f, "`block_index` was not provided but it is required when building `GetSnapshotBlockInput`"),
|
2385 2380 | }
|
2386 2381 | }
|
2387 2382 | }
|
2388 2383 | impl ::std::error::Error for ConstraintViolation {}
|
2389 2384 | impl ::std::convert::TryFrom<Builder> for crate::input::GetSnapshotBlockInput {
|
2390 2385 | type Error = ConstraintViolation;
|
2391 2386 |
|
2392 2387 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2393 2388 | builder.build()
|
2394 2389 | }
|
2395 2390 | }
|
2396 2391 | /// A builder for [`GetSnapshotBlockInput`](crate::input::GetSnapshotBlockInput).
|
2397 2392 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2398 2393 | pub struct Builder {
|
2399 2394 | pub(crate) snapshot_id: ::std::option::Option<::std::string::String>,
|
@@ -2653,2648 +2713,2707 @@
2653 2648 | .map(|res| res.map_err(ConstraintViolation::ChecksumAlgorithm))
|
2654 2649 | .transpose()?,
|
2655 2650 | snapshot_id: self
|
2656 2651 | .snapshot_id
|
2657 2652 | .map(|v| match v {
|
2658 2653 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2659 2654 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2660 2655 | })
|
2661 2656 | .map(|res| res.map_err(ConstraintViolation::SnapshotId))
|
2662 2657 | .transpose()?
|
2663 2658 | .map(|v: crate::model::SnapshotId| v.into())
|
2664 2659 | .ok_or(ConstraintViolation::MissingSnapshotId)?,
|
2665 2660 | checksum: self
|
2666 2661 | .checksum
|
2667 2662 | .map(|v| match v {
|
2668 2663 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
2669 2664 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
2670 2665 | })
|
2671 2666 | .map(|res| res.map_err(ConstraintViolation::Checksum))
|
2672 2667 | .transpose()?
|
2673 2668 | .map(|v: crate::model::Checksum| v.into()),
|
2674 2669 | })
|
2675 2670 | }
|
2676 2671 | }
|
2677 2672 | }
|
2678 2673 | /// See [`CompleteSnapshotInput`](crate::input::CompleteSnapshotInput).
|
2679 2674 | pub mod complete_snapshot_input {
|
2680 2675 |
|
2681 2676 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2682 2677 | /// Holds one variant for each of the ways the builder can fail.
|
2683 - |
|
2684 2678 | #[allow(clippy::enum_variant_names)]
|
2685 2679 | pub enum ConstraintViolation {
|
2686 2680 | /// `changed_blocks_count` was not provided but it is required when building `CompleteSnapshotInput`.
|
2687 2681 | MissingChangedBlocksCount,
|
2688 2682 | /// `snapshot_id` was not provided but it is required when building `CompleteSnapshotInput`.
|
2689 2683 | MissingSnapshotId,
|
2690 2684 | }
|
2691 2685 | impl ::std::fmt::Display for ConstraintViolation {
|
2692 2686 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2693 2687 | match self {
|
2694 2688 | ConstraintViolation::MissingChangedBlocksCount => write!(f, "`changed_blocks_count` was not provided but it is required when building `CompleteSnapshotInput`"),
|
2695 2689 | ConstraintViolation::MissingSnapshotId => write!(f, "`snapshot_id` was not provided but it is required when building `CompleteSnapshotInput`"),
|
2696 2690 | }
|
2697 2691 | }
|
2698 2692 | }
|
2699 2693 | impl ::std::error::Error for ConstraintViolation {}
|
2700 2694 | impl ::std::convert::TryFrom<Builder> for crate::input::CompleteSnapshotInput {
|
2701 2695 | type Error = ConstraintViolation;
|
2702 2696 |
|
2703 2697 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2704 2698 | builder.build()
|
2705 2699 | }
|
2706 2700 | }
|
2707 2701 | /// A builder for [`CompleteSnapshotInput`](crate::input::CompleteSnapshotInput).
|
2708 2702 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2709 2703 | pub struct Builder {
|
2710 2704 | pub(crate) changed_blocks_count: ::std::option::Option<i32>,
|
2711 2705 | pub(crate) checksum_aggregation_method:
|
2712 2706 | ::std::option::Option<crate::model::ChecksumAggregationMethod>,
|
2713 2707 | pub(crate) checksum_algorithm: ::std::option::Option<crate::model::ChecksumAlgorithm>,
|