Files
logseq/web/src-tauri/src/cmd.rs
Tienson Qin 8c35556605 Add tauri
2020-07-09 11:31:58 +08:00

11 lines
296 B
Rust

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 },
}