aws-sdk-gamelift 1.119.0

AWS SDK for Amazon GameLift
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_start_match_backfill_input_input(
    encoder: &mut ::aws_smithy_cbor::Encoder,
    #[allow(unused)] input: &crate::operation::start_match_backfill::StartMatchBackfillInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    encoder.begin_map();
    if let Some(var_1) = &input.ticket_id {
        encoder.str("TicketId").str(var_1.as_str());
    }
    if let Some(var_2) = &input.configuration_name {
        encoder.str("ConfigurationName").str(var_2.as_str());
    }
    if let Some(var_3) = &input.game_session_arn {
        encoder.str("GameSessionArn").str(var_3.as_str());
    }
    if let Some(var_4) = &input.players {
        encoder.str("Players");
        encoder.array((*var_4).len());
        for item_5 in var_4 {
            {
                crate::protocol_serde::shape_player::ser_player(encoder, item_5)?;
            }
        }
    }
    encoder.end();
    Ok(())
}