proxycurl_linkedin_rs/apis/
configuration.rs

1/*
2 * Proxycurl API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.0.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11#[derive(Debug, Clone)]
12pub struct Configuration {
13    pub base_path: String,
14    pub user_agent: Option<String>,
15    pub client: reqwest::Client,
16    pub api_key: Option<String>,
17}
18
19impl Configuration {
20    pub fn new() -> Configuration {
21        Configuration::default()
22    }
23}
24
25impl Default for Configuration {
26    fn default() -> Self {
27        Configuration {
28            base_path: "https://nubela.co/proxycurl".to_owned(),
29            user_agent: Some("OpenAPI-Generator/1.0.0/rust".to_owned()),
30            client: reqwest::Client::new(),
31            api_key: std::env::var("PROXYCURL_API_KEY").ok(),
32        }
33    }
34}