use serde::Deserialize; use std::path::PathBuf; #[derive(Debug)] pub struct AssistantCommand { pub path: PathBuf, pub commands: CommandsList, } #[derive(Deserialize, Debug)] pub struct CommandsList { pub list: Vec, } #[derive(Deserialize, Debug)] pub struct Config { pub command: ConfigCommandSection, pub voice: ConfigVoiceSection, pub phrases: Vec, } #[derive(Deserialize, Debug)] pub struct ConfigCommandSection { pub action: String, pub exe_path: String, pub exe_args: Vec, } #[derive(Deserialize, Debug)] pub struct ConfigVoiceSection { pub sounds: Vec, }