#[allow(clippy::needless_question_mark)]
pub fn de_group_identifier(
decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
) -> ::std::result::Result<crate::types::GroupIdentifier, ::aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::types::GroupIdentifier::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("groupId") => {
let var_1 =
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_group_id(var_1);
}
,
s if s.matches("groupName") => {
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_group_name(var_2);
}
,
_ => {}
}
}
Ok(builder.build())
}
#[allow(unused_mut)]
pub fn ser_group_identifier(
mut writer: ::aws_smithy_query::QueryValueWriter,
input: &crate::types::GroupIdentifier,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
#[allow(unused_mut)]
let mut scope_3 = writer.prefix("GroupId");
if let Some(var_4) = &input.group_id {
scope_3.string(var_4);
}
#[allow(unused_mut)]
let mut scope_5 = writer.prefix("GroupName");
if let Some(var_6) = &input.group_name {
scope_5.string(var_6);
}
Ok(())
}