use std::collections::HashMap;
pub struct CredentialsManager {
pub api_key: String,
}
impl CredentialsManager {
pub(super) fn get_auth_headers(&self) -> HashMap<String, String> {
HashMap::from([("X-Riot-Token".to_string(), self.api_key.clone())])
}
}
impl Clone for CredentialsManager {
fn clone(&self) -> Self {
Self {
api_key: self.api_key.clone(),
}
}
}