aws-sdk-appmesh 1.101.0

AWS SDK for AWS App Mesh
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_gateway_route_payload(
    body: &[u8],
) -> std::result::Result<::std::option::Option<crate::types::GatewayRouteData>, crate::operation::describe_gateway_route::DescribeGatewayRouteError> {
    (!body.is_empty())
        .then(|| {
            crate::protocol_serde::shape_gateway_route_data::de_gateway_route_data_payload(body)
                .map_err(crate::operation::describe_gateway_route::DescribeGatewayRouteError::unhandled)
        })
        .transpose()
}