relux_runtime/observe/structured/
shell.rs1use std::time::Duration;
2
3use serde::Deserialize;
4use serde::Serialize;
5use ts_rs::TS;
6
7#[derive(Debug, Clone, Serialize, Deserialize, TS)]
8#[cfg_attr(
9 feature = "ts-export",
10 ts(export, export_to = "../../../viewer/src/types/")
11)]
12pub struct ShellRecord {
13 pub marker: String,
15 pub name: String,
18 #[serde(with = "super::ts_duration_ms")]
19 #[ts(as = "f64")]
20 pub spawn_ts: Duration,
21 #[serde(with = "super::ts_duration_ms_opt")]
22 #[ts(as = "Option<f64>")]
23 pub terminate_ts: Option<Duration>,
24 pub command: String,
25}