Validation

Type Alias Validation 

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

Many errors

Aliased Type§

pub enum Validation<T> {
    Success {
        value: T,
        diagnostics: Vec<VomlError>,
    },
    Failure {
        fatal: VomlError,
        diagnostics: Vec<VomlError>,
    },
}

Variants§

§

Success

Verification process complete

Fields

§value: T

The final product after successful verification

§diagnostics: Vec<VomlError>

Some diagnostics that does not stop the analysis

§

Failure

Verification process interrupted

Fields

§fatal: VomlError

A fatal problem prevents the analysis from continuing

§diagnostics: Vec<VomlError>

Some diagnostics that does not stop the analysis