Type Alias isin::ISINError

source ·
pub type ISINError = Error;
👎Deprecated since 0.1.18: please use Error instead
Expand description

Type alias for backward compatibility. Do not use in new code.

Aliased Type§

enum ISINError {
    InvalidLength {
        was: usize,
    },
    InvalidPayloadLength {
        was: usize,
    },
    InvalidPrefixLength {
        was: usize,
    },
    InvalidBasicCodeLength {
        was: usize,
    },
    InvalidPrefix {
        was: [u8; 2],
    },
    InvalidBasicCode {
        was: [u8; 9],
    },
    InvalidCheckDigit {
        was: u8,
    },
    IncorrectCheckDigit {
        was: u8,
        expected: u8,
    },
}

Variants§

§

InvalidLength

Fields

§was: usize

The length we found

The input length is not exactly 12 bytes.

§

InvalidPayloadLength

Fields

§was: usize

The length we found

The Payload length is not exactly 11 bytes (checked when building).

§

InvalidPrefixLength

Fields

§was: usize

The length we found

The Prefix length is not exactly 2 bytes (checked when building).

§

InvalidBasicCodeLength

Fields

§was: usize

The length we found

The Basic Code length is not exactly 9 bytes (checked when building).

§

InvalidPrefix

Fields

§was: [u8; 2]

The Prefix we found

The input Prefix is not two uppercase ASCII alphabetic characters.

§

InvalidBasicCode

Fields

§was: [u8; 9]

The Basic Code we found

The input Basic Code is not nine uppercase ASCII alphanumeric characters.

§

InvalidCheckDigit

Fields

§was: u8

The Check Digit we found

The input Check Digit is not a single ASCII decimal digit character.

§

IncorrectCheckDigit

Fields

§was: u8

The Check Digit we found

§expected: u8

The Check Digit we expected

The input Check Digit is in a valid format, but has an incorrect value.