Type Alias bonsaidb::core::api::ApiResult

source ·
pub type ApiResult<Api> = Result<<Api as Api>::Response, <Api as Api>::Error>;
Expand description

The result of executing a custom API call.

Aliased Type§

enum ApiResult<Api> {
    Ok(<Api as Api>::Response),
    Err(<Api as Api>::Error),
}

Variants§

§1.0.0

Ok(<Api as Api>::Response)

Contains the success value

§1.0.0

Err(<Api as Api>::Error)

Contains the error value