Add: Added user_id key to Config struct

This commit is contained in:
Óscar M. Lage 2021-11-19 18:35:36 +01:00
parent 52a12426e3
commit 900d6ae3f0

View File

@ -9,6 +9,7 @@ use toml;
pub struct Config {
pub url: String,
pub key: String,
pub user_id: u32,
}
impl Config {
@ -16,6 +17,7 @@ impl Config {
Config {
url: "https://uri".to_string(),
key: "s3cr3tk3y".to_string(),
user_id: 0,
}
}
pub fn parse(&mut self, config_file: &PathBuf) -> Config {