1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub mod endpoints;
pub mod error;
#[allow(unused)]
mod models;

use self::error::HttpApiError;
use super::Api;

/// Helper type for the result of the http api calls and reducing typing HttpApiError
type HttpApiResult<T> = Result<T, HttpApiError>;

/// This object will be used as a shared state between HTTP calls.
#[derive(Clone)]
pub struct HttpApiHandler {
    pub api: Api,
}