Enum aws_smithy_json::deserialize::token::Token[][src]

pub enum Token<'a> {
    StartArray {
        offset: Offset,
    },
    EndArray {
        offset: Offset,
    },
    ObjectKey {
        offset: Offset,
        key: EscapedStr<'a>,
    },
    StartObject {
        offset: Offset,
    },
    EndObject {
        offset: Offset,
    },
    ValueBool {
        offset: Offset,
        value: bool,
    },
    ValueNull {
        offset: Offset,
    },
    ValueNumber {
        offset: Offset,
        value: Number,
    },
    ValueString {
        offset: Offset,
        value: EscapedStr<'a>,
    },
}
Expand description

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

Variants

StartArray

Fields of StartArray

offset: Offset
EndArray

Fields of EndArray

offset: Offset
ObjectKey

Fields of ObjectKey

offset: Offsetkey: EscapedStr<'a>
StartObject

Fields of StartObject

offset: Offset
EndObject

Fields of EndObject

offset: Offset
ValueBool

Fields of ValueBool

offset: Offsetvalue: bool
ValueNull

Fields of ValueNull

offset: Offset
ValueNumber

Fields of ValueNumber

offset: Offsetvalue: Number
ValueString

Fields of ValueString

offset: Offsetvalue: EscapedStr<'a>

Implementations

Builds an error from the token’s offset

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.