50 50 | "com.amazonaws.route53.synthetic",
|
51 51 | "ListGeoLocationsOutput",
|
52 52 | );
|
53 53 | static LISTGEOLOCATIONSOUTPUT_MEMBER_GEO_LOCATION_DETAILS_LIST: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
54 54 | ::aws_smithy_schema::ShapeId::from_static(
|
55 55 | "com.amazonaws.route53.synthetic#ListGeoLocationsOutput$GeoLocationDetailsList",
|
56 56 | "com.amazonaws.route53.synthetic",
|
57 57 | "ListGeoLocationsOutput",
|
58 58 | ),
|
59 59 | ::aws_smithy_schema::ShapeType::List,
|
60 - | "geo_location_details_list",
|
60 + | "GeoLocationDetailsList",
|
61 61 | 0,
|
62 62 | );
|
63 63 | static LISTGEOLOCATIONSOUTPUT_MEMBER_IS_TRUNCATED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
64 64 | ::aws_smithy_schema::ShapeId::from_static(
|
65 65 | "com.amazonaws.route53.synthetic#ListGeoLocationsOutput$IsTruncated",
|
66 66 | "com.amazonaws.route53.synthetic",
|
67 67 | "ListGeoLocationsOutput",
|
68 68 | ),
|
69 69 | ::aws_smithy_schema::ShapeType::Boolean,
|
70 - | "is_truncated",
|
70 + | "IsTruncated",
|
71 71 | 1,
|
72 72 | );
|
73 73 | static LISTGEOLOCATIONSOUTPUT_MEMBER_NEXT_CONTINENT_CODE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
74 74 | ::aws_smithy_schema::ShapeId::from_static(
|
75 75 | "com.amazonaws.route53.synthetic#ListGeoLocationsOutput$NextContinentCode",
|
76 76 | "com.amazonaws.route53.synthetic",
|
77 77 | "ListGeoLocationsOutput",
|
78 78 | ),
|
79 79 | ::aws_smithy_schema::ShapeType::String,
|
80 - | "next_continent_code",
|
80 + | "NextContinentCode",
|
81 81 | 2,
|
82 82 | );
|
83 83 | static LISTGEOLOCATIONSOUTPUT_MEMBER_NEXT_COUNTRY_CODE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
84 84 | ::aws_smithy_schema::ShapeId::from_static(
|
85 85 | "com.amazonaws.route53.synthetic#ListGeoLocationsOutput$NextCountryCode",
|
86 86 | "com.amazonaws.route53.synthetic",
|
87 87 | "ListGeoLocationsOutput",
|
88 88 | ),
|
89 89 | ::aws_smithy_schema::ShapeType::String,
|
90 - | "next_country_code",
|
90 + | "NextCountryCode",
|
91 91 | 3,
|
92 92 | );
|
93 93 | static LISTGEOLOCATIONSOUTPUT_MEMBER_NEXT_SUBDIVISION_CODE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
94 94 | ::aws_smithy_schema::ShapeId::from_static(
|
95 95 | "com.amazonaws.route53.synthetic#ListGeoLocationsOutput$NextSubdivisionCode",
|
96 96 | "com.amazonaws.route53.synthetic",
|
97 97 | "ListGeoLocationsOutput",
|
98 98 | ),
|
99 99 | ::aws_smithy_schema::ShapeType::String,
|
100 - | "next_subdivision_code",
|
100 + | "NextSubdivisionCode",
|
101 101 | 4,
|
102 102 | );
|
103 103 | static LISTGEOLOCATIONSOUTPUT_MEMBER_MAX_ITEMS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
104 104 | ::aws_smithy_schema::ShapeId::from_static(
|
105 105 | "com.amazonaws.route53.synthetic#ListGeoLocationsOutput$MaxItems",
|
106 106 | "com.amazonaws.route53.synthetic",
|
107 107 | "ListGeoLocationsOutput",
|
108 108 | ),
|
109 109 | ::aws_smithy_schema::ShapeType::Integer,
|
110 - | "max_items",
|
110 + | "MaxItems",
|
111 111 | 5,
|
112 112 | );
|
113 + | static LISTGEOLOCATIONSOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
114 + | ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
|
115 + | ::aws_smithy_schema::ShapeType::String,
|
116 + | "request_id",
|
117 + | 6,
|
118 + | )
|
119 + | .with_http_header("x-amzn-requestid");
|
113 120 | static LISTGEOLOCATIONSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
114 121 | LISTGEOLOCATIONSOUTPUT_SCHEMA_ID,
|
115 122 | ::aws_smithy_schema::ShapeType::Structure,
|
116 123 | &[
|
117 124 | &LISTGEOLOCATIONSOUTPUT_MEMBER_GEO_LOCATION_DETAILS_LIST,
|
118 125 | &LISTGEOLOCATIONSOUTPUT_MEMBER_IS_TRUNCATED,
|
119 126 | &LISTGEOLOCATIONSOUTPUT_MEMBER_NEXT_CONTINENT_CODE,
|
120 127 | &LISTGEOLOCATIONSOUTPUT_MEMBER_NEXT_COUNTRY_CODE,
|
121 128 | &LISTGEOLOCATIONSOUTPUT_MEMBER_NEXT_SUBDIVISION_CODE,
|
122 129 | &LISTGEOLOCATIONSOUTPUT_MEMBER_MAX_ITEMS,
|
130 + | &LISTGEOLOCATIONSOUTPUT_MEMBER__REQUEST_ID,
|
123 131 | ],
|
124 132 | );
|
125 133 | impl ListGeoLocationsOutput {
|
126 134 | /// The schema for this shape.
|
127 135 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &LISTGEOLOCATIONSOUTPUT_SCHEMA;
|
128 136 | }
|
129 137 | impl ::aws_smithy_schema::serde::SerializableStruct for ListGeoLocationsOutput {
|
130 138 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
131 139 | fn serialize_members(
|
132 140 | &self,
|
133 141 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
134 142 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
135 143 | {
|
136 144 | let val = &self.geo_location_details_list;
|
137 145 |
|
138 146 | ser.write_list(
|
139 147 | &LISTGEOLOCATIONSOUTPUT_MEMBER_GEO_LOCATION_DETAILS_LIST,
|
140 148 | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
141 149 | for item in val {
|
142 150 | ser.write_struct(crate::types::GeoLocationDetails::SCHEMA, item)?;
|
143 151 | }
|
144 152 | Ok(())
|
145 153 | },
|
146 154 | )?;
|
147 155 | }
|
148 156 | {
|
149 157 | let val = &self.is_truncated;
|
150 158 | ser.write_boolean(&LISTGEOLOCATIONSOUTPUT_MEMBER_IS_TRUNCATED, *val)?;
|
151 159 | }
|
152 160 | if let Some(ref val) = self.next_continent_code {
|
153 161 | ser.write_string(&LISTGEOLOCATIONSOUTPUT_MEMBER_NEXT_CONTINENT_CODE, val)?;
|
154 162 | }
|
155 163 | if let Some(ref val) = self.next_country_code {
|
156 164 | ser.write_string(&LISTGEOLOCATIONSOUTPUT_MEMBER_NEXT_COUNTRY_CODE, val)?;
|
157 165 | }
|
158 166 | if let Some(ref val) = self.next_subdivision_code {
|
159 167 | ser.write_string(&LISTGEOLOCATIONSOUTPUT_MEMBER_NEXT_SUBDIVISION_CODE, val)?;
|
160 168 | }
|
161 169 | {
|
162 170 | let val = &self.max_items;
|
163 171 | ser.write_integer(&LISTGEOLOCATIONSOUTPUT_MEMBER_MAX_ITEMS, *val)?;
|
164 172 | }
|
165 173 | Ok(())
|
166 174 | }
|
167 175 | }
|
168 176 | impl ListGeoLocationsOutput {
|
169 177 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
170 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
171 - | deserializer: &mut D,
|
178 + | pub fn deserialize(
|
179 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
172 180 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
173 181 | #[allow(unused_variables, unused_mut)]
|
174 182 | let mut builder = Self::builder();
|
175 183 | #[allow(
|
176 184 | unused_variables,
|
177 185 | unreachable_code,
|
178 186 | clippy::single_match,
|
179 187 | clippy::match_single_binding,
|
180 188 | clippy::diverging_sub_expression
|
181 189 | )]
|
182 - | deserializer.read_struct(&LISTGEOLOCATIONSOUTPUT_SCHEMA, (), |_, member, deser| {
|
190 + | deserializer.read_struct(&LISTGEOLOCATIONSOUTPUT_SCHEMA, &mut |member, deser| {
|
191 + | match member.member_index() {
|
192 + | Some(0) => {
|
193 + | builder.geo_location_details_list = Some({
|
194 + | let mut container = Vec::new();
|
195 + | deser.read_list(member, &mut |deser| {
|
196 + | container.push(crate::types::GeoLocationDetails::deserialize(deser)?);
|
197 + | Ok(())
|
198 + | })?;
|
199 + | container
|
200 + | });
|
201 + | }
|
202 + | Some(1) => {
|
203 + | builder.is_truncated = Some(deser.read_boolean(member)?);
|
204 + | }
|
205 + | Some(2) => {
|
206 + | builder.next_continent_code = Some(deser.read_string(member)?);
|
207 + | }
|
208 + | Some(3) => {
|
209 + | builder.next_country_code = Some(deser.read_string(member)?);
|
210 + | }
|
211 + | Some(4) => {
|
212 + | builder.next_subdivision_code = Some(deser.read_string(member)?);
|
213 + | }
|
214 + | Some(5) => {
|
215 + | builder.max_items = Some(deser.read_integer(member)?);
|
216 + | }
|
217 + | Some(6) => {
|
218 + | builder._request_id = Some(deser.read_string(member)?);
|
219 + | }
|
220 + | _ => {}
|
221 + | }
|
222 + | Ok(())
|
223 + | })?;
|
224 + | builder.geo_location_details_list = builder.geo_location_details_list.or(Some(Vec::new()));
|
225 + | builder.is_truncated = builder.is_truncated.or(Some(false));
|
226 + | builder.max_items = builder.max_items.or(Some(0i32));
|
227 + | builder
|
228 + | .build()
|
229 + | .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
|
230 + | }
|
231 + | }
|
232 + | impl ListGeoLocationsOutput {
|
233 + | /// Deserializes this structure from a body deserializer and HTTP response headers.
|
234 + | /// Header-bound members are read directly from headers, avoiding runtime
|
235 + | /// member iteration overhead. Body members are read via the deserializer.
|
236 + | pub fn deserialize_with_response(
|
237 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
238 + | headers: &::aws_smithy_runtime_api::http::Headers,
|
239 + | _status: u16,
|
240 + | _body: &[u8],
|
241 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
242 + | #[allow(unused_variables, unused_mut)]
|
243 + | let mut builder = Self::builder();
|
244 + | if let Some(val) = headers.get("x-amzn-requestid") {
|
245 + | builder._request_id = Some(val.to_string());
|
246 + | }
|
247 + | #[allow(
|
248 + | unused_variables,
|
249 + | unreachable_code,
|
250 + | clippy::single_match,
|
251 + | clippy::match_single_binding,
|
252 + | clippy::diverging_sub_expression
|
253 + | )]
|
254 + | deserializer.read_struct(&LISTGEOLOCATIONSOUTPUT_SCHEMA, &mut |member, deser| {
|
183 255 | match member.member_index() {
|
184 256 | Some(0) => {
|
185 257 | builder.geo_location_details_list = Some({
|
186 - | let container = if let Some(cap) = deser.container_size() {
|
187 - | Vec::with_capacity(cap)
|
188 - | } else {
|
189 - | Vec::new()
|
190 - | };
|
191 - | deser.read_list(member, container, |mut list, deser| {
|
192 - | list.push(crate::types::GeoLocationDetails::deserialize(deser)?);
|
193 - | Ok(list)
|
194 - | })?
|
258 + | let mut container = Vec::new();
|
259 + | deser.read_list(member, &mut |deser| {
|
260 + | container.push(crate::types::GeoLocationDetails::deserialize(deser)?);
|
261 + | Ok(())
|
262 + | })?;
|
263 + | container
|
195 264 | });
|
196 265 | }
|
197 266 | Some(1) => {
|
198 267 | builder.is_truncated = Some(deser.read_boolean(member)?);
|
199 268 | }
|
200 269 | Some(2) => {
|
201 270 | builder.next_continent_code = Some(deser.read_string(member)?);
|
202 271 | }
|
203 272 | Some(3) => {
|
204 273 | builder.next_country_code = Some(deser.read_string(member)?);
|