kanade_shared/wire/command.rs
1use serde::{Deserialize, Serialize};
2
3#[derive(Serialize, Deserialize, Debug, Clone)]
4pub struct Command {
5 pub id: String,
6 pub version: String,
7 pub request_id: String,
8 pub job_id: Option<String>,
9 pub shell: Shell,
10 pub script: String,
11 pub timeout_secs: u64,
12 pub jitter_secs: Option<u64>,
13}
14
15#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq)]
16#[serde(rename_all = "lowercase")]
17pub enum Shell {
18 Powershell,
19 Cmd,
20}