forked from mirror/Riven
1
0
Fork 0
Riven/src/riot_api_config.rs

14 lines
275 B
Rust

pub struct RiotApiConfig<'a> {
pub api_key: &'a str,
pub retries: u8,
}
impl<'a> RiotApiConfig<'a> {
pub fn with_key(api_key: &'a str) -> Self {
Self {
api_key: api_key,
retries: 3 // TODO defaults.
}
}
}