aws_sdk_secretsmanager/protocol_serde/
shape_put_secret_value_input.rspub fn ser_put_secret_value_input_input(
object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::operation::put_secret_value::PutSecretValueInput,
) -> Result<(), ::aws_smithy_types::error::operation::SerializationError> {
if let Some(var_1) = &input.secret_id {
object.key("SecretId").string(var_1.as_str());
}
if let Some(var_2) = &input.client_request_token {
object.key("ClientRequestToken").string(var_2.as_str());
}
if let Some(var_3) = &input.secret_binary {
object.key("SecretBinary").string_unchecked(&::aws_smithy_types::base64::encode(var_3));
}
if let Some(var_4) = &input.secret_string {
object.key("SecretString").string(var_4.as_str());
}
if let Some(var_5) = &input.version_stages {
let mut array_6 = object.key("VersionStages").start_array();
for item_7 in var_5 {
{
array_6.value().string(item_7.as_str());
}
}
array_6.finish();
}
Ok(())
}