Update to Rust programming language.
This commit is contained in:
parent
ee8d236e1c
commit
54613e3628
201 changed files with 12954 additions and 1690 deletions
32
src-tauri/src/assistant_commands/structs.rs
Normal file
32
src-tauri/src/assistant_commands/structs.rs
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
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<Config>,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Debug)]
|
||||
pub struct Config {
|
||||
pub command: ConfigCommandSection,
|
||||
pub voice: ConfigVoiceSection,
|
||||
pub phrases: Vec<String>,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Debug)]
|
||||
pub struct ConfigCommandSection {
|
||||
pub action: String,
|
||||
pub exe_path: String,
|
||||
pub exe_args: Vec<String>,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Debug)]
|
||||
pub struct ConfigVoiceSection {
|
||||
pub sounds: Vec<String>,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue