aws_sdk_elasticinference/protocol_serde/
shape_describe_accelerator_offerings_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub fn ser_describe_accelerator_offerings_input_input(
3    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
4    input: &crate::operation::describe_accelerator_offerings::DescribeAcceleratorOfferingsInput,
5) -> Result<(), ::aws_smithy_types::error::operation::SerializationError> {
6    if let Some(var_1) = &input.accelerator_types {
7        let mut array_2 = object.key("acceleratorTypes").start_array();
8        for item_3 in var_1 {
9            {
10                array_2.value().string(item_3.as_str());
11            }
12        }
13        array_2.finish();
14    }
15    if let Some(var_4) = &input.location_type {
16        object.key("locationType").string(var_4.as_str());
17    }
18    Ok(())
19}