Enum kickstarter::validate::error::Error [] [src]

pub enum Error {
    NotAlphaNumeric(String),
    Length(String, usize, usize),
    NotNumeric(String),
    NotLuhn10(String),
    InvalidAmount,
    CardExists,
    ProjectDoesNotExist,
}

The error type for validation operations.

Variants

NotAlphaNumeric

The string should be alphanumeric and contain only underscores or dashes.

Length

The string length was not within the provided bounds.

NotNumeric

The string provided was not numeric.

NotLuhn10

The string did not pass the Luhn-10 test.

InvalidAmount

The pledged amount was not more than zero dollars.

CardExists

The credit card has already been used to back the desired project.

ProjectDoesNotExist

The project being searched for does not exist.

Trait Implementations

impl Display for Error

fn fmt(&self, fmt: &mut Formatter) -> Result

impl ErrorTrait for Error

fn description(&self) -> &str

fn cause(&self) -> Option<&ErrorTrait>

Derived Implementations

impl Eq for Error

impl PartialEq for Error

fn eq(&self, __arg_0: &Error) -> bool

fn ne(&self, __arg_0: &Error) -> bool

impl Debug for Error

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for Error

fn clone(&self) -> Error

fn clone_from(&mut self, source: &Self)