WebResult

Type Alias WebResult 

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

A Result type for implementing functions. Allows you to use ? within your function body to return a 500 with the error details.

Aliased Type§

pub enum WebResult<T> {
    Ok(T),
    Err(WebError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(WebError)

Contains the error value