aws-sdk-workspaces 1.151.0

AWS SDK for Amazon WorkSpaces
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_describe_workspaces_input_input(
    encoder: &mut ::aws_smithy_cbor::Encoder,
    #[allow(unused)] input: &crate::operation::describe_workspaces::DescribeWorkspacesInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    encoder.begin_map();
    if let Some(var_1) = &input.workspace_ids {
        encoder.str("WorkspaceIds");
        encoder.array((*var_1).len());
        for item_2 in var_1 {
            {
                encoder.str(item_2.as_str());
            }
        }
    }
    if let Some(var_3) = &input.directory_id {
        encoder.str("DirectoryId").str(var_3.as_str());
    }
    if let Some(var_4) = &input.user_name {
        encoder.str("UserName").str(var_4.as_str());
    }
    if let Some(var_5) = &input.bundle_id {
        encoder.str("BundleId").str(var_5.as_str());
    }
    if let Some(var_6) = &input.limit {
        encoder.str("Limit").integer(*var_6);
    }
    if let Some(var_7) = &input.next_token {
        encoder.str("NextToken").str(var_7.as_str());
    }
    if let Some(var_8) = &input.workspace_name {
        encoder.str("WorkspaceName").str(var_8.as_str());
    }
    encoder.end();
    Ok(())
}