Skip to main content

GateResult

Type Alias GateResult 

Source
pub type GateResult = Result<Vec<Violation>, GateError>;
Expand description

What every gate returns: the violations it found, or why it could not run.

Aliased Type§

pub enum GateResult {
    Ok(Vec<Violation>),
    Err(GateError),
}

Variants§

§1.0.0

Ok(Vec<Violation>)

Contains the success value

§1.0.0

Err(GateError)

Contains the error value