1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[derive(Debug, Clone)]
pub struct Configuration {
    pub base_path: String,
    pub client: reqwest::Client,
    pub api_key: Option<String>,
    pub oauth_access_token: Option<String>,
}

impl Default for Configuration {
    fn default() -> Self {
        Self {
            base_path: "https://dtz.rocks".to_string(),
            client: Default::default(),
            api_key: None,
            oauth_access_token: None,
        }
    }
}