aws-sdk-mailmanager 1.89.0

AWS SDK for MailManager
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_ingress_point_configuration(
    encoder: &mut ::aws_smithy_cbor::Encoder,
    input: &crate::types::IngressPointConfiguration,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    encoder.map(1);
    match input {
        crate::types::IngressPointConfiguration::SmtpPassword(inner) => {
            encoder.str("SmtpPassword").str(inner.as_str());
        }
        crate::types::IngressPointConfiguration::SecretArn(inner) => {
            encoder.str("SecretArn").str(inner.as_str());
        }
        crate::types::IngressPointConfiguration::TlsAuthConfiguration(inner) => {
            encoder.str("TlsAuthConfiguration");
            crate::protocol_serde::shape_tls_auth_configuration::ser_tls_auth_configuration(encoder, inner)?;
        }
        crate::types::IngressPointConfiguration::Unknown => {
            return ::std::result::Result::Err(::aws_smithy_types::error::operation::SerializationError::unknown_variant(
                "IngressPointConfiguration",
            ))
        }
    }
    ::std::result::Result::Ok(())
}