diffguard-types
Serializable DTOs and schema-bound types shared across the diffguard workspace.
This crate intentionally contains data types and constants, not orchestration or I/O.
Primary Type Groups
Configuration:
ConfigFileDefaultsRuleConfigRuleTestCaseDirectoryOverrideConfigRuleOverride
Check/receipt model:
CheckReceiptFindingVerdictVerdictCountsVerdictStatus(pass,warn,fail,skip)DiffMeta,ToolMeta,TimingMetrics
Sensor model:
SensorReportRunMetaCapabilityStatusSensorFindingSensorLocationArtifact
Enums/constants:
Severity,Scope,FailOn,MatchModeCHECK_SCHEMA_V1SENSOR_REPORT_SCHEMA_V1- stable reason/code/capability tokens
Built-In Rules
ConfigFile::built_in() returns the workspace default rule set and default
settings used by the CLI pipeline.
Usage
use ;
let built_in = built_in;
let custom_rule = RuleConfig ;
let _json = to_string_pretty?;
let _toml = to_string_pretty?;
Determinism Notes
Schema IDs and vocabulary constants are stable integration contracts for downstream tooling.
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.