Skip to main content

systemprompt_cli/commands/build/
types.rs

1use schemars::JsonSchema;
2use serde::{Deserialize, Serialize};
3
4#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema)]
5pub struct BuildExtensionRow {
6    pub name: String,
7    pub build_type: String,
8    pub status: String,
9}
10
11#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema)]
12pub struct BuildOutput {
13    pub extensions: Vec<BuildExtensionRow>,
14    pub total: usize,
15    pub successful: usize,
16    pub release_mode: bool,
17}
18
19#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema)]
20pub struct CoreBuildOutput {
21    pub target: String,
22    pub mode: String,
23    pub status: String,
24    pub duration_secs: Option<f64>,
25}
26
27#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema)]
28pub struct WebBuildOutput {
29    pub target: String,
30    pub mode: String,
31    pub status: String,
32    pub output_dir: String,
33    pub duration_secs: Option<f64>,
34}