aws_sdk_ec2/protocol_serde/
shape_client_vpn_authentication_request.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(unused_mut)]
3pub fn ser_client_vpn_authentication_request(
4    mut writer: ::aws_smithy_query::QueryValueWriter,
5    input: &crate::types::ClientVpnAuthenticationRequest,
6) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
7    #[allow(unused_mut)]
8    let mut scope_1 = writer.prefix("Type");
9    if let Some(var_2) = &input.r#type {
10        scope_1.string(var_2.as_str());
11    }
12    #[allow(unused_mut)]
13    let mut scope_3 = writer.prefix("ActiveDirectory");
14    if let Some(var_4) = &input.active_directory {
15        crate::protocol_serde::shape_directory_service_authentication_request::ser_directory_service_authentication_request(scope_3, var_4)?;
16    }
17    #[allow(unused_mut)]
18    let mut scope_5 = writer.prefix("MutualAuthentication");
19    if let Some(var_6) = &input.mutual_authentication {
20        crate::protocol_serde::shape_certificate_authentication_request::ser_certificate_authentication_request(scope_5, var_6)?;
21    }
22    #[allow(unused_mut)]
23    let mut scope_7 = writer.prefix("FederatedAuthentication");
24    if let Some(var_8) = &input.federated_authentication {
25        crate::protocol_serde::shape_federated_authentication_request::ser_federated_authentication_request(scope_7, var_8)?;
26    }
27    Ok(())
28}