aws-sdk-cloudhsm 0.25.1

AWS SDK for Amazon CloudHSM
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_describe_hsm_input(
    object: &mut aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::operation::describe_hsm::DescribeHsmInput,
) -> Result<(), aws_smithy_http::operation::error::SerializationError> {
    if let Some(var_1) = &input.hsm_arn {
        object.key("HsmArn").string(var_1.as_str());
    }
    if let Some(var_2) = &input.hsm_serial_number {
        object.key("HsmSerialNumber").string(var_2.as_str());
    }
    Ok(())
}