pub fn ser_resource_record(
input: &crate::types::ResourceRecord,
writer: aws_smithy_xml::encode::ElWriter,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
#[allow(unused_mut)]
let mut scope = writer.finish();
if let Some(var_1) = &input.value {
let mut inner_writer = scope.start_el("Value").finish();
inner_writer.data(var_1.as_str());
}
scope.finish();
Ok(())
}
pub fn de_resource_record(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::types::ResourceRecord, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::types::ResourceRecord::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Value") => {
let var_2 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_value(var_2);
}
,
_ => {}
}
}
Ok(builder.build())
}