proxycurl_linkedin_rs/apis/
configuration.rs1#[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}