aws_sdk_ssooidc/
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_create_token;
27
28pub(crate) mod shape_create_token_with_iam;
29
30pub(crate) mod shape_register_client;
31
32pub(crate) mod shape_start_device_authorization;
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_access_denied_exception;
43
44pub(crate) mod shape_authorization_pending_exception;
45
46pub(crate) mod shape_create_token_input;
47
48pub(crate) mod shape_create_token_with_iam_input;
49
50pub(crate) mod shape_expired_token_exception;
51
52pub(crate) mod shape_internal_server_exception;
53
54pub(crate) mod shape_invalid_client_exception;
55
56pub(crate) mod shape_invalid_client_metadata_exception;
57
58pub(crate) mod shape_invalid_grant_exception;
59
60pub(crate) mod shape_invalid_redirect_uri_exception;
61
62pub(crate) mod shape_invalid_request_exception;
63
64pub(crate) mod shape_invalid_request_region_exception;
65
66pub(crate) mod shape_invalid_scope_exception;
67
68pub(crate) mod shape_register_client_input;
69
70pub(crate) mod shape_slow_down_exception;
71
72pub(crate) mod shape_start_device_authorization_input;
73
74pub(crate) mod shape_unauthorized_client_exception;
75
76pub(crate) mod shape_unsupported_grant_type_exception;
77
78pub(crate) mod shape_scopes;