Skip to main content

Result

Type Alias Result 

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

Response result alias for handlers that emit structured problem details.

Aliased Type§

pub enum Result<T> {
    Ok(T),
    Err(ProblemResponse),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(ProblemResponse)

Contains the error value