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)]
|
#[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(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user