aws-sdk-context 1.0.0

AWS SDK for AWS Context
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_start_task_input_input(
    encoder: &mut ::aws_smithy_cbor::Encoder,
    #[allow(unused)] input: &crate::operation::start_task::StartTaskInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    encoder.begin_map();
    if let Some(var_1) = &input.agent_context_id {
        encoder.str("agentContextId").str(var_1.as_str());
    }
    if let Some(var_2) = &input.client_token {
        encoder.str("clientToken").str(var_2.as_str());
    }
    if let Some(var_3) = &input.description {
        encoder.str("description").str(var_3.as_str());
    }
    if let Some(var_4) = &input.input_configuration {
        encoder.str("inputConfiguration");
        crate::protocol_serde::shape_task_input_configuration::ser_task_input_configuration(encoder, var_4)?;
    }
    if let Some(var_5) = &input.access_control_config {
        encoder.str("accessControlConfig");
        crate::protocol_serde::shape_access_control_config::ser_access_control_config(encoder, var_5)?;
    }
    encoder.end();
    Ok(())
}