aws_sdk_customerprofiles/
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_add_profile_key;
27
28pub(crate) mod shape_batch_get_calculated_attribute_for_profile;
29
30pub(crate) mod shape_batch_get_profile;
31
32pub(crate) mod shape_create_calculated_attribute_definition;
33
34pub(crate) mod shape_create_domain;
35
36pub(crate) mod shape_create_domain_layout;
37
38pub(crate) mod shape_create_event_stream;
39
40pub(crate) mod shape_create_event_trigger;
41
42pub(crate) mod shape_create_integration_workflow;
43
44pub(crate) mod shape_create_profile;
45
46pub(crate) mod shape_create_segment_definition;
47
48pub(crate) mod shape_create_segment_estimate;
49
50pub(crate) mod shape_create_segment_snapshot;
51
52pub(crate) mod shape_create_upload_job;
53
54pub(crate) mod shape_delete_calculated_attribute_definition;
55
56pub(crate) mod shape_delete_domain;
57
58pub(crate) mod shape_delete_domain_layout;
59
60pub(crate) mod shape_delete_event_stream;
61
62pub(crate) mod shape_delete_event_trigger;
63
64pub(crate) mod shape_delete_integration;
65
66pub(crate) mod shape_delete_profile;
67
68pub(crate) mod shape_delete_profile_key;
69
70pub(crate) mod shape_delete_profile_object;
71
72pub(crate) mod shape_delete_profile_object_type;
73
74pub(crate) mod shape_delete_segment_definition;
75
76pub(crate) mod shape_delete_workflow;
77
78pub(crate) mod shape_detect_profile_object_type;
79
80pub(crate) mod shape_get_auto_merging_preview;
81
82pub(crate) mod shape_get_calculated_attribute_definition;
83
84pub(crate) mod shape_get_calculated_attribute_for_profile;
85
86pub(crate) mod shape_get_domain;
87
88pub(crate) mod shape_get_domain_layout;
89
90pub(crate) mod shape_get_event_stream;
91
92pub(crate) mod shape_get_event_trigger;
93
94pub(crate) mod shape_get_identity_resolution_job;
95
96pub(crate) mod shape_get_integration;
97
98pub(crate) mod shape_get_matches;
99
100pub(crate) mod shape_get_profile_history_record;
101
102pub(crate) mod shape_get_profile_object_type;
103
104pub(crate) mod shape_get_profile_object_type_template;
105
106pub(crate) mod shape_get_segment_definition;
107
108pub(crate) mod shape_get_segment_estimate;
109
110pub(crate) mod shape_get_segment_membership;
111
112pub(crate) mod shape_get_segment_snapshot;
113
114pub(crate) mod shape_get_similar_profiles;
115
116pub(crate) mod shape_get_upload_job;
117
118pub(crate) mod shape_get_upload_job_path;
119
120pub(crate) mod shape_get_workflow;
121
122pub(crate) mod shape_get_workflow_steps;
123
124pub(crate) mod shape_list_account_integrations;
125
126pub(crate) mod shape_list_calculated_attribute_definitions;
127
128pub(crate) mod shape_list_calculated_attributes_for_profile;
129
130pub(crate) mod shape_list_domain_layouts;
131
132pub(crate) mod shape_list_domains;
133
134pub(crate) mod shape_list_event_streams;
135
136pub(crate) mod shape_list_event_triggers;
137
138pub(crate) mod shape_list_identity_resolution_jobs;
139
140pub(crate) mod shape_list_integrations;
141
142pub(crate) mod shape_list_object_type_attributes;
143
144pub(crate) mod shape_list_profile_attribute_values;
145
146pub(crate) mod shape_list_profile_history_records;
147
148pub(crate) mod shape_list_profile_object_type_templates;
149
150pub(crate) mod shape_list_profile_object_types;
151
152pub(crate) mod shape_list_profile_objects;
153
154pub(crate) mod shape_list_rule_based_matches;
155
156pub(crate) mod shape_list_segment_definitions;
157
158pub(crate) mod shape_list_tags_for_resource;
159
160pub(crate) mod shape_list_upload_jobs;
161
162pub(crate) mod shape_list_workflows;
163
164pub(crate) mod shape_merge_profiles;
165
166pub(crate) mod shape_put_integration;
167
168pub(crate) mod shape_put_profile_object;
169
170pub(crate) mod shape_put_profile_object_type;
171
172pub(crate) mod shape_search_profiles;
173
174pub(crate) mod shape_start_upload_job;
175
176pub(crate) mod shape_stop_upload_job;
177
178pub(crate) mod shape_tag_resource;
179
180pub(crate) mod shape_untag_resource;
181
182pub(crate) mod shape_update_calculated_attribute_definition;
183
184pub(crate) mod shape_update_domain;
185
186pub(crate) mod shape_update_domain_layout;
187
188pub(crate) mod shape_update_event_trigger;
189
190pub(crate) mod shape_update_profile;
191
192pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
193    if data.is_empty() {
194        b"{}"
195    } else {
196        data
197    }
198}
199
200pub(crate) mod shape_access_denied_exception;
201
202pub(crate) mod shape_add_profile_key_input;
203
204pub(crate) mod shape_bad_request_exception;
205
206pub(crate) mod shape_batch_get_calculated_attribute_for_profile_input;
207
208pub(crate) mod shape_batch_get_profile_input;
209
210pub(crate) mod shape_create_calculated_attribute_definition_input;
211
212pub(crate) mod shape_create_domain_input;
213
214pub(crate) mod shape_create_domain_layout_input;
215
216pub(crate) mod shape_create_event_stream_input;
217
218pub(crate) mod shape_create_event_trigger_input;
219
220pub(crate) mod shape_create_integration_workflow_input;
221
222pub(crate) mod shape_create_profile_input;
223
224pub(crate) mod shape_create_segment_definition_input;
225
226pub(crate) mod shape_create_segment_estimate_input;
227
228pub(crate) mod shape_create_segment_snapshot_input;
229
230pub(crate) mod shape_create_upload_job_input;
231
232pub(crate) mod shape_delete_integration_input;
233
234pub(crate) mod shape_delete_profile_input;
235
236pub(crate) mod shape_delete_profile_key_input;
237
238pub(crate) mod shape_delete_profile_object_input;
239
240pub(crate) mod shape_detect_profile_object_type_input;
241
242pub(crate) mod shape_get_auto_merging_preview_input;
243
244pub(crate) mod shape_get_integration_input;
245
246pub(crate) mod shape_get_segment_membership_input;
247
248pub(crate) mod shape_get_similar_profiles_input;
249
250pub(crate) mod shape_internal_server_exception;
251
252pub(crate) mod shape_list_account_integrations_input;
253
254pub(crate) mod shape_list_profile_history_records_input;
255
256pub(crate) mod shape_list_profile_objects_input;
257
258pub(crate) mod shape_list_workflows_input;
259
260pub(crate) mod shape_merge_profiles_input;
261
262pub(crate) mod shape_put_integration_input;
263
264pub(crate) mod shape_put_profile_object_input;
265
266pub(crate) mod shape_put_profile_object_type_input;
267
268pub(crate) mod shape_resource_not_found_exception;
269
270pub(crate) mod shape_search_profiles_input;
271
272pub(crate) mod shape_tag_resource_input;
273
274pub(crate) mod shape_throttling_exception;
275
276pub(crate) mod shape_update_calculated_attribute_definition_input;
277
278pub(crate) mod shape_update_domain_input;
279
280pub(crate) mod shape_update_domain_layout_input;
281
282pub(crate) mod shape_update_event_trigger_input;
283
284pub(crate) mod shape_update_profile_input;
285
286pub(crate) mod shape_additional_search_key;
287
288pub(crate) mod shape_address;
289
290pub(crate) mod shape_attribute_details;
291
292pub(crate) mod shape_attribute_value_item_list;
293
294pub(crate) mod shape_auto_merging;
295
296pub(crate) mod shape_batch_get_calculated_attribute_for_profile_error_list;
297
298pub(crate) mod shape_batch_get_profile_error_list;
299
300pub(crate) mod shape_calculated_attribute_definitions_list;
301
302pub(crate) mod shape_calculated_attribute_value_list;
303
304pub(crate) mod shape_calculated_attributes_for_profile_list;
305
306pub(crate) mod shape_condition_overrides;
307
308pub(crate) mod shape_conditions;
309
310pub(crate) mod shape_conflict_resolution;
311
312pub(crate) mod shape_consolidation;
313
314pub(crate) mod shape_detected_profile_object_types;
315
316pub(crate) mod shape_domain_list;
317
318pub(crate) mod shape_domain_stats;
319
320pub(crate) mod shape_engagement_preferences;
321
322pub(crate) mod shape_event_stream_destination_details;
323
324pub(crate) mod shape_event_stream_summary_list;
325
326pub(crate) mod shape_event_trigger_condition;
327
328pub(crate) mod shape_event_trigger_conditions;
329
330pub(crate) mod shape_event_trigger_limits;
331
332pub(crate) mod shape_event_trigger_names;
333
334pub(crate) mod shape_event_trigger_summary_list;
335
336pub(crate) mod shape_exporting_location;
337
338pub(crate) mod shape_failures;
339
340pub(crate) mod shape_field_map;
341
342pub(crate) mod shape_field_source_profile_ids;
343
344pub(crate) mod shape_filter;
345
346pub(crate) mod shape_flow_definition;
347
348pub(crate) mod shape_identity_resolution_jobs_list;
349
350pub(crate) mod shape_integration_config;
351
352pub(crate) mod shape_integration_list;
353
354pub(crate) mod shape_job_stats;
355
356pub(crate) mod shape_key_map;
357
358pub(crate) mod shape_layout_list;
359
360pub(crate) mod shape_list_object_type_attributes_list;
361
362pub(crate) mod shape_match_id_list;
363
364pub(crate) mod shape_matches_list;
365
366pub(crate) mod shape_matching_request;
367
368pub(crate) mod shape_matching_response;
369
370pub(crate) mod shape_object_filter;
371
372pub(crate) mod shape_object_type_field;
373
374pub(crate) mod shape_object_type_key;
375
376pub(crate) mod shape_object_type_names;
377
378pub(crate) mod shape_profile_history_records;
379
380pub(crate) mod shape_profile_id_list;
381
382pub(crate) mod shape_profile_list;
383
384pub(crate) mod shape_profile_object_list;
385
386pub(crate) mod shape_profile_object_type_list;
387
388pub(crate) mod shape_profile_object_type_template_list;
389
390pub(crate) mod shape_profiles;
391
392pub(crate) mod shape_readiness;
393
394pub(crate) mod shape_request_value_list;
395
396pub(crate) mod shape_results_summary;
397
398pub(crate) mod shape_rule_based_matching_request;
399
400pub(crate) mod shape_rule_based_matching_response;
401
402pub(crate) mod shape_segment_definitions_list;
403
404pub(crate) mod shape_segment_group;
405
406pub(crate) mod shape_segment_group_structure;
407
408pub(crate) mod shape_tag_map;
409
410pub(crate) mod shape_update_address;
411
412pub(crate) mod shape_upload_jobs_list;
413
414pub(crate) mod shape_workflow_attributes;
415
416pub(crate) mod shape_workflow_list;
417
418pub(crate) mod shape_workflow_metrics;
419
420pub(crate) mod shape_workflow_steps_list;
421
422pub(crate) mod shape_appflow_integration;
423
424pub(crate) mod shape_appflow_integration_workflow_attributes;
425
426pub(crate) mod shape_appflow_integration_workflow_metrics;
427
428pub(crate) mod shape_attribute_item;
429
430pub(crate) mod shape_attribute_list;
431
432pub(crate) mod shape_attribute_types_selector;
433
434pub(crate) mod shape_attribute_value_item;
435
436pub(crate) mod shape_batch_get_calculated_attribute_for_profile_error;
437
438pub(crate) mod shape_batch_get_profile_error;
439
440pub(crate) mod shape_calculated_attribute_value;
441
442pub(crate) mod shape_contact_preference;
443
444pub(crate) mod shape_detected_profile_object_type;
445
446pub(crate) mod shape_event_stream_summary;
447
448pub(crate) mod shape_event_trigger_dimension;
449
450pub(crate) mod shape_event_trigger_summary_item;
451
452pub(crate) mod shape_exporting_config;
453
454pub(crate) mod shape_filter_group;
455
456pub(crate) mod shape_group;
457
458pub(crate) mod shape_group_list;
459
460pub(crate) mod shape_identity_resolution_job;
461
462pub(crate) mod shape_job_schedule;
463
464pub(crate) mod shape_layout_item;
465
466pub(crate) mod shape_list_calculated_attribute_definition_item;
467
468pub(crate) mod shape_list_calculated_attribute_for_profile_item;
469
470pub(crate) mod shape_list_domain_item;
471
472pub(crate) mod shape_list_integration_item;
473
474pub(crate) mod shape_list_object_type_attribute_item;
475
476pub(crate) mod shape_list_profile_object_type_item;
477
478pub(crate) mod shape_list_profile_object_type_template_item;
479
480pub(crate) mod shape_list_profile_objects_item;
481
482pub(crate) mod shape_list_workflows_item;
483
484pub(crate) mod shape_match_item;
485
486pub(crate) mod shape_matching_rule;
487
488pub(crate) mod shape_matching_rules;
489
490pub(crate) mod shape_object_type_key_list;
491
492pub(crate) mod shape_period;
493
494pub(crate) mod shape_periods;
495
496pub(crate) mod shape_profile;
497
498pub(crate) mod shape_profile_history_record;
499
500pub(crate) mod shape_profile_query_failures;
501
502pub(crate) mod shape_profile_query_result;
503
504pub(crate) mod shape_range;
505
506pub(crate) mod shape_range_override;
507
508pub(crate) mod shape_s3_exporting_location;
509
510pub(crate) mod shape_segment_definition_item;
511
512pub(crate) mod shape_segment_group_list;
513
514pub(crate) mod shape_source_flow_config;
515
516pub(crate) mod shape_task;
517
518pub(crate) mod shape_threshold;
519
520pub(crate) mod shape_trigger_config;
521
522pub(crate) mod shape_upload_job_item;
523
524pub(crate) mod shape_workflow_step_item;
525
526pub(crate) mod shape_address_list;
527
528pub(crate) mod shape_appflow_integration_workflow_step;
529
530pub(crate) mod shape_attributes;
531
532pub(crate) mod shape_batch;
533
534pub(crate) mod shape_connector_operator;
535
536pub(crate) mod shape_destination_summary;
537
538pub(crate) mod shape_dimension;
539
540pub(crate) mod shape_email_list;
541
542pub(crate) mod shape_event_trigger_dimensions;
543
544pub(crate) mod shape_filter_dimension;
545
546pub(crate) mod shape_found_by_list;
547
548pub(crate) mod shape_incremental_pull_config;
549
550pub(crate) mod shape_matching_attributes_list;
551
552pub(crate) mod shape_object_attribute;
553
554pub(crate) mod shape_phone_number_list;
555
556pub(crate) mod shape_s3_exporting_config;
557
558pub(crate) mod shape_source_connector_properties;
559
560pub(crate) mod shape_source_segment;
561
562pub(crate) mod shape_trigger_properties;
563
564pub(crate) mod shape_value_range;
565
566pub(crate) mod shape_calculated_attribute_dimension;
567
568pub(crate) mod shape_dimension_list;
569
570pub(crate) mod shape_email_preference_list;
571
572pub(crate) mod shape_field_name_list;
573
574pub(crate) mod shape_filter_attribute_dimension;
575
576pub(crate) mod shape_filter_dimension_list;
577
578pub(crate) mod shape_found_by_key_value;
579
580pub(crate) mod shape_marketo_source_properties;
581
582pub(crate) mod shape_matching_attributes;
583
584pub(crate) mod shape_matching_rule_attribute_list;
585
586pub(crate) mod shape_phone_preference_list;
587
588pub(crate) mod shape_profile_attributes;
589
590pub(crate) mod shape_s3_source_properties;
591
592pub(crate) mod shape_salesforce_source_properties;
593
594pub(crate) mod shape_scheduled_trigger_properties;
595
596pub(crate) mod shape_service_now_source_properties;
597
598pub(crate) mod shape_source_segment_list;
599
600pub(crate) mod shape_standard_identifier_list;
601
602pub(crate) mod shape_zendesk_source_properties;
603
604pub(crate) mod shape_address_dimension;
605
606pub(crate) mod shape_attribute_dimension;
607
608pub(crate) mod shape_date_dimension;
609
610pub(crate) mod shape_extra_length_value_profile_dimension;
611
612pub(crate) mod shape_object_attributes;
613
614pub(crate) mod shape_profile_dimension;
615
616pub(crate) mod shape_profile_type_dimension;
617
618pub(crate) mod shape_attribute_map;
619
620pub(crate) mod shape_calculated_custom_attributes;
621
622pub(crate) mod shape_custom_attributes;
623
624pub(crate) mod shape_event_trigger_values;
625
626pub(crate) mod shape_date_values;
627
628pub(crate) mod shape_extra_length_values;
629
630pub(crate) mod shape_profile_type_values;
631
632pub(crate) mod shape_value_list;
633
634pub(crate) mod shape_values;