aws-sdk-inspector2 1.121.0

AWS SDK for Inspector2
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_create_integration_detail(
    object_2: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::types::CreateIntegrationDetail,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    match input {
        crate::types::CreateIntegrationDetail::GitlabSelfManaged(inner) => {
            #[allow(unused_mut)]
            let mut object_1 = object_2.key("gitlabSelfManaged").start_object();
            crate::protocol_serde::shape_create_git_lab_self_managed_integration_detail::ser_create_git_lab_self_managed_integration_detail(
                &mut object_1,
                inner,
            )?;
            object_1.finish();
        }
        crate::types::CreateIntegrationDetail::Unknown => {
            return Err(::aws_smithy_types::error::operation::SerializationError::unknown_variant(
                "CreateIntegrationDetail",
            ))
        }
    }
    Ok(())
}