1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Result types for `ErrorResponse` (`salvo`) and `CliError` (`reqwest`) errors.

#[cfg(feature = "salvo")]
use crate::errors::ErrorResponse;

#[cfg(feature = "salvo")]
pub type MResult<T> = Result<T, ErrorResponse>;

#[cfg(feature = "reqwest")]
#[cfg(any(target_arch = "wasm32", target_arch = "wasm64"))]
use crate::errors::CliError;

#[cfg(feature = "reqwest")]
#[cfg(any(target_arch = "wasm32", target_arch = "wasm64"))]
pub type CResult<T> = Result<T, CliError>;