aws_sdk_pinpoint/protocol_serde/
shape_remove_attributes_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub fn ser_update_attributes_request_http_payload(
3    payload: &::std::option::Option<crate::types::UpdateAttributesRequest>,
4) -> ::std::result::Result<::std::vec::Vec<u8>, ::aws_smithy_types::error::operation::BuildError> {
5    let payload = match payload.as_ref() {
6        Some(t) => t,
7        None => return Ok(crate::protocol_serde::rest_json_unset_struct_payload()),
8    };
9    Ok(crate::protocol_serde::shape_remove_attributes_input::ser_update_attributes_request_payload(payload)?)
10}
11
12pub fn ser_update_attributes_request_payload(
13    input: &crate::types::UpdateAttributesRequest,
14) -> std::result::Result<::std::vec::Vec<u8>, ::aws_smithy_types::error::operation::SerializationError> {
15    let mut out = String::new();
16    let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
17    crate::protocol_serde::shape_update_attributes_request::ser_update_attributes_request(&mut object, input)?;
18    object.finish();
19    Ok(out.into_bytes())
20}