aws_sdk_elasticloadbalancingv2/protocol_serde/
shape_rule_priority_pair.rs1#[allow(unused_mut)]
3pub fn ser_rule_priority_pair(
4 mut writer: ::aws_smithy_query::QueryValueWriter,
5 input: &crate::types::RulePriorityPair,
6) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
7 #[allow(unused_mut)]
8 let mut scope_1 = writer.prefix("RuleArn");
9 if let Some(var_2) = &input.rule_arn {
10 scope_1.string(var_2);
11 }
12 #[allow(unused_mut)]
13 let mut scope_3 = writer.prefix("Priority");
14 if let Some(var_4) = &input.priority {
15 scope_3.number(
16 #[allow(clippy::useless_conversion)]
17 ::aws_smithy_types::Number::NegInt((*var_4).into()),
18 );
19 }
20 Ok(())
21}