aws-sdk-interconnect 1.1.0

AWS SDK for Interconnect
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_remote_account_identifier(
    encoder: &mut ::aws_smithy_cbor::Encoder,
    input: &crate::types::RemoteAccountIdentifier,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    encoder.map(1);
    match input {
        crate::types::RemoteAccountIdentifier::Identifier(inner) => {
            encoder.str("identifier").str(inner.as_str());
        }
        crate::types::RemoteAccountIdentifier::Unknown => {
            return ::std::result::Result::Err(::aws_smithy_types::error::operation::SerializationError::unknown_variant(
                "RemoteAccountIdentifier",
            ))
        }
    }
    ::std::result::Result::Ok(())
}