summaryrefslogtreecommitdiff
path: root/src-tauri/src/cmd.rs
blob: 3c95a354cb977925ffcd23913c630b5a912db638 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
use serde::Deserialize;

#[derive(Deserialize)]
#[serde(tag = "cmd", rename_all = "camelCase")]
pub enum Cmd {
  // your custom commands
  // multiple arguments are allowed
  // note that rename_all = "camelCase": you need to use "myCustomCommand" on JS
  MyCustomCommand { argument: String },
}