Enum cardano_serialization_lib::error::DeserializeFailure [−][src]
pub enum DeserializeFailure {
Show 19 variants
BadAddressType(u8),
BreakInDefiniteLen,
CBOR(Error),
DefiniteLenMismatch(u64, Option<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)
Tuple Fields
0: u8
BreakInDefiniteLen
CBOR(Error)
Tuple Fields
0: Error
DefiniteLenMismatch(u64, Option<u64>)
DuplicateKey(Key)
Tuple Fields
0: Key
EndingBreakMissing
ExpectedNull
ExpectedBool
FixedValueMismatch
MandatoryFieldMissing(Key)
Tuple Fields
0: Key
Metadata(JsError)
Tuple Fields
0: JsError
NoVariantMatched
OutOfRange
PublicKeyError(PublicKeyError)
Tuple Fields
SignatureError(SignatureError)
Tuple Fields
TagMismatch
UnknownKey(Key)
Tuple Fields
0: Key
UnexpectedKeyType(Type)
Tuple Fields
0: Type
VariableLenNatDecodeFailed
Trait Implementations
Performs the conversion.