aws-sdk-connectscheduling 1.2.0

AWS SDK for Amazon Connect Scheduling
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_create_time_off_input_input(
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::operation::create_time_off::CreateTimeOffInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    if let Some(var_1) = &input.approval_type {
        object.key("ApprovalType").string(var_1.as_str());
    }
    if let Some(var_2) = &input.client_token {
        object.key("ClientToken").string(var_2.as_str());
    }
    if let Some(var_3) = &input.description {
        object.key("Description").string(var_3.as_str());
    }
    if let Some(var_4) = &input.end_at {
        object
            .key("EndAt")
            .date_time(var_4, ::aws_smithy_types::date_time::Format::EpochSeconds)?;
    }
    if let Some(var_5) = &input.rule_failure_action {
        object.key("RuleFailureAction").string(var_5.as_str());
    }
    if let Some(var_6) = &input.shift_activity_id {
        object.key("ShiftActivityId").string(var_6.as_str());
    }
    if let Some(var_7) = &input.start_at {
        object
            .key("StartAt")
            .date_time(var_7, ::aws_smithy_types::date_time::Format::EpochSeconds)?;
    }
    Ok(())
}