Module aws_smithy_json::deserialize::token[][src]

Structs

New-type around &str that indicates the string is an escaped JSON string. Provides functions for retrieving the string in either form.

Represents the location of a token

Enums

Enum representing the different JSON tokens that can be returned by json_token_iter.

Functions

Expects a Token::ValueString or Token::ValueNull. If the value is a string, it interprets it as a base64 encoded Blob value.

Expects a Token::ValueBool or Token::ValueNull, and returns the bool value if it’s not null.

Expects and parses a complete document value.

Expects a Token::StartArray token and returns an error if it’s not present.

Expects a Token::StartObject token and returns an error if it’s not present.

Expects a Token::ValueString or Token::ValueNull, and returns the EscapedStr value if it’s not null.

Expects a Token::ValueNull, Token::ValueString, or Token::ValueNumber depending on the passed in timestamp_format. If there is a non-null value, it interprets it as an DateTime in the requested format.

Assumes a start object/array token has already been consumed and skips tokens until until its corresponding end object/array token is found.

Skips an entire value in the token stream. Errors if it isn’t a value.