pub struct Issue { /* private fields */ }Expand description
Evidence-backed data-quality issue attached to source records and derived facts.
Implementations§
Source§impl Issue
impl Issue
Sourcepub fn new(
kind: Kind,
severity: Severity,
provenance: Provenance,
detected_at: Timestamp,
workflow_blocking: bool,
) -> Self
pub fn new( kind: Kind, severity: Severity, provenance: Provenance, detected_at: Timestamp, workflow_blocking: bool, ) -> Self
Creates an open data-quality issue from provenance and validated issue metadata.
Sourcepub fn kind(&self) -> Kind
pub fn kind(&self) -> Kind
Returns the concrete hygiene defect that explains why a source fact is blocked or reviewable.
Sourcepub const fn severity(&self) -> Severity
pub const fn severity(&self) -> Severity
Returns how strongly the issue should affect projection, manager review, or escalation.
Sourcepub const fn source_system(&self) -> System
pub const fn source_system(&self) -> System
Returns the provider system that produced the record needing cleanup or review.
Sourcepub const fn source_record_ref(&self) -> &RecordRef
pub const fn source_record_ref(&self) -> &RecordRef
Returns the auditable source record reference staff can use to repair the defect.
Sourcepub const fn provenance(&self) -> &Provenance
pub const fn provenance(&self) -> &Provenance
Returns the provenance chain that keeps cleanup evidence tied to provider ingestion.
Sourcepub const fn detected_at(&self) -> &Timestamp
pub const fn detected_at(&self) -> &Timestamp
Returns when the issue was detected so stale hygiene can be prioritized.
Sourcepub const fn resolution_status(&self) -> ResolutionStatus
pub const fn resolution_status(&self) -> ResolutionStatus
Returns whether the hygiene issue is open, acknowledged, ignored, repaired, or superseded.
Sourcepub const fn visible_to_bi(&self) -> bool
pub const fn visible_to_bi(&self) -> bool
Returns whether BI/labor reports should show the issue as context for apparent exceptions.
Sourcepub const fn workflow_blocking(&self) -> bool
pub const fn workflow_blocking(&self) -> bool
Returns whether this issue must stop automation or projection into labor workflows.