Skip to main content

Crate diffguard_types

Crate diffguard_types 

Source
Expand description

Data types (config + receipts) for diffguard.

This crate is intentionally “dumb”: pure DTOs with serde + schemars.

Structs§

Artifact
An artifact produced by the sensor.
CapabilityStatus
Status of a capability (e.g., git availability).
CheckReceipt
ConfigFile
The on-disk configuration file.
Defaults
DiffMeta
DirectoryOverrideConfig
Per-directory override configuration (.diffguard.toml).
Finding
RuleConfig
RuleOverride
Override settings for a specific rule in a directory.
RuleTestCase
A test case for validating a rule’s behavior.
RunMeta
Run timing and capability status.
SensorFinding
A finding in sensor.report.v1 format.
SensorLocation
Location in sensor.report.v1 format.
SensorReport
The sensor.report.v1 envelope for Cockpit ecosystem integration.
TimingMetrics
Timing metrics for performance analysis.
ToolMeta
Verdict
VerdictCounts

Enums§

FailOn
MatchMode
Scope
Severity
VerdictStatus

Constants§

CAP_GIT
CAP_STATUS_AVAILABLE
CAP_STATUS_SKIPPED
CAP_STATUS_UNAVAILABLE
CHECK_ID_INTERNAL
CHECK_ID_PATTERN
CHECK_SCHEMA_V1
CODE_TOOL_RUNTIME_ERROR
REASON_GIT_UNAVAILABLE
REASON_HAS_ERROR
Deprecated: no longer emitted in verdict.reasons (redundant with verdict.counts). Retained for backward-compatible vocabulary validation.
REASON_HAS_WARNING
Deprecated: no longer emitted in verdict.reasons (redundant with verdict.counts). Retained for backward-compatible vocabulary validation.
REASON_MISSING_BASE
REASON_NO_DIFF_INPUT
REASON_TOOL_ERROR
REASON_TRUNCATED
SENSOR_REPORT_SCHEMA_V1