Skip to main content

ApiResult

Type Alias ApiResult 

Source
pub(crate) type ApiResult<T> = Result<Json<T>, (StatusCode, Json<ErrorResponse>)>;

Aliased Type§

pub(crate) enum ApiResult<T> {
    Ok(Json<T>),
    Err((StatusCode, Json<ErrorResponse>)),
}

Variants§

§1.0.0

Ok(Json<T>)

Contains the success value

§1.0.0

Err((StatusCode, Json<ErrorResponse>))

Contains the error value