pub struct RunManifest {Show 20 fields
pub manifest_version: String,
pub run_id: String,
pub started_at: DateTime<Utc>,
pub completed_at: Option<DateTime<Utc>>,
pub config_hash: String,
pub config_snapshot: GeneratorConfig,
pub seed: u64,
pub scenario_tags: Vec<String>,
pub statistics: Option<EnhancedGenerationStatistics>,
pub duration_seconds: Option<f64>,
pub generator_version: String,
pub metadata: HashMap<String, String>,
pub output_directory: Option<String>,
pub output_files: Vec<OutputFileInfo>,
pub warnings: Vec<String>,
pub lineage: Option<LineageGraph>,
pub quality_gate_result: Option<QualityGateResultSummary>,
pub llm_enrichment: Option<LlmEnrichmentSummary>,
pub diffusion_model: Option<DiffusionModelSummary>,
pub causal_generation: Option<CausalGenerationSummary>,
}Expand description
Complete manifest of a generation run for reproducibility.
Fields§
§manifest_version: StringManifest format version.
run_id: StringUnique identifier for this run.
started_at: DateTime<Utc>Timestamp when generation started.
completed_at: Option<DateTime<Utc>>Timestamp when generation completed.
config_hash: StringSHA-256 hash of the configuration (for quick comparison).
config_snapshot: GeneratorConfigComplete configuration snapshot.
seed: u64Seed used for random number generation.
Scenario tags for categorization.
statistics: Option<EnhancedGenerationStatistics>Generation statistics.
duration_seconds: Option<f64>Duration in seconds.
generator_version: StringVersion of the generator.
metadata: HashMap<String, String>Additional metadata.
output_directory: Option<String>Output directory path.
output_files: Vec<OutputFileInfo>List of output files generated.
warnings: Vec<String>Any warnings or notes from the generation.
lineage: Option<LineageGraph>Data lineage graph tracking config → generator → output relationships.
quality_gate_result: Option<QualityGateResultSummary>Quality gate evaluation result.
llm_enrichment: Option<LlmEnrichmentSummary>LLM enrichment phase summary.
diffusion_model: Option<DiffusionModelSummary>Diffusion enhancement phase summary.
causal_generation: Option<CausalGenerationSummary>Causal generation phase summary.
Implementations§
Source§impl RunManifest
impl RunManifest
Sourcepub fn new(config: &GeneratorConfig, seed: u64) -> Self
pub fn new(config: &GeneratorConfig, seed: u64) -> Self
Creates a new run manifest.
Sourcepub fn complete(&mut self, statistics: EnhancedGenerationStatistics)
pub fn complete(&mut self, statistics: EnhancedGenerationStatistics)
Marks the run as complete.
Adds multiple scenario tags.
Sourcepub fn set_output_directory(&mut self, path: &Path)
pub fn set_output_directory(&mut self, path: &Path)
Sets the output directory.
Sourcepub fn add_output_file(&mut self, info: OutputFileInfo)
pub fn add_output_file(&mut self, info: OutputFileInfo)
Adds an output file record.
Sourcepub fn add_warning(&mut self, warning: &str)
pub fn add_warning(&mut self, warning: &str)
Adds a warning message.
Sourcepub fn add_metadata(&mut self, key: &str, value: &str)
pub fn add_metadata(&mut self, key: &str, value: &str)
Adds metadata.
Sourcepub fn populate_file_checksums(&mut self, base_dir: &Path)
pub fn populate_file_checksums(&mut self, base_dir: &Path)
Populates SHA-256 checksums for all output files.
Resolves each file path relative to base_dir and computes its checksum.
Also populates size_bytes if not already set.
Sourcepub fn verify_file_checksums(
&self,
base_dir: &Path,
) -> Vec<ChecksumVerificationResult>
pub fn verify_file_checksums( &self, base_dir: &Path, ) -> Vec<ChecksumVerificationResult>
Verifies checksums for all output files against their recorded values.
Sourcepub fn write_to_file(&self, path: &Path) -> Result<()>
pub fn write_to_file(&self, path: &Path) -> Result<()>
Writes the manifest to a JSON file.
Trait Implementations§
Source§impl Clone for RunManifest
impl Clone for RunManifest
Source§fn clone(&self) -> RunManifest
fn clone(&self) -> RunManifest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RunManifest
impl Debug for RunManifest
Source§impl<'de> Deserialize<'de> for RunManifest
impl<'de> Deserialize<'de> for RunManifest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for RunManifest
impl RefUnwindSafe for RunManifest
impl Send for RunManifest
impl Sync for RunManifest
impl Unpin for RunManifest
impl UnwindSafe for RunManifest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.