Type Alias JsonResult

Source
pub type JsonResult<T, E = Nothing> = Result<JsonResponse<T>, JsonError<E>>;

Aliased Type§

pub enum JsonResult<T, E = Nothing> {
    Ok(JsonResponse<T>),
    Err(JsonError<E>),
}

Variants§

§1.0.0

Ok(JsonResponse<T>)

Contains the success value

§1.0.0

Err(JsonError<E>)

Contains the error value