From ba3a2832b762d799ea5cb7f2470e1e39132ff957 Mon Sep 17 00:00:00 2001 From: itsusinn Date: Wed, 27 Oct 2021 22:48:26 +0800 Subject: [PATCH] refactor: change var name --- src/config.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config.rs b/src/config.rs index 7274fc4..908139a 100644 --- a/src/config.rs +++ b/src/config.rs @@ -8,7 +8,7 @@ use std::path::Path; #[location = "config/tg.yml"] pub struct Config { #[educe(Default = false)] - pub enabled: bool, + pub enable: bool, pub nats: NatsConfig, pub cipher: CipherConfig, pub telegram: TelegramConfig, @@ -35,7 +35,7 @@ pub struct NatsConfig { #[basic_derive] pub struct ProxyConfig { #[educe(Default = false)] - pub enabled: bool, + pub enable: bool, // pattern: "http://{username}:{password}@{host}:{port}" #[educe(Default = "http://127.0.0.1:7890")] pub address: String, @@ -44,7 +44,7 @@ pub struct ProxyConfig { #[basic_derive] pub struct CipherConfig { #[educe(Default = false)] - pub enabled: bool, + pub enable: bool, #[educe(Default = "this-is-an-example-key")] pub key: String, #[educe(Default = true)]