Enum government_id::error::Error [] [src]

pub enum Error {
    Empty,
    ExpectedNumbersOnly,
    WrongLength {
        length: i32,
    },
    InvalidCharacters {
        valid: String,
    },
    RegexError(Error),
}

Variants

Fields of WrongLength

Fields of InvalidCharacters

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter.

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

[src]

A short description of the error. Read more

[src]

The lower-level cause of this error, if any. Read more

impl From<Error> for Error
[src]

[src]

Performs the conversion.