aws_sdk_codepipeline/protocol_serde/
shape_execution_details.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub fn ser_execution_details(
3    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
4    input: &crate::types::ExecutionDetails,
5) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
6    if let Some(var_1) = &input.summary {
7        object.key("summary").string(var_1.as_str());
8    }
9    if let Some(var_2) = &input.external_execution_id {
10        object.key("externalExecutionId").string(var_2.as_str());
11    }
12    if let Some(var_3) = &input.percent_complete {
13        object.key("percentComplete").number(
14            #[allow(clippy::useless_conversion)]
15            ::aws_smithy_types::Number::NegInt((*var_3).into()),
16        );
17    }
18    Ok(())
19}