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

14 lines
275 B
Rust
Raw Normal View History

2019-10-14 06:38:22 +00:00
pub struct RiotApiConfig<'a> {
pub api_key: &'a str,
pub retries: u8,
2019-10-17 23:00:04 +00:00
}
impl<'a> RiotApiConfig<'a> {
pub fn with_key(api_key: &'a str) -> Self {
Self {
api_key: api_key,
retries: 3 // TODO defaults.
}
}
}