JsonResult

Type Alias JsonResult 

Source
pub type JsonResult<T> = AppResult<Json<T>>;
Expand description

If you are returning JSON, use this.

Aliased Type§

pub enum JsonResult<T> {
    Ok(Json<T>),
    Err(AppError),
}

Variants§

§1.0.0

Ok(Json<T>)

Contains the success value

§1.0.0

Err(AppError)

Contains the error value