aws_sdk_elastictranscoder/
protocol_serde.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub(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_cancel_job;
27
28pub(crate) mod shape_create_job;
29
30pub(crate) mod shape_create_pipeline;
31
32pub(crate) mod shape_create_preset;
33
34pub(crate) mod shape_delete_pipeline;
35
36pub(crate) mod shape_delete_preset;
37
38pub(crate) mod shape_list_jobs_by_pipeline;
39
40pub(crate) mod shape_list_jobs_by_status;
41
42pub(crate) mod shape_list_pipelines;
43
44pub(crate) mod shape_list_presets;
45
46pub(crate) mod shape_read_job;
47
48pub(crate) mod shape_read_pipeline;
49
50pub(crate) mod shape_read_preset;
51
52pub(crate) mod shape_test_role;
53
54pub(crate) mod shape_update_pipeline;
55
56pub(crate) mod shape_update_pipeline_notifications;
57
58pub(crate) mod shape_update_pipeline_status;
59
60pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
61    if data.is_empty() {
62        b"{}"
63    } else {
64        data
65    }
66}
67
68pub(crate) mod shape_access_denied_exception;
69
70pub(crate) mod shape_create_job_input;
71
72pub(crate) mod shape_create_pipeline_input;
73
74pub(crate) mod shape_create_preset_input;
75
76pub(crate) mod shape_incompatible_version_exception;
77
78pub(crate) mod shape_internal_service_exception;
79
80pub(crate) mod shape_limit_exceeded_exception;
81
82pub(crate) mod shape_resource_in_use_exception;
83
84pub(crate) mod shape_resource_not_found_exception;
85
86pub(crate) mod shape_test_role_input;
87
88pub(crate) mod shape_update_pipeline_input;
89
90pub(crate) mod shape_update_pipeline_notifications_input;
91
92pub(crate) mod shape_update_pipeline_status_input;
93
94pub(crate) mod shape_validation_exception;
95
96pub(crate) mod shape_audio_parameters;
97
98pub(crate) mod shape_create_job_output;
99
100pub(crate) mod shape_create_job_playlist;
101
102pub(crate) mod shape_exception_messages;
103
104pub(crate) mod shape_job;
105
106pub(crate) mod shape_job_input;
107
108pub(crate) mod shape_jobs;
109
110pub(crate) mod shape_notifications;
111
112pub(crate) mod shape_pipeline;
113
114pub(crate) mod shape_pipeline_output_config;
115
116pub(crate) mod shape_pipelines;
117
118pub(crate) mod shape_preset;
119
120pub(crate) mod shape_presets;
121
122pub(crate) mod shape_thumbnails;
123
124pub(crate) mod shape_video_parameters;
125
126pub(crate) mod shape_warnings;
127
128pub(crate) mod shape_audio_codec_options;
129
130pub(crate) mod shape_captions;
131
132pub(crate) mod shape_clip;
133
134pub(crate) mod shape_detected_properties;
135
136pub(crate) mod shape_encryption;
137
138pub(crate) mod shape_hls_content_protection;
139
140pub(crate) mod shape_input_captions;
141
142pub(crate) mod shape_job_album_art;
143
144pub(crate) mod shape_job_inputs;
145
146pub(crate) mod shape_job_output;
147
148pub(crate) mod shape_job_outputs;
149
150pub(crate) mod shape_job_watermark;
151
152pub(crate) mod shape_permission;
153
154pub(crate) mod shape_play_ready_drm;
155
156pub(crate) mod shape_playlists;
157
158pub(crate) mod shape_preset_watermark;
159
160pub(crate) mod shape_time_span;
161
162pub(crate) mod shape_timing;
163
164pub(crate) mod shape_user_metadata;
165
166pub(crate) mod shape_warning;
167
168pub(crate) mod shape_artwork;
169
170pub(crate) mod shape_caption_format;
171
172pub(crate) mod shape_caption_source;
173
174pub(crate) mod shape_codec_options;
175
176pub(crate) mod shape_composition;
177
178pub(crate) mod shape_job_watermarks;
179
180pub(crate) mod shape_permissions;
181
182pub(crate) mod shape_playlist;
183
184pub(crate) mod shape_preset_watermarks;
185
186pub(crate) mod shape_artworks;
187
188pub(crate) mod shape_caption_formats;
189
190pub(crate) mod shape_caption_sources;
191
192pub(crate) mod shape_output_keys;
193
194pub(crate) mod shape_access_controls;