Enum cardano_serialization_lib::error::DeserializeFailure[][src]

pub enum DeserializeFailure {
Show 18 variants BadAddressType(u8), BreakInDefiniteLen, CBOR(Error), DefiniteLenMismatch(u64, Option<u64>), DuplicateKey(Key), EndingBreakMissing, ExpectedNull, 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

Tuple Fields of BadAddressType

0: u8
BreakInDefiniteLen
CBOR

Tuple Fields of CBOR

0: Error
DefiniteLenMismatch

Tuple Fields of DefiniteLenMismatch

0: u641: Option<u64>
DuplicateKey

Tuple Fields of DuplicateKey

0: Key
EndingBreakMissing
ExpectedNull
FixedValueMismatch

Fields of FixedValueMismatch

found: Keyexpected: Key
MandatoryFieldMissing

Tuple Fields of MandatoryFieldMissing

0: Key
Metadata

Tuple Fields of Metadata

0: JsError
NoVariantMatched
OutOfRange

Fields of OutOfRange

min: usizemax: usizefound: usize
PublicKeyError

Tuple Fields of PublicKeyError

0: PublicKeyError
SignatureError

Tuple Fields of SignatureError

0: SignatureError
TagMismatch

Fields of TagMismatch

found: u64expected: u64
UnknownKey

Tuple Fields of UnknownKey

0: Key
UnexpectedKeyType

Tuple Fields of UnexpectedKeyType

0: Type
VariableLenNatDecodeFailed

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

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.

Should always be Self

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.