valorant_api_official 0.2.2

A library for interacting with the Official Valorant API.
Documentation
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(),
        }
    }
}