pub fn ser_response_headers_policy_config_http_payload(
payload: &::std::option::Option<crate::types::ResponseHeadersPolicyConfig>,
) -> ::std::result::Result<::std::vec::Vec<u8>, ::aws_smithy_types::error::operation::BuildError> {
let payload = match payload.as_ref() {
Some(t) => t,
None => return Ok(crate::protocol_serde::rest_xml_unset_struct_payload()),
};
Ok(crate::protocol_serde::shape_update_response_headers_policy_input::ser_response_headers_policy_config_payload(payload)?)
}
pub fn ser_response_headers_policy_config_payload(
input: &crate::types::ResponseHeadersPolicyConfig,
) -> std::result::Result<std::vec::Vec<u8>, ::aws_smithy_types::error::operation::SerializationError> {
let mut out = String::new();
{
let mut writer = ::aws_smithy_xml::encode::XmlWriter::new(&mut out);
#[allow(unused_mut)]
let mut root = writer
.start_el("ResponseHeadersPolicyConfig")
.write_ns("http://cloudfront.amazonaws.com/doc/2020-05-31/", None);
crate::protocol_serde::shape_response_headers_policy_config::ser_response_headers_policy_config(input, root)?
}
Ok(out.into_bytes())
}