aws_sdk_codestar/protocol_serde/
shape_git_hub_code_destination.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub fn ser_git_hub_code_destination(
3    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
4    input: &crate::types::GitHubCodeDestination,
5) -> Result<(), ::aws_smithy_types::error::operation::SerializationError> {
6    {
7        object.key("name").string(input.name.as_str());
8    }
9    if let Some(var_1) = &input.description {
10        object.key("description").string(var_1.as_str());
11    }
12    {
13        object.key("type").string(input.r#type.as_str());
14    }
15    {
16        object.key("owner").string(input.owner.as_str());
17    }
18    {
19        object.key("privateRepository").boolean(input.private_repository);
20    }
21    {
22        object.key("issuesEnabled").boolean(input.issues_enabled);
23    }
24    {
25        object.key("token").string(input.token.as_str());
26    }
27    Ok(())
28}