136 136 | "com.amazonaws.transcribestreaming",
|
137 137 | "MedicalScribeStreamDetails",
|
138 138 | );
|
139 139 | static MEDICALSCRIBESTREAMDETAILS_MEMBER_SESSION_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
140 140 | ::aws_smithy_schema::ShapeId::from_static(
|
141 141 | "com.amazonaws.transcribestreaming#MedicalScribeStreamDetails$SessionId",
|
142 142 | "com.amazonaws.transcribestreaming",
|
143 143 | "MedicalScribeStreamDetails",
|
144 144 | ),
|
145 145 | ::aws_smithy_schema::ShapeType::String,
|
146 - | "session_id",
|
146 + | "SessionId",
|
147 147 | 0,
|
148 148 | );
|
149 149 | static MEDICALSCRIBESTREAMDETAILS_MEMBER_STREAM_CREATED_AT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
150 150 | ::aws_smithy_schema::ShapeId::from_static(
|
151 151 | "com.amazonaws.transcribestreaming#MedicalScribeStreamDetails$StreamCreatedAt",
|
152 152 | "com.amazonaws.transcribestreaming",
|
153 153 | "MedicalScribeStreamDetails",
|
154 154 | ),
|
155 155 | ::aws_smithy_schema::ShapeType::Timestamp,
|
156 - | "stream_created_at",
|
156 + | "StreamCreatedAt",
|
157 157 | 1,
|
158 158 | );
|
159 159 | static MEDICALSCRIBESTREAMDETAILS_MEMBER_STREAM_ENDED_AT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
160 160 | ::aws_smithy_schema::ShapeId::from_static(
|
161 161 | "com.amazonaws.transcribestreaming#MedicalScribeStreamDetails$StreamEndedAt",
|
162 162 | "com.amazonaws.transcribestreaming",
|
163 163 | "MedicalScribeStreamDetails",
|
164 164 | ),
|
165 165 | ::aws_smithy_schema::ShapeType::Timestamp,
|
166 - | "stream_ended_at",
|
166 + | "StreamEndedAt",
|
167 167 | 2,
|
168 168 | );
|
169 169 | static MEDICALSCRIBESTREAMDETAILS_MEMBER_LANGUAGE_CODE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
170 170 | ::aws_smithy_schema::ShapeId::from_static(
|
171 171 | "com.amazonaws.transcribestreaming#MedicalScribeStreamDetails$LanguageCode",
|
172 172 | "com.amazonaws.transcribestreaming",
|
173 173 | "MedicalScribeStreamDetails",
|
174 174 | ),
|
175 175 | ::aws_smithy_schema::ShapeType::String,
|
176 - | "language_code",
|
176 + | "LanguageCode",
|
177 177 | 3,
|
178 178 | );
|
179 179 | static MEDICALSCRIBESTREAMDETAILS_MEMBER_MEDIA_SAMPLE_RATE_HERTZ: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
180 180 | ::aws_smithy_schema::ShapeId::from_static(
|
181 181 | "com.amazonaws.transcribestreaming#MedicalScribeStreamDetails$MediaSampleRateHertz",
|
182 182 | "com.amazonaws.transcribestreaming",
|
183 183 | "MedicalScribeStreamDetails",
|
184 184 | ),
|
185 185 | ::aws_smithy_schema::ShapeType::Integer,
|
186 - | "media_sample_rate_hertz",
|
186 + | "MediaSampleRateHertz",
|
187 187 | 4,
|
188 188 | );
|
189 189 | static MEDICALSCRIBESTREAMDETAILS_MEMBER_MEDIA_ENCODING: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
190 190 | ::aws_smithy_schema::ShapeId::from_static(
|
191 191 | "com.amazonaws.transcribestreaming#MedicalScribeStreamDetails$MediaEncoding",
|
192 192 | "com.amazonaws.transcribestreaming",
|
193 193 | "MedicalScribeStreamDetails",
|
194 194 | ),
|
195 195 | ::aws_smithy_schema::ShapeType::String,
|
196 - | "media_encoding",
|
196 + | "MediaEncoding",
|
197 197 | 5,
|
198 198 | );
|
199 199 | static MEDICALSCRIBESTREAMDETAILS_MEMBER_VOCABULARY_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
200 200 | ::aws_smithy_schema::ShapeId::from_static(
|
201 201 | "com.amazonaws.transcribestreaming#MedicalScribeStreamDetails$VocabularyName",
|
202 202 | "com.amazonaws.transcribestreaming",
|
203 203 | "MedicalScribeStreamDetails",
|
204 204 | ),
|
205 205 | ::aws_smithy_schema::ShapeType::String,
|
206 - | "vocabulary_name",
|
206 + | "VocabularyName",
|
207 207 | 6,
|
208 208 | );
|
209 209 | static MEDICALSCRIBESTREAMDETAILS_MEMBER_VOCABULARY_FILTER_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
210 210 | ::aws_smithy_schema::ShapeId::from_static(
|
211 211 | "com.amazonaws.transcribestreaming#MedicalScribeStreamDetails$VocabularyFilterName",
|
212 212 | "com.amazonaws.transcribestreaming",
|
213 213 | "MedicalScribeStreamDetails",
|
214 214 | ),
|
215 215 | ::aws_smithy_schema::ShapeType::String,
|
216 - | "vocabulary_filter_name",
|
216 + | "VocabularyFilterName",
|
217 217 | 7,
|
218 218 | );
|
219 219 | static MEDICALSCRIBESTREAMDETAILS_MEMBER_VOCABULARY_FILTER_METHOD: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
220 220 | ::aws_smithy_schema::ShapeId::from_static(
|
221 221 | "com.amazonaws.transcribestreaming#MedicalScribeStreamDetails$VocabularyFilterMethod",
|
222 222 | "com.amazonaws.transcribestreaming",
|
223 223 | "MedicalScribeStreamDetails",
|
224 224 | ),
|
225 225 | ::aws_smithy_schema::ShapeType::String,
|
226 - | "vocabulary_filter_method",
|
226 + | "VocabularyFilterMethod",
|
227 227 | 8,
|
228 228 | );
|
229 229 | static MEDICALSCRIBESTREAMDETAILS_MEMBER_RESOURCE_ACCESS_ROLE_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
230 230 | ::aws_smithy_schema::ShapeId::from_static(
|
231 231 | "com.amazonaws.transcribestreaming#MedicalScribeStreamDetails$ResourceAccessRoleArn",
|
232 232 | "com.amazonaws.transcribestreaming",
|
233 233 | "MedicalScribeStreamDetails",
|
234 234 | ),
|
235 235 | ::aws_smithy_schema::ShapeType::String,
|
236 - | "resource_access_role_arn",
|
236 + | "ResourceAccessRoleArn",
|
237 237 | 9,
|
238 238 | );
|
239 239 | static MEDICALSCRIBESTREAMDETAILS_MEMBER_CHANNEL_DEFINITIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
240 240 | ::aws_smithy_schema::ShapeId::from_static(
|
241 241 | "com.amazonaws.transcribestreaming#MedicalScribeStreamDetails$ChannelDefinitions",
|
242 242 | "com.amazonaws.transcribestreaming",
|
243 243 | "MedicalScribeStreamDetails",
|
244 244 | ),
|
245 245 | ::aws_smithy_schema::ShapeType::List,
|
246 - | "channel_definitions",
|
246 + | "ChannelDefinitions",
|
247 247 | 10,
|
248 248 | );
|
249 249 | static MEDICALSCRIBESTREAMDETAILS_MEMBER_ENCRYPTION_SETTINGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
250 250 | ::aws_smithy_schema::ShapeId::from_static(
|
251 251 | "com.amazonaws.transcribestreaming#MedicalScribeStreamDetails$EncryptionSettings",
|
252 252 | "com.amazonaws.transcribestreaming",
|
253 253 | "MedicalScribeStreamDetails",
|
254 254 | ),
|
255 255 | ::aws_smithy_schema::ShapeType::Structure,
|
256 - | "encryption_settings",
|
256 + | "EncryptionSettings",
|
257 257 | 11,
|
258 258 | );
|
259 259 | static MEDICALSCRIBESTREAMDETAILS_MEMBER_STREAM_STATUS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
260 260 | ::aws_smithy_schema::ShapeId::from_static(
|
261 261 | "com.amazonaws.transcribestreaming#MedicalScribeStreamDetails$StreamStatus",
|
262 262 | "com.amazonaws.transcribestreaming",
|
263 263 | "MedicalScribeStreamDetails",
|
264 264 | ),
|
265 265 | ::aws_smithy_schema::ShapeType::String,
|
266 - | "stream_status",
|
266 + | "StreamStatus",
|
267 267 | 12,
|
268 268 | );
|
269 269 | static MEDICALSCRIBESTREAMDETAILS_MEMBER_POST_STREAM_ANALYTICS_SETTINGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
270 270 | ::aws_smithy_schema::ShapeId::from_static(
|
271 271 | "com.amazonaws.transcribestreaming#MedicalScribeStreamDetails$PostStreamAnalyticsSettings",
|
272 272 | "com.amazonaws.transcribestreaming",
|
273 273 | "MedicalScribeStreamDetails",
|
274 274 | ),
|
275 275 | ::aws_smithy_schema::ShapeType::Structure,
|
276 - | "post_stream_analytics_settings",
|
276 + | "PostStreamAnalyticsSettings",
|
277 277 | 13,
|
278 278 | );
|
279 279 | static MEDICALSCRIBESTREAMDETAILS_MEMBER_POST_STREAM_ANALYTICS_RESULT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
280 280 | ::aws_smithy_schema::ShapeId::from_static(
|
281 281 | "com.amazonaws.transcribestreaming#MedicalScribeStreamDetails$PostStreamAnalyticsResult",
|
282 282 | "com.amazonaws.transcribestreaming",
|
283 283 | "MedicalScribeStreamDetails",
|
284 284 | ),
|
285 285 | ::aws_smithy_schema::ShapeType::Structure,
|
286 - | "post_stream_analytics_result",
|
286 + | "PostStreamAnalyticsResult",
|
287 287 | 14,
|
288 288 | );
|
289 289 | static MEDICALSCRIBESTREAMDETAILS_MEMBER_MEDICAL_SCRIBE_CONTEXT_PROVIDED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
290 290 | ::aws_smithy_schema::ShapeId::from_static(
|
291 291 | "com.amazonaws.transcribestreaming#MedicalScribeStreamDetails$MedicalScribeContextProvided",
|
292 292 | "com.amazonaws.transcribestreaming",
|
293 293 | "MedicalScribeStreamDetails",
|
294 294 | ),
|
295 295 | ::aws_smithy_schema::ShapeType::Boolean,
|
296 - | "medical_scribe_context_provided",
|
296 + | "MedicalScribeContextProvided",
|
297 297 | 15,
|
298 298 | );
|
299 299 | static MEDICALSCRIBESTREAMDETAILS_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
300 300 | MEDICALSCRIBESTREAMDETAILS_SCHEMA_ID,
|
301 301 | ::aws_smithy_schema::ShapeType::Structure,
|
302 302 | &[
|
303 303 | &MEDICALSCRIBESTREAMDETAILS_MEMBER_SESSION_ID,
|
304 304 | &MEDICALSCRIBESTREAMDETAILS_MEMBER_STREAM_CREATED_AT,
|
305 305 | &MEDICALSCRIBESTREAMDETAILS_MEMBER_STREAM_ENDED_AT,
|
306 306 | &MEDICALSCRIBESTREAMDETAILS_MEMBER_LANGUAGE_CODE,
|
382 382 | ser.write_struct(&MEDICALSCRIBESTREAMDETAILS_MEMBER_POST_STREAM_ANALYTICS_RESULT, val)?;
|
383 383 | }
|
384 384 | if let Some(ref val) = self.medical_scribe_context_provided {
|
385 385 | ser.write_boolean(&MEDICALSCRIBESTREAMDETAILS_MEMBER_MEDICAL_SCRIBE_CONTEXT_PROVIDED, *val)?;
|
386 386 | }
|
387 387 | Ok(())
|
388 388 | }
|
389 389 | }
|
390 390 | impl MedicalScribeStreamDetails {
|
391 391 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
392 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
393 - | deserializer: &mut D,
|
392 + | pub fn deserialize(
|
393 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
394 394 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
395 395 | #[allow(unused_variables, unused_mut)]
|
396 396 | let mut builder = Self::builder();
|
397 397 | #[allow(
|
398 398 | unused_variables,
|
399 399 | unreachable_code,
|
400 400 | clippy::single_match,
|
401 401 | clippy::match_single_binding,
|
402 402 | clippy::diverging_sub_expression
|
403 403 | )]
|
404 - | deserializer.read_struct(&MEDICALSCRIBESTREAMDETAILS_SCHEMA, (), |_, member, deser| {
|
404 + | deserializer.read_struct(&MEDICALSCRIBESTREAMDETAILS_SCHEMA, &mut |member, deser| {
|
405 405 | match member.member_index() {
|
406 406 | Some(0) => {
|
407 407 | builder.session_id = Some(deser.read_string(member)?);
|
408 408 | }
|
409 409 | Some(1) => {
|
410 410 | builder.stream_created_at = Some(deser.read_timestamp(member)?);
|
411 411 | }
|
412 412 | Some(2) => {
|
413 413 | builder.stream_ended_at = Some(deser.read_timestamp(member)?);
|
414 414 | }
|
415 415 | Some(3) => {
|
416 416 | builder.language_code = Some(crate::types::MedicalScribeLanguageCode::from(deser.read_string(member)?.as_str()));
|
417 417 | }
|
418 418 | Some(4) => {
|
419 419 | builder.media_sample_rate_hertz = Some(deser.read_integer(member)?);
|
420 420 | }
|
421 421 | Some(5) => {
|
422 422 | builder.media_encoding = Some(crate::types::MedicalScribeMediaEncoding::from(deser.read_string(member)?.as_str()));
|
423 423 | }
|
424 424 | Some(6) => {
|
425 425 | builder.vocabulary_name = Some(deser.read_string(member)?);
|
426 426 | }
|
427 427 | Some(7) => {
|
428 428 | builder.vocabulary_filter_name = Some(deser.read_string(member)?);
|
429 429 | }
|
430 430 | Some(8) => {
|
431 431 | builder.vocabulary_filter_method = Some(crate::types::MedicalScribeVocabularyFilterMethod::from(
|
432 432 | deser.read_string(member)?.as_str(),
|
433 433 | ));
|
434 434 | }
|
435 435 | Some(9) => {
|
436 436 | builder.resource_access_role_arn = Some(deser.read_string(member)?);
|
437 437 | }
|
438 438 | Some(10) => {
|
439 439 | builder.channel_definitions = Some({
|
440 - | let container = if let Some(cap) = deser.container_size() {
|
441 - | Vec::with_capacity(cap)
|
442 - | } else {
|
443 - | Vec::new()
|
444 - | };
|
445 - | deser.read_list(member, container, |mut list, deser| {
|
446 - | list.push(crate::types::MedicalScribeChannelDefinition::deserialize(deser)?);
|
447 - | Ok(list)
|
448 - | })?
|
440 + | let mut container = Vec::new();
|
441 + | deser.read_list(member, &mut |deser| {
|
442 + | container.push(crate::types::MedicalScribeChannelDefinition::deserialize(deser)?);
|
443 + | Ok(())
|
444 + | })?;
|
445 + | container
|
449 446 | });
|
450 447 | }
|
451 448 | Some(11) => {
|
452 449 | builder.encryption_settings = Some(crate::types::MedicalScribeEncryptionSettings::deserialize(deser)?);
|
453 450 | }
|
454 451 | Some(12) => {
|
455 452 | builder.stream_status = Some(crate::types::MedicalScribeStreamStatus::from(deser.read_string(member)?.as_str()));
|
456 453 | }
|
457 454 | Some(13) => {
|
458 455 | builder.post_stream_analytics_settings = Some(crate::types::MedicalScribePostStreamAnalyticsSettings::deserialize(deser)?);
|
459 456 | }
|
460 457 | Some(14) => {
|
461 458 | builder.post_stream_analytics_result = Some(crate::types::MedicalScribePostStreamAnalyticsResult::deserialize(deser)?);
|
462 459 | }
|
463 460 | Some(15) => {
|
464 461 | builder.medical_scribe_context_provided = Some(deser.read_boolean(member)?);
|
465 462 | }
|
466 463 | _ => {}
|
467 464 | }
|
468 465 | Ok(())
|
469 466 | })?;
|
470 467 | Ok(builder.build())
|
471 468 | }
|
472 469 | }
|
470 + | impl MedicalScribeStreamDetails {
|
471 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
472 + | pub fn deserialize_with_response(
|
473 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
474 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
475 + | _status: u16,
|
476 + | _body: &[u8],
|
477 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
478 + | Self::deserialize(deserializer)
|
479 + | }
|
480 + | }
|
473 481 | impl MedicalScribeStreamDetails {
|
474 482 | /// Creates a new builder-style object to manufacture [`MedicalScribeStreamDetails`](crate::types::MedicalScribeStreamDetails).
|
475 483 | pub fn builder() -> crate::types::builders::MedicalScribeStreamDetailsBuilder {
|
476 484 | crate::types::builders::MedicalScribeStreamDetailsBuilder::default()
|
477 485 | }
|
478 486 | }
|
479 487 |
|
480 488 | /// A builder for [`MedicalScribeStreamDetails`](crate::types::MedicalScribeStreamDetails).
|
481 489 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
482 490 | #[non_exhaustive]
|