aws-sdk-interconnect 1.1.0

AWS SDK for Interconnect
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_accept_connection_proposal_input_input(
    encoder: &mut ::aws_smithy_cbor::Encoder,
    #[allow(unused)] input: &crate::operation::accept_connection_proposal::AcceptConnectionProposalInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    encoder.begin_map();
    if let Some(var_1) = &input.attach_point {
        encoder.str("attachPoint");
        crate::protocol_serde::shape_attach_point::ser_attach_point(encoder, var_1)?;
    }
    if let Some(var_2) = &input.activation_key {
        encoder.str("activationKey").str(var_2.as_str());
    }
    if let Some(var_3) = &input.description {
        encoder.str("description").str(var_3.as_str());
    }
    if let Some(var_4) = &input.tags {
        encoder.str("tags");
        encoder.map((*var_4).len());
        for (key_5, value_6) in var_4 {
            {
                encoder.str(key_5.as_str()).str(value_6.as_str());
            }
        }
    }
    if let Some(var_7) = &input.client_token {
        encoder.str("clientToken").str(var_7.as_str());
    }
    encoder.end();
    Ok(())
}