From f2ef0f00b48c11f12dc49b9d1e0c27b589e78d87 Mon Sep 17 00:00:00 2001 From: Namilskyy Date: Tue, 25 Mar 2025 19:48:26 +0300 Subject: Developing API response pacrser --- src/configmanager.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/configmanager.rs') diff --git a/src/configmanager.rs b/src/configmanager.rs index e046aa2..c124419 100644 --- a/src/configmanager.rs +++ b/src/configmanager.rs @@ -13,12 +13,16 @@ pub struct Config { cache: bool //Cacheing next Weather to dont use internet in next call rain: String, //Path to rain image (png/jpg) or ASCII art int .txt sunny: String, //Path to sunny image (png/jpg) or ASCII art int .txt - snowy: String, - //More info: OpenWeatherMap.org/api/one-call3 + snowy: String, } + //More info: OpenWeatherMap.org/api/one-call3 pub fn handle_config() -> Result<(), Box>{ let Config_str = fs::read_to_string("~/.config/WeatherFetch/Config.toml"); let Config_parse: Config = toml::from_str(&data)?.except(); } } + +pub fn gen_standart_conf() { + +} -- cgit v1.2.3