aws-sdk-pinpoint 1.37.0

AWS SDK for Amazon Pinpoint
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_baidu_channel_request(
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::types::BaiduChannelRequest,
) -> Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    if let Some(var_1) = &input.api_key {
        object.key("ApiKey").string(var_1.as_str());
    }
    if let Some(var_2) = &input.enabled {
        object.key("Enabled").boolean(*var_2);
    }
    if let Some(var_3) = &input.secret_key {
        object.key("SecretKey").string(var_3.as_str());
    }
    Ok(())
}