pub enum ResolveError {
    MismatchedTy {
        expected: JsonTy,
        actual: JsonTy,
    },
    MissingIdx(Idx),
}
Expand description

Error returned by a failure to resolve a path of indices

Variants

MismatchedTy

Fields

expected: JsonTy

Type that was expected

actual: JsonTy

Type that was found

Expected next item in the path to be a specific type, but it wasn’t

MissingIdx(Idx)

Expected an index to exist, but it didn’t

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

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

The number of items that this chain link consists of.

Append the elements in this link to the chain.

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

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.