about summary refs log tree commit diff stats
path: root/src/config/mod.rs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-24 11:28:45 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-24 11:45:28 +0200
commit55e8da54a85c817bc6f71a9af43a7f6d813a67b3 (patch)
tree870dea01a562ec3709fd190aa616062705cdb079 /src/config/mod.rs
parentfix(config): Check for wrong keys in the config file (diff)
downloadyt-55e8da54a85c817bc6f71a9af43a7f6d813a67b3.tar.gz
yt-55e8da54a85c817bc6f71a9af43a7f6d813a67b3.zip
feat(cli/config): Show the currently active configuration
Diffstat (limited to 'src/config/mod.rs')
-rw-r--r--src/config/mod.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs
index 3d0d0b5..ea40055 100644
--- a/src/config/mod.rs
+++ b/src/config/mod.rs
@@ -11,11 +11,13 @@
 use std::path::PathBuf;
 
 use bytes::Bytes;
+use serde::Serialize;
 
 mod default;
 mod definitions;
 pub mod file_system;
 
+#[derive(Serialize)]
 pub struct Config {
     pub select: SelectConfig,
     pub watch: WatchConfig,
@@ -23,19 +25,24 @@ pub struct Config {
     pub download: DownloadConfig,
     pub update: UpdateConfig,
 }
+#[derive(Serialize)]
 pub struct UpdateConfig {
     pub max_backlog: u32,
 }
+#[derive(Serialize)]
 pub struct DownloadConfig {
     pub max_cache_size: Bytes,
 }
+#[derive(Serialize)]
 pub struct SelectConfig {
     pub playback_speed: f64,
     pub subtitle_langs: String,
 }
+#[derive(Serialize)]
 pub struct WatchConfig {
     pub local_comments_length: usize,
 }
+#[derive(Serialize)]
 pub struct PathsConfig {
     pub download_dir: PathBuf,
     pub mpv_config_path: PathBuf,