aws-sdk-iotmanagedintegrations 1.42.0

AWS SDK for Managed integrations for AWS IoT Device Management
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_auth_config_update(
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::types::AuthConfigUpdate,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    if let Some(var_1) = &input.o_auth_update {
        #[allow(unused_mut)]
        let mut object_2 = object.key("oAuthUpdate").start_object();
        crate::protocol_serde::shape_o_auth_update::ser_o_auth_update(&mut object_2, var_1)?;
        object_2.finish();
    }
    if let Some(var_3) = &input.general_authorization_update {
        #[allow(unused_mut)]
        let mut object_4 = object.key("GeneralAuthorizationUpdate").start_object();
        crate::protocol_serde::shape_general_authorization_update::ser_general_authorization_update(&mut object_4, var_3)?;
        object_4.finish();
    }
    Ok(())
}