aws-sdk-pinpoint 0.36.0

AWS SDK for Amazon Pinpoint
Documentation
1
2
3
4
5
6
7
8
9
10
11
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub(crate) fn de_in_app_messages_response_payload(
    body: &[u8],
) -> std::result::Result<::std::option::Option<crate::types::InAppMessagesResponse>, crate::operation::get_in_app_messages::GetInAppMessagesError> {
    (!body.is_empty())
        .then(|| {
            crate::protocol_serde::shape_in_app_messages_response::de_in_app_messages_response_payload(body)
                .map_err(crate::operation::get_in_app_messages::GetInAppMessagesError::unhandled)
        })
        .transpose()
}