Skip to main content

DecodeError

Type Alias DecodeError 

Source
pub type DecodeError = FromSchemaError;
Expand description

Backwards-compatible alias kept for codegen and consumers.

Aliased Type§

pub enum DecodeError {
    ShapeMismatch {
        expected: String,
        actual: String,
        context: String,
    },
    OutOfRange {
        index: u32,
        len: u32,
        context: String,
    },
    UnknownUnionTag(String),
    Custom(String),
}

Variants§

§

ShapeMismatch

The expected value shape does not match what was provided.

Fields

§expected: String
§actual: String
§context: String
§

OutOfRange

A variant or enum case index is out of range.

Fields

§index: u32
§len: u32
§context: String
§

UnknownUnionTag(String)

A union tag was not matched by any branch.

§

Custom(String)

Free-form error message produced by generated decoders.