aws-sdk-devicefarm 1.99.0

AWS SDK for AWS Device Farm
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_purchase_offering_input_input(
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::operation::purchase_offering::PurchaseOfferingInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    if let Some(var_1) = &input.offering_id {
        object.key("offeringId").string(var_1.as_str());
    }
    if let Some(var_2) = &input.quantity {
        object.key("quantity").number(
            #[allow(clippy::useless_conversion)]
            ::aws_smithy_types::Number::NegInt((*var_2).into()),
        );
    }
    if let Some(var_3) = &input.offering_promotion_id {
        object.key("offeringPromotionId").string(var_3.as_str());
    }
    Ok(())
}