aws-sdk-appstream 1.121.0

AWS SDK for Amazon AppStream
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_describe_image_permissions_input_input(
    encoder: &mut ::aws_smithy_cbor::Encoder,
    #[allow(unused)] input: &crate::operation::describe_image_permissions::DescribeImagePermissionsInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    encoder.begin_map();
    if let Some(var_1) = &input.name {
        encoder.str("Name").str(var_1.as_str());
    }
    if let Some(var_2) = &input.max_results {
        encoder.str("MaxResults").integer(*var_2);
    }
    if let Some(var_3) = &input.shared_aws_account_ids {
        encoder.str("SharedAwsAccountIds");
        encoder.array((*var_3).len());
        for item_4 in var_3 {
            {
                encoder.str(item_4.as_str());
            }
        }
    }
    if let Some(var_5) = &input.next_token {
        encoder.str("NextToken").str(var_5.as_str());
    }
    encoder.end();
    Ok(())
}