diff options
Diffstat (limited to 'src/config/mod.rs')
-rw-r--r-- | src/config/mod.rs | 7 |
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, |