pub(crate) fn type_erase_result<O, E>(
result: ::std::result::Result<O, E>,
) -> ::std::result::Result<
::aws_smithy_runtime_api::client::interceptors::context::Output,
::aws_smithy_runtime_api::client::orchestrator::OrchestratorError<::aws_smithy_runtime_api::client::interceptors::context::Error>,
>
where
O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
E: ::std::error::Error + std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
{
result
.map(|output| ::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
.map_err(|error| ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(error))
.map_err(::std::convert::Into::into)
}
pub fn parse_http_error_metadata(
_response_status: u16,
response_headers: &::aws_smithy_runtime_api::http::Headers,
response_body: &[u8],
) -> ::std::result::Result<::aws_smithy_types::error::metadata::Builder, ::aws_smithy_json::deserialize::error::DeserializeError> {
crate::json_errors::parse_error_metadata(response_body, response_headers)
}
pub(crate) mod shape_create_act;
pub(crate) mod shape_create_session;
pub(crate) mod shape_create_workflow_definition;
pub(crate) mod shape_create_workflow_run;
pub(crate) mod shape_delete_workflow_definition;
pub(crate) mod shape_delete_workflow_run;
pub(crate) mod shape_get_workflow_definition;
pub(crate) mod shape_get_workflow_run;
pub(crate) mod shape_invoke_act_step;
pub(crate) mod shape_list_acts;
pub(crate) mod shape_list_models;
pub(crate) mod shape_list_sessions;
pub(crate) mod shape_list_workflow_definitions;
pub(crate) mod shape_list_workflow_runs;
pub(crate) mod shape_update_act;
pub(crate) mod shape_update_workflow_run;
pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
if data.is_empty() {
b"{}"
} else {
data
}
}
pub(crate) mod shape_access_denied_exception;
pub(crate) mod shape_conflict_exception;
pub(crate) mod shape_create_act_input;
pub(crate) mod shape_create_session_input;
pub(crate) mod shape_create_workflow_definition_input;
pub(crate) mod shape_create_workflow_run_input;
pub(crate) mod shape_internal_server_exception;
pub(crate) mod shape_invoke_act_step_input;
pub(crate) mod shape_list_acts_input;
pub(crate) mod shape_list_sessions_input;
pub(crate) mod shape_list_workflow_definitions_input;
pub(crate) mod shape_list_workflow_runs_input;
pub(crate) mod shape_resource_not_found_exception;
pub(crate) mod shape_service_quota_exceeded_exception;
pub(crate) mod shape_throttling_exception;
pub(crate) mod shape_update_act_input;
pub(crate) mod shape_update_workflow_run_input;
pub(crate) mod shape_validation_exception;
pub(crate) mod shape_act_error;
pub(crate) mod shape_act_summaries;
pub(crate) mod shape_call_result;
pub(crate) mod shape_calls;
pub(crate) mod shape_client_info;
pub(crate) mod shape_compatibility_information;
pub(crate) mod shape_model_aliases;
pub(crate) mod shape_model_summaries;
pub(crate) mod shape_session_summaries;
pub(crate) mod shape_tool_spec;
pub(crate) mod shape_validation_exception_field_list;
pub(crate) mod shape_workflow_definition_summaries;
pub(crate) mod shape_workflow_export_config;
pub(crate) mod shape_workflow_run_summaries;
pub(crate) mod shape_act_summary;
pub(crate) mod shape_call;
pub(crate) mod shape_call_result_content;
pub(crate) mod shape_model_alias;
pub(crate) mod shape_model_id_list;
pub(crate) mod shape_model_summary;
pub(crate) mod shape_session_summary;
pub(crate) mod shape_tool_input_schema;
pub(crate) mod shape_validation_exception_field;
pub(crate) mod shape_workflow_definition_summary;
pub(crate) mod shape_workflow_run_summary;
pub(crate) mod shape_model_lifecycle;
pub(crate) mod shape_trace_location;