aws-sdk-lexruntimev2 1.98.0

AWS SDK for Amazon Lex Runtime V2
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
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_delete_session;

pub(crate) mod shape_get_session;

pub(crate) mod shape_put_session;

pub(crate) mod shape_recognize_text;

pub(crate) mod shape_recognize_utterance;

pub(crate) mod shape_recognize_utterance_input;

pub(crate) mod shape_start_conversation;

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_bad_gateway_exception;

pub(crate) mod shape_conflict_exception;

pub(crate) mod shape_dependency_failed_exception;

pub(crate) mod shape_internal_server_exception;

pub(crate) mod shape_put_session_input;

pub(crate) mod shape_put_session_output;

pub(crate) mod shape_recognize_text_input;

pub(crate) mod shape_recognize_utterance_output;

pub(crate) mod shape_resource_not_found_exception;

pub(crate) mod shape_start_conversation_output;

pub(crate) mod shape_start_conversation_request_event_stream;

pub(crate) mod shape_throttling_exception;

pub(crate) mod shape_validation_exception;

pub fn parse_event_stream_error_metadata(
    payload: &::bytes::Bytes,
) -> ::std::result::Result<::aws_smithy_types::error::metadata::Builder, ::aws_smithy_json::deserialize::error::DeserializeError> {
    crate::json_errors::parse_error_metadata(payload, &::aws_smithy_runtime_api::http::Headers::new())
}

pub(crate) mod shape_audio_input_event;

pub(crate) mod shape_configuration_event;

pub(crate) mod shape_disconnection_event;

pub(crate) mod shape_dtmf_input_event;

pub(crate) mod shape_interpretations;

pub(crate) mod shape_message;

pub(crate) mod shape_messages;

pub(crate) mod shape_playback_completion_event;

pub(crate) mod shape_recognized_bot_member;

pub(crate) mod shape_session_state;

pub(crate) mod shape_string_map;

pub(crate) mod shape_text_input_event;

pub(crate) mod shape_active_context;

pub(crate) mod shape_active_contexts_list;

pub(crate) mod shape_audio_response_event;

pub(crate) mod shape_dialog_action;

pub(crate) mod shape_heartbeat_event;

pub(crate) mod shape_image_response_card;

pub(crate) mod shape_intent;

pub(crate) mod shape_intent_result_event;

pub(crate) mod shape_interpretation;

pub(crate) mod shape_playback_interruption_event;

pub(crate) mod shape_runtime_hints;

pub(crate) mod shape_text_response_event;

pub(crate) mod shape_transcript_event;

pub(crate) mod shape_active_context_time_to_live;

pub(crate) mod shape_button;

pub(crate) mod shape_confidence_score;

pub(crate) mod shape_elicit_sub_slot;

pub(crate) mod shape_runtime_hint_details;

pub(crate) mod shape_sentiment_response;

pub(crate) mod shape_slot;

pub(crate) mod shape_slot_hints_intent_map;

pub(crate) mod shape_slots;

pub(crate) mod shape_active_context_parameters_map;

pub(crate) mod shape_buttons_list;

pub(crate) mod shape_runtime_hint_value;

pub(crate) mod shape_sentiment_score;

pub(crate) mod shape_slot_hints_slot_map;

pub(crate) mod shape_value;

pub(crate) mod shape_values;

pub(crate) mod shape_runtime_hint_values_list;

pub(crate) mod shape_string_list;