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_copy_image_input_input(
    encoder: &mut ::aws_smithy_cbor::Encoder,
    #[allow(unused)] input: &crate::operation::copy_image::CopyImageInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    encoder.begin_map();
    if let Some(var_1) = &input.source_image_name {
        encoder.str("SourceImageName").str(var_1.as_str());
    }
    if let Some(var_2) = &input.destination_image_name {
        encoder.str("DestinationImageName").str(var_2.as_str());
    }
    if let Some(var_3) = &input.destination_region {
        encoder.str("DestinationRegion").str(var_3.as_str());
    }
    if let Some(var_4) = &input.destination_image_description {
        encoder.str("DestinationImageDescription").str(var_4.as_str());
    }
    encoder.end();
    Ok(())
}