diff options
| author | Namilskyy <alive6863@gmail.com> | 2025-12-01 14:06:10 +0300 |
|---|---|---|
| committer | Namilskyy <alive6863@gmail.com> | 2025-12-01 14:06:10 +0300 |
| commit | 068eea55e0612184151461e64633b3dc18e53490 (patch) | |
| tree | d3e20aea860a88e2b50ad3d35ddbd8792a1e531e /src/cfg/config.rs | |
| parent | 2029c2c09284d0228c0bce2977fdfa0ca8a8db06 (diff) | |
Implemented test suite, fixed some issues and added more modular structure into .woodpecker.yaml
Diffstat (limited to 'src/cfg/config.rs')
| -rw-r--r-- | src/cfg/config.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cfg/config.rs b/src/cfg/config.rs index de9901f..213224f 100644 --- a/src/cfg/config.rs +++ b/src/cfg/config.rs @@ -2,7 +2,7 @@ use serde::{Deserialize, Serialize}; use std::fs; use toml; -#[derive(Debug, Deserialize, Serialize)] +#[derive(Deserialize, Debug, Serialize, Clone)] #[serde(rename_all = "lowercase")] pub enum Loglevel { Trace, @@ -13,14 +13,14 @@ pub enum Loglevel { } /// `mesk.toml` configuration fields here -#[derive(Deserialize, Debug, Serialize)] +#[derive(Deserialize, Debug, Serialize, Clone)] pub struct Config { pub repo: Repo, pub log: Log, pub paths: Paths, } -#[derive(Deserialize, Debug, Serialize)] +#[derive(Deserialize, Debug, Serialize, Clone)] pub struct Log { #[serde(rename = "log_file")] pub log_file: String, @@ -29,7 +29,7 @@ pub struct Log { } // Rename needed for editing mesk.toml file fields but dont touch code. -#[derive(Deserialize, Debug, Serialize)] +#[derive(Deserialize, Debug, Serialize, Clone)] pub struct Repo { #[serde(rename = "repo_url")] pub repo_url: String, @@ -43,7 +43,7 @@ pub struct Repo { // pub arch = arch; } -#[derive(Deserialize, Debug, Serialize)] +#[derive(Deserialize, Debug, Serialize, Clone)] pub struct Paths { #[serde(rename = "cache_dir")] pub cache_dir: String, |
