Fix: Change a bit the config Struct

main
Óscar M. Lage 2021-11-14 14:55:30 +01:00
parent 051ea2566e
commit 8125876634
1 changed files with 2 additions and 4 deletions

View File

@ -7,16 +7,14 @@ use toml;
#[derive(Debug, Serialize, Deserialize)]
pub struct Config {
url: String,
api: String,
key: String,
pub url: String,
pub key: String,
}
impl Config {
pub fn default() -> Config {
Config {
url: "https://uri".to_string(),
api: "/v1/api".to_string(),
key: "s3cr3tk3y".to_string(),
}
}