aws-sdk-connect 1.185.0

AWS SDK for Amazon Connect Service
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_send_outbound_web_notification_input_input(
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::operation::send_outbound_web_notification::SendOutboundWebNotificationInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    if let Some(var_1) = &input.browser_id {
        object.key("BrowserId").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.content {
        #[allow(unused_mut)]
        let mut object_4 = object.key("Content").start_object();
        crate::protocol_serde::shape_web_notification_content::ser_web_notification_content(&mut object_4, var_3)?;
        object_4.finish();
    }
    if let Some(var_5) = &input.destination {
        #[allow(unused_mut)]
        let mut object_6 = object.key("Destination").start_object();
        crate::protocol_serde::shape_widget_destination::ser_widget_destination(&mut object_6, var_5)?;
        object_6.finish();
    }
    if let Some(var_7) = &input.expires_at {
        object
            .key("ExpiresAt")
            .date_time(var_7, ::aws_smithy_types::date_time::Format::EpochSeconds)?;
    }
    if let Some(var_8) = &input.session_id {
        object.key("SessionId").string(var_8.as_str());
    }
    if let Some(var_9) = &input.source {
        #[allow(unused_mut)]
        let mut object_10 = object.key("Source").start_object();
        crate::protocol_serde::shape_web_notification_source::ser_web_notification_source(&mut object_10, var_9)?;
        object_10.finish();
    }
    Ok(())
}