Skip to main content

HttpResult

Type Alias HttpResult 

Source
pub type HttpResult<T: IntoResponse, E: IntoResponse = HttpError> = Result<T, E>;
Expand description

Result type for HTTP requests.

Aliased Type§

pub enum HttpResult<T: IntoResponse, E: IntoResponse = HttpError> {
    Ok(T),
    Err(E),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(E)

Contains the error value