Skip to main content

geoengine_api_client/apis/
configuration.rs

1/*
2 * Geo Engine API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * Contact: dev@geoengine.de
7 * Generated by: https://openapi-generator.tech
8 */
9
10
11
12#[derive(Debug, Clone)]
13pub struct Configuration {
14    pub base_path: String,
15    pub user_agent: Option<String>,
16    pub client: reqwest::Client,
17    pub basic_auth: Option<BasicAuth>,
18    pub oauth_access_token: Option<String>,
19    pub bearer_access_token: Option<String>,
20    pub api_key: Option<ApiKey>,
21}
22
23pub type BasicAuth = (String, Option<String>);
24
25#[derive(Debug, Clone)]
26pub struct ApiKey {
27    pub prefix: Option<String>,
28    pub key: String,
29}
30
31
32impl Configuration {
33    pub fn new() -> Configuration {
34        Configuration::default()
35    }
36}
37
38impl Default for Configuration {
39    fn default() -> Self {
40        Configuration {
41            base_path: "https://geoengine.io/api".to_owned(),
42            user_agent: Some("OpenAPI-Generator/0.9.2/rust".to_owned()),
43            client: reqwest::Client::new(),
44            basic_auth: None,
45            oauth_access_token: None,
46            bearer_access_token: None,
47            api_key: None,
48        }
49    }
50}