aws_sdk_gamelift/protocol_serde/
shape_describe_fleet_events_input.rs1pub fn ser_describe_fleet_events_input_input(
3 object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
4 input: &crate::operation::describe_fleet_events::DescribeFleetEventsInput,
5) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
6 if let Some(var_1) = &input.fleet_id {
7 object.key("FleetId").string(var_1.as_str());
8 }
9 if let Some(var_2) = &input.start_time {
10 object
11 .key("StartTime")
12 .date_time(var_2, ::aws_smithy_types::date_time::Format::EpochSeconds)?;
13 }
14 if let Some(var_3) = &input.end_time {
15 object
16 .key("EndTime")
17 .date_time(var_3, ::aws_smithy_types::date_time::Format::EpochSeconds)?;
18 }
19 if let Some(var_4) = &input.limit {
20 object.key("Limit").number(
21 #[allow(clippy::useless_conversion)]
22 ::aws_smithy_types::Number::NegInt((*var_4).into()),
23 );
24 }
25 if let Some(var_5) = &input.next_token {
26 object.key("NextToken").string(var_5.as_str());
27 }
28 Ok(())
29}