aws-sdk-interconnect 1.0.0

AWS SDK for Interconnect
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_list_environments_input_input(
    encoder: &mut ::aws_smithy_cbor::Encoder,
    #[allow(unused)] input: &crate::operation::list_environments::ListEnvironmentsInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    encoder.begin_map();
    if let Some(var_1) = &input.max_results {
        encoder.str("maxResults").integer(*var_1);
    }
    if let Some(var_2) = &input.next_token {
        encoder.str("nextToken").str(var_2.as_str());
    }
    if let Some(var_3) = &input.provider {
        encoder.str("provider");
        crate::protocol_serde::shape_provider::ser_provider(encoder, var_3)?;
    }
    if let Some(var_4) = &input.location {
        encoder.str("location").str(var_4.as_str());
    }
    encoder.end();
    Ok(())
}