Skip to main content

Validation

Type Alias Validation 

Source
pub type Validation = Result<(), String>;
Expand description

The outcome of validating a candidate answer: Ok(()) accepts it, Err carries a short reason to display before re-asking.

Aliased Type§

pub enum Validation {
    Ok(()),
    Err(String),
}

Variants§

§1.0.0

Ok(())

Contains the success value

§1.0.0

Err(String)

Contains the error value