Skip to main content

Validation

Type Alias Validation 

Source
pub type Validation<T> = Result<T, Rejection>;
Expand description

An opt-in validator result that carries structured rejection details.

Aliased Type§

pub enum Validation<T> {
    Ok(T),
    Err(Rejection),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Rejection)

Contains the error value