aws-sdk-securityagent 1.1.0

AWS SDK for AWS Security Agent
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_provider_input(
    object_2: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::types::ProviderInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    match input {
        crate::types::ProviderInput::Github(inner) => {
            #[allow(unused_mut)]
            let mut object_1 = object_2.key("github").start_object();
            crate::protocol_serde::shape_git_hub_integration_input::ser_git_hub_integration_input(&mut object_1, inner)?;
            object_1.finish();
        }
        crate::types::ProviderInput::Unknown => {
            return Err(::aws_smithy_types::error::operation::SerializationError::unknown_variant("ProviderInput"))
        }
    }
    Ok(())
}