Skip to main content

ApiResult

Type Alias ApiResult 

Source
pub type ApiResult<T, S> = Result<T, ApiResponse<S>>;
Expand description

A convenient alias for a Result type where the error is an ApiResponse.

Aliased Type§

pub enum ApiResult<T, S> {
    Ok(T),
    Err(ApiResponse<S>),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(ApiResponse<S>)

Contains the error value