Skip to main content

tokmd_analysis_types/
source.rs

1//! Analysis source metadata receipt DTOs.
2//!
3//! This module owns the source snapshot embedded in analysis receipts. Public
4//! consumers should keep using the crate-root `AnalysisSource` re-export.
5
6use serde::{Deserialize, Serialize};
7
8/// Source metadata recorded in an analysis receipt.
9#[derive(Debug, Clone, Serialize, Deserialize)]
10pub struct AnalysisSource {
11    pub inputs: Vec<String>,
12    pub export_path: Option<String>,
13    pub base_receipt_path: Option<String>,
14    pub export_schema_version: Option<u32>,
15    pub export_generated_at_ms: Option<u128>,
16    pub base_signature: Option<String>,
17    pub module_roots: Vec<String>,
18    pub module_depth: usize,
19    pub children: String,
20}