Skip to main content

buildfix_types/
lib.rs

1//! Shared DTOs (schemas-as-code) for the buildfix workspace.
2//!
3//! # Design constraints
4//! - These types are intended to be serialized to disk.
5//! - Be conservative with breaking changes.
6//! - Prefer adding optional fields over changing semantics.
7
8pub mod apply;
9pub mod ops;
10pub mod plan;
11pub mod receipt;
12pub mod report;
13pub mod wire;
14
15/// Schema identifiers.
16pub mod schema {
17    pub const BUILDFIX_PLAN_V1: &str = "buildfix.plan.v1";
18    pub const BUILDFIX_APPLY_V1: &str = "buildfix.apply.v1";
19    pub const BUILDFIX_REPORT_V1: &str = "buildfix.report.v1";
20
21    /// Universal sensor envelope schema (Cockpit ecosystem).
22    pub const SENSOR_REPORT_V1: &str = "sensor.report.v1";
23}