pub enum DeserializeFailure {
Show 19 variants BadAddressType(u8), BreakInDefiniteLen, CBOR(Error), DefiniteLenMismatch(u64Option<u64>), DuplicateKey(Key), EndingBreakMissing, ExpectedNull, ExpectedBool, FixedValueMismatch { found: Key, expected: Key, }, MandatoryFieldMissing(Key), Metadata(JsError), NoVariantMatched, OutOfRange { min: usize, max: usize, found: usize, }, PublicKeyError(PublicKeyError), SignatureError(SignatureError), TagMismatch { found: u64, expected: u64, }, UnknownKey(Key), UnexpectedKeyType(Type), VariableLenNatDecodeFailed,
}

Variants

BadAddressType(u8)

BreakInDefiniteLen

CBOR(Error)

DefiniteLenMismatch(u64Option<u64>)

DuplicateKey(Key)

EndingBreakMissing

ExpectedNull

ExpectedBool

FixedValueMismatch

Fields

found: Key
expected: Key

MandatoryFieldMissing(Key)

Metadata(JsError)

NoVariantMatched

OutOfRange

Fields

min: usize
max: usize
found: usize

PublicKeyError(PublicKeyError)

SignatureError(SignatureError)

TagMismatch

Fields

found: u64
expected: u64

UnknownKey(Key)

UnexpectedKeyType(Type)

VariableLenNatDecodeFailed

Trait Implementations

Formats the value using the given formatter. Read more

Converts to this type from the input type.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.