use url::Url;
use url_macro::url;
pub struct Config {
pub base_url: Url,
pub client: reqwest::Client,
pub bearer_token: String,
pub user_agent: Option<String>,
}
impl Config {
pub fn new(bearer_token: String) -> Self {
Self {
base_url: url!("https://api.themoviedb.org"),
client: reqwest::Client::new(),
bearer_token,
user_agent: None,
}
}
}