aws_sdk_transcribestreaming/operation/
start_medical_stream_transcription.rs1#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
4#[non_exhaustive]
5pub struct StartMedicalStreamTranscription;
6impl StartMedicalStreamTranscription {
7 pub fn new() -> Self {
9 Self
10 }
11 pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::start_medical_stream_transcription::StartMedicalStreamTranscriptionInput::SCHEMA;
13 pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::start_medical_stream_transcription::StartMedicalStreamTranscriptionOutput::SCHEMA;
15 pub(crate) async fn orchestrate(
16 runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
17 input: crate::operation::start_medical_stream_transcription::StartMedicalStreamTranscriptionInput,
18 ) -> ::std::result::Result<crate::operation::start_medical_stream_transcription::StartMedicalStreamTranscriptionOutput, ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_medical_stream_transcription::StartMedicalStreamTranscriptionError, ::aws_smithy_runtime_api::client::orchestrator::HttpResponse>> {
19 let map_err = |err: ::aws_smithy_runtime_api::client::result::SdkError<::aws_smithy_runtime_api::client::interceptors::context::Error, ::aws_smithy_runtime_api::client::orchestrator::HttpResponse>| {
20 err.map_service_error(|err| {
21 err.downcast::<crate::operation::start_medical_stream_transcription::StartMedicalStreamTranscriptionError>().expect("correct error type")
22 })
23 };
24 let context = Self::orchestrate_with_stop_point(runtime_plugins, input, ::aws_smithy_runtime::client::orchestrator::StopPoint::None)
25 .await
26 .map_err(map_err)?;
27 let output = context.finalize().map_err(map_err)?;
28 ::std::result::Result::Ok(output.downcast::<crate::operation::start_medical_stream_transcription::StartMedicalStreamTranscriptionOutput>().expect("correct output type"))
29 }
30
31 pub(crate) async fn orchestrate_with_stop_point(
32 runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
33 input: crate::operation::start_medical_stream_transcription::StartMedicalStreamTranscriptionInput,
34 stop_point: ::aws_smithy_runtime::client::orchestrator::StopPoint,
35 ) -> ::std::result::Result<::aws_smithy_runtime_api::client::interceptors::context::InterceptorContext, ::aws_smithy_runtime_api::client::result::SdkError<::aws_smithy_runtime_api::client::interceptors::context::Error, ::aws_smithy_runtime_api::client::orchestrator::HttpResponse>> {
36 let input = ::aws_smithy_runtime_api::client::interceptors::context::Input::erase(input);
37 use ::tracing::Instrument;
38 ::aws_smithy_runtime::client::orchestrator::invoke_with_stop_point(
39 "Transcribe Streaming",
40 "StartMedicalStreamTranscription",
41 input,
42 runtime_plugins,
43 stop_point
44 )
45 .instrument(::tracing::debug_span!(
48 "Transcribe Streaming.StartMedicalStreamTranscription",
49 "rpc.service" = "Transcribe Streaming",
50 "rpc.method" = "StartMedicalStreamTranscription",
51 "sdk_invocation_id" = ::fastrand::u32(1_000_000..10_000_000),
52 "rpc.system" = "aws-api",
53 ))
54 .await
55 }
56
57 pub(crate) fn operation_runtime_plugins(
58 client_runtime_plugins: ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
59 client_config: &crate::config::Config,
60 config_override: ::std::option::Option<crate::config::Builder>,
61 ) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
62 let mut runtime_plugins = client_runtime_plugins.with_operation_plugin(Self::new());
63
64 if let ::std::option::Option::Some(config_override) = config_override {
65 for plugin in config_override.runtime_plugins.iter().cloned() {
66 runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
67 }
68 runtime_plugins = runtime_plugins.with_operation_plugin(
69 crate::config::ConfigOverrideRuntimePlugin::new(config_override, client_config.config.clone(), &client_config.runtime_components)
70 );
71 }
72 runtime_plugins
73 }
74}
75impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for StartMedicalStreamTranscription {
76 fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
77 let mut cfg = ::aws_smithy_types::config_bag::Layer::new("StartMedicalStreamTranscription");
78
79 cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(StartMedicalStreamTranscriptionRequestSerializer));
80 cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(StartMedicalStreamTranscriptionResponseDeserializer));
81
82 cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
83 crate::config::auth::Params::builder()
84 .operation_name("StartMedicalStreamTranscription")
85 .build()
86 .expect("required fields set")
87 ));
88
89 cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
90 "StartMedicalStreamTranscription",
91 "Transcribe Streaming",
92 ));
93let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
94 signing_options.double_uri_encode = true;
95 signing_options.content_sha256_header = false;
96 signing_options.normalize_uri_path = true;
97 signing_options.payload_override = Some(::aws_sigv4::http_request::SignableBody::Bytes(&[]));
98
99 cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
100 signing_options,
101 ..::std::default::Default::default()
102 });
103
104 ::std::option::Option::Some(cfg.freeze())
105 }
106
107 fn runtime_components(&self, _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
108 #[allow(unused_mut)]
109 let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("StartMedicalStreamTranscription")
110 .with_interceptor(StartMedicalStreamTranscriptionEndpointParamsInterceptor)
111 .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<crate::operation::start_medical_stream_transcription::StartMedicalStreamTranscriptionError>::new())
112.with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<crate::operation::start_medical_stream_transcription::StartMedicalStreamTranscriptionError>::new())
113.with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<crate::operation::start_medical_stream_transcription::StartMedicalStreamTranscriptionError>::new());
114
115 ::std::borrow::Cow::Owned(rcb)
116 }
117 }
118
119
120#[derive(Debug)]
121 struct StartMedicalStreamTranscriptionResponseDeserializer;
122 impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for StartMedicalStreamTranscriptionResponseDeserializer {
123 fn deserialize_streaming(&self, response: &mut ::aws_smithy_runtime_api::client::orchestrator::HttpResponse) -> ::std::option::Option<::aws_smithy_runtime_api::client::interceptors::context::OutputOrError> {
124 #[allow(unused_mut)]
125 let mut force_error = false;
126 ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
127
128 if (!response.status().is_success() && response.status().as_u16() != 200) || force_error {
130 return ::std::option::Option::None;
131 }
132 ::std::option::Option::Some(crate::protocol_serde::type_erase_result(crate::protocol_serde::shape_start_medical_stream_transcription::de_start_medical_stream_transcription_http_response(response)))
133 }
134
135 fn deserialize_nonstreaming_with_config(&self, response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse, _cfg: &::aws_smithy_types::config_bag::ConfigBag) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
136 let body = response.body().bytes().expect("body loaded");
138 let status = response.status().as_u16();
139 let headers = response.headers();
140#[allow(unused_mut)]
141 let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body)
142 .map_err(|e| ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e)))?;
143 generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
144 let generic = generic_builder.build();
145let error_code = match generic.code() {
146 ::std::option::Option::Some(code) => code,
147 ::std::option::Option::None => return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(crate::operation::start_medical_stream_transcription::StartMedicalStreamTranscriptionError::unhandled(generic)))),
148 };
149 let _error_message = generic.message().map(|msg| msg.to_owned());
150 let protocol = _cfg.load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
151 .expect("a SharedClientProtocol is required");
152let err = match error_code {
153"BadRequestException" => crate::operation::start_medical_stream_transcription::StartMedicalStreamTranscriptionError::BadRequestException({
154let mut tmp = match protocol.deserialize_response(response, crate::types::error::BadRequestException::SCHEMA, _cfg)
155 .and_then(|mut deser| crate::types::error::BadRequestException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
156 {
157 ::std::result::Result::Ok(val) => val,
158 ::std::result::Result::Err(e) => return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))),
159 };
160 tmp.meta = generic;
161if tmp.message.is_none() {
162 tmp.message = _error_message;
163 }
164tmp
165}),
166"ConflictException" => crate::operation::start_medical_stream_transcription::StartMedicalStreamTranscriptionError::ConflictException({
167let mut tmp = match protocol.deserialize_response(response, crate::types::error::ConflictException::SCHEMA, _cfg)
168 .and_then(|mut deser| crate::types::error::ConflictException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
169 {
170 ::std::result::Result::Ok(val) => val,
171 ::std::result::Result::Err(e) => return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))),
172 };
173 tmp.meta = generic;
174if tmp.message.is_none() {
175 tmp.message = _error_message;
176 }
177tmp
178}),
179"InternalFailureException" => crate::operation::start_medical_stream_transcription::StartMedicalStreamTranscriptionError::InternalFailureException({
180let mut tmp = match protocol.deserialize_response(response, crate::types::error::InternalFailureException::SCHEMA, _cfg)
181 .and_then(|mut deser| crate::types::error::InternalFailureException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
182 {
183 ::std::result::Result::Ok(val) => val,
184 ::std::result::Result::Err(e) => return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))),
185 };
186 tmp.meta = generic;
187if tmp.message.is_none() {
188 tmp.message = _error_message;
189 }
190tmp
191}),
192"LimitExceededException" => crate::operation::start_medical_stream_transcription::StartMedicalStreamTranscriptionError::LimitExceededException({
193let mut tmp = match protocol.deserialize_response(response, crate::types::error::LimitExceededException::SCHEMA, _cfg)
194 .and_then(|mut deser| crate::types::error::LimitExceededException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
195 {
196 ::std::result::Result::Ok(val) => val,
197 ::std::result::Result::Err(e) => return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))),
198 };
199 tmp.meta = generic;
200if tmp.message.is_none() {
201 tmp.message = _error_message;
202 }
203tmp
204}),
205"ServiceUnavailableException" => crate::operation::start_medical_stream_transcription::StartMedicalStreamTranscriptionError::ServiceUnavailableException({
206let mut tmp = match protocol.deserialize_response(response, crate::types::error::ServiceUnavailableException::SCHEMA, _cfg)
207 .and_then(|mut deser| crate::types::error::ServiceUnavailableException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
208 {
209 ::std::result::Result::Ok(val) => val,
210 ::std::result::Result::Err(e) => return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))),
211 };
212 tmp.meta = generic;
213if tmp.message.is_none() {
214 tmp.message = _error_message;
215 }
216tmp
217}),
218_ => crate::operation::start_medical_stream_transcription::StartMedicalStreamTranscriptionError::generic(generic)
219};
220 ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err)))
221 }
222 }
223#[derive(Debug)]
224 struct StartMedicalStreamTranscriptionRequestSerializer;
225 impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for StartMedicalStreamTranscriptionRequestSerializer {
226 #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
227 fn serialize_input(&self, input: ::aws_smithy_runtime_api::client::interceptors::context::Input, _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
228 let input = input.downcast::<crate::operation::start_medical_stream_transcription::StartMedicalStreamTranscriptionInput>().expect("correct type");
229 let protocol = _cfg.load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
230 .expect("a SharedClientProtocol is required");
231 let mut request = protocol.serialize_request(
232 &input, StartMedicalStreamTranscription::INPUT_SCHEMA, "", _cfg,
233 ).map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
234 *request.body_mut() = ::aws_smithy_types::body::SdkBody::from({
235 let error_marshaller = crate::event_stream_serde::AudioStreamErrorMarshaller::new();
236 let marshaller = crate::event_stream_serde::AudioStreamMarshaller::new();
237 let (signer, signer_sender) = ::aws_smithy_eventstream::frame::DeferredSigner::new();
238 _cfg.interceptor_state().store_put(signer_sender);
239 ::aws_smithy_types::body::SdkBody::from_body_1_x(::http_body_util::StreamBody::new(input.audio_stream.into_body_stream(marshaller, error_marshaller, signer)))
240 });
241 request.headers_mut().remove("Content-Length");
244request.headers_mut().insert("Content-Type", "application/vnd.amazon.eventstream");
245
246return ::std::result::Result::Ok(request);
247 }
248 }
249#[derive(Debug)]
250 struct StartMedicalStreamTranscriptionEndpointParamsInterceptor;
251
252 impl ::aws_smithy_runtime_api::client::interceptors::Intercept for StartMedicalStreamTranscriptionEndpointParamsInterceptor {
253 fn name(&self) -> &'static str {
254 "StartMedicalStreamTranscriptionEndpointParamsInterceptor"
255 }
256
257 fn read_before_execution(
258 &self,
259 context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<'_, ::aws_smithy_runtime_api::client::interceptors::context::Input, ::aws_smithy_runtime_api::client::interceptors::context::Output, ::aws_smithy_runtime_api::client::interceptors::context::Error>,
260 cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
261 ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
262 let _input = context.input()
263 .downcast_ref::<StartMedicalStreamTranscriptionInput>()
264 .ok_or("failed to downcast to StartMedicalStreamTranscriptionInput")?;
265
266
267
268 let params = crate::config::endpoint::Params::builder()
269 .set_region(cfg.load::<::aws_types::region::Region>().map(|r|r.as_ref().to_owned()))
270.set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
271.set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
272.set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
273 .build()
274 .map_err(|err| ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err))?;
275 cfg.interceptor_state().store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
276 ::std::result::Result::Ok(())
277 }
278 }
279
280 #[non_exhaustive]
287#[derive(::std::fmt::Debug)]
288pub enum StartMedicalStreamTranscriptionError {
289 BadRequestException(crate::types::error::BadRequestException),
291 ConflictException(crate::types::error::ConflictException),
293 InternalFailureException(crate::types::error::InternalFailureException),
295 LimitExceededException(crate::types::error::LimitExceededException),
297 ServiceUnavailableException(crate::types::error::ServiceUnavailableException),
299 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
301 variable wildcard pattern and check `.code()`:
302 \
303 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
304 \
305 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-StartMedicalStreamTranscriptionError) for what information is available for the error.")]
306 Unhandled(crate::error::sealed_unhandled::Unhandled),
307}
308impl StartMedicalStreamTranscriptionError {
309 pub fn unhandled(err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>) -> Self {
311 Self::Unhandled(crate::error::sealed_unhandled::Unhandled { source: err.into(), meta: ::std::default::Default::default() })
312 }
313
314 pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
316 Self::Unhandled(crate::error::sealed_unhandled::Unhandled { source: err.clone().into(), meta: err })
317 }
318 pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
323 match self {
324 Self::BadRequestException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
325 Self::ConflictException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
326 Self::InternalFailureException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
327 Self::LimitExceededException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
328 Self::ServiceUnavailableException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
329 Self::Unhandled(e) => &e.meta,
330 }
331 }
332 pub fn is_bad_request_exception(&self) -> bool {
334 matches!(self, Self::BadRequestException(_))
335 }
336 pub fn is_conflict_exception(&self) -> bool {
338 matches!(self, Self::ConflictException(_))
339 }
340 pub fn is_internal_failure_exception(&self) -> bool {
342 matches!(self, Self::InternalFailureException(_))
343 }
344 pub fn is_limit_exceeded_exception(&self) -> bool {
346 matches!(self, Self::LimitExceededException(_))
347 }
348 pub fn is_service_unavailable_exception(&self) -> bool {
350 matches!(self, Self::ServiceUnavailableException(_))
351 }
352}
353impl ::std::error::Error for StartMedicalStreamTranscriptionError {
354 fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
355 match self {
356 Self::BadRequestException(_inner) =>
357 ::std::option::Option::Some(_inner)
358 ,
359 Self::ConflictException(_inner) =>
360 ::std::option::Option::Some(_inner)
361 ,
362 Self::InternalFailureException(_inner) =>
363 ::std::option::Option::Some(_inner)
364 ,
365 Self::LimitExceededException(_inner) =>
366 ::std::option::Option::Some(_inner)
367 ,
368 Self::ServiceUnavailableException(_inner) =>
369 ::std::option::Option::Some(_inner)
370 ,
371 Self::Unhandled(_inner) => {
372 ::std::option::Option::Some(&*_inner.source)
373 }
374 }
375 }
376}
377impl ::std::fmt::Display for StartMedicalStreamTranscriptionError {
378 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
379 match self {
380 Self::BadRequestException(_inner) =>
381 _inner.fmt(f)
382 ,
383 Self::ConflictException(_inner) =>
384 _inner.fmt(f)
385 ,
386 Self::InternalFailureException(_inner) =>
387 _inner.fmt(f)
388 ,
389 Self::LimitExceededException(_inner) =>
390 _inner.fmt(f)
391 ,
392 Self::ServiceUnavailableException(_inner) =>
393 _inner.fmt(f)
394 ,
395 Self::Unhandled(_inner) => {
396 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
397 write!(f, "unhandled error ({code})")
398 } else {
399 f.write_str("unhandled error")
400 }
401 }
402 }
403 }
404}
405impl ::aws_smithy_types::retry::ProvideErrorKind for StartMedicalStreamTranscriptionError {
406 fn code(&self) -> ::std::option::Option<&str> {
407 ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
408 }
409 fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
410 ::std::option::Option::None
411 }
412}
413impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for StartMedicalStreamTranscriptionError {
414 fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
415 match self {
416 Self::BadRequestException(_inner) =>
417 ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
418 ,
419 Self::ConflictException(_inner) =>
420 ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
421 ,
422 Self::InternalFailureException(_inner) =>
423 ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
424 ,
425 Self::LimitExceededException(_inner) =>
426 ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
427 ,
428 Self::ServiceUnavailableException(_inner) =>
429 ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
430 ,
431 Self::Unhandled(_inner) => {
432 &_inner.meta
433 }
434 }
435 }
436}
437impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for StartMedicalStreamTranscriptionError {
438 fn create_unhandled_error(
439 source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
440 meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>
441 ) -> Self {
442 Self::Unhandled(crate::error::sealed_unhandled::Unhandled { source, meta: meta.unwrap_or_default() })
443 }
444}
445impl ::aws_types::request_id::RequestId for crate::operation::start_medical_stream_transcription::StartMedicalStreamTranscriptionError {
446 fn request_id(&self) -> Option<&str> {
447 self.meta().request_id()
448 }
449 }
450
451pub use crate::operation::start_medical_stream_transcription::_start_medical_stream_transcription_input::StartMedicalStreamTranscriptionInput;
452
453pub use crate::operation::start_medical_stream_transcription::_start_medical_stream_transcription_output::StartMedicalStreamTranscriptionOutput;
454
455mod _start_medical_stream_transcription_input;
456
457mod _start_medical_stream_transcription_output;
458
459pub mod builders;
461