superposition_sdk 0.100.2

Rust SDK to work with Superposition
1
2
3
4
5
6
7
8
9
10
11
12
13
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub(crate) fn de_document_payload(input: &[u8]) -> ::std::result::Result<::aws_smithy_types::Document, ::aws_smithy_json::deserialize::error::DeserializeError> {
    let mut tokens_owned = ::aws_smithy_json::deserialize::json_token_iter(input).peekable();
                        let tokens = &mut tokens_owned;
    let result =
    Some(::aws_smithy_json::deserialize::token::expect_document(tokens)?)
    .ok_or_else(|| ::aws_smithy_json::deserialize::error::DeserializeError::custom("expected payload member value"));
    if tokens.next().is_some() {
        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom("found more JSON tokens after completing parsing"));
    }
    result
}