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.
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|