aws_sdk_sso/
protocol_serde.rs
1pub(crate) fn type_erase_result<O, E>(
3 result: ::std::result::Result<O, E>,
4) -> ::std::result::Result<
5 ::aws_smithy_runtime_api::client::interceptors::context::Output,
6 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError<::aws_smithy_runtime_api::client::interceptors::context::Error>,
7>
8where
9 O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
10 E: ::std::error::Error + std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
11{
12 result
13 .map(|output| ::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
14 .map_err(|error| ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(error))
15 .map_err(::std::convert::Into::into)
16}
17
18pub fn parse_http_error_metadata(
19 _response_status: u16,
20 response_headers: &::aws_smithy_runtime_api::http::Headers,
21 response_body: &[u8],
22) -> ::std::result::Result<::aws_smithy_types::error::metadata::Builder, ::aws_smithy_json::deserialize::error::DeserializeError> {
23 crate::json_errors::parse_error_metadata(response_body, response_headers)
24}
25
26pub(crate) mod shape_get_role_credentials;
27
28pub(crate) mod shape_list_account_roles;
29
30pub(crate) mod shape_list_accounts;
31
32pub(crate) mod shape_logout;
33
34pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
35 if data.is_empty() {
36 b"{}"
37 } else {
38 data
39 }
40}
41
42pub(crate) mod shape_invalid_request_exception;
43
44pub(crate) mod shape_resource_not_found_exception;
45
46pub(crate) mod shape_too_many_requests_exception;
47
48pub(crate) mod shape_unauthorized_exception;
49
50pub(crate) mod shape_account_list_type;
51
52pub(crate) mod shape_role_credentials;
53
54pub(crate) mod shape_role_list_type;
55
56pub(crate) mod shape_account_info;
57
58pub(crate) mod shape_role_info;