artifacts/apis/
configuration.rs1#[derive(Debug, Clone)]
6pub struct Configuration {
7 pub base_path: String,
8 pub user_agent: Option<String>,
9 pub client: reqwest::Client,
10 pub basic_auth: Option<BasicAuth>,
11 pub oauth_access_token: Option<String>,
12 pub bearer_access_token: Option<String>,
13 pub api_key: Option<ApiKey>,
14 }
16
17pub type BasicAuth = (String, Option<String>);
18
19#[derive(Debug, Clone)]
20pub struct ApiKey {
21 pub prefix: Option<String>,
22 pub key: String,
23}
24
25impl Configuration {
26 pub fn new() -> Configuration {
27 Configuration::default()
28 }
29}
30
31impl Default for Configuration {
32 fn default() -> Self {
33 Configuration {
34 base_path: "https://api.artifactsmmo.com".to_owned(),
35 user_agent: Some("OpenAPI-Generator/5.0/rust".to_owned()),
36 client: reqwest::Client::new(),
37 basic_auth: None,
38 oauth_access_token: None,
39 bearer_access_token: None,
40 api_key: None,
41 }
42 }
43}