Fix: Change a bit the config Struct
This commit is contained in:
parent
051ea2566e
commit
8125876634
@ -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(),
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user