#[cfg(feature = "http")]
pub type ApiResult<T, E = crate::error::ApiError> = Result<T, E>;
#[cfg(feature = "actix")]
pub mod actix {
use crate::pagination::PagedApiResponse;
pub type JsonApiResult<J, E = crate::error::ApiError> = Result<actix_web::web::Json<J>, E>;
pub type JsonApiPagedResult<J, P, E = crate::error::ApiError> =
Result<PagedApiResponse<actix_web::web::Json<J>, P>, E>;
pub type JsonOrOtherApiResult<J, O, E = crate::error::ApiError> =
Result<actix_web::Either<actix_web::web::Json<J>, O>, E>;
}