Fix: Change a bit the config Struct

This commit is contained in:
Óscar M. Lage 2021-11-14 14:55:30 +01:00
parent 051ea2566e
commit 8125876634

View File

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