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)
BreakInDefiniteLen
CBOR(Error)
DefiniteLenMismatch(u64, Option<u64>)
DuplicateKey(Key)
EndingBreakMissing
ExpectedNull
ExpectedBool
FixedValueMismatch
MandatoryFieldMissing(Key)
Metadata(JsError)
NoVariantMatched
OutOfRange
PublicKeyError(PublicKeyError)
SignatureError(SignatureError)
TagMismatch
UnknownKey(Key)
UnexpectedKeyType(Type)
VariableLenNatDecodeFailed
Trait Implementations§
source§impl Debug for DeserializeFailure
impl Debug for DeserializeFailure
source§impl From<DeserializeFailure> for DeserializeError
impl From<DeserializeFailure> for DeserializeError
source§fn from(failure: DeserializeFailure) -> DeserializeError
fn from(failure: DeserializeFailure) -> DeserializeError
Converts to this type from the input type.