aws-sdk-sagemakergatewayruntime 1.0.0

AWS SDK for Amazon SageMaker Gateway Runtime
Documentation
1
2
3
4
5
6
7
8
9
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub(crate) fn de_body_payload(
    body: &[u8],
) -> std::result::Result<
    ::std::option::Option<::aws_smithy_types::Blob>,
    crate::operation::invoke_global_inference_gateway::InvokeGlobalInferenceGatewayError,
> {
    (!body.is_empty()).then(|| Ok(::aws_smithy_types::Blob::new(body))).transpose()
}