Skip to main content

Control

Trait Control 

Source
pub trait Control: Send + Sync {
    // Required methods
    fn id(&self) -> ControlId;
    fn evaluate(&self, evidence: &EvidenceBundle) -> Vec<ControlFinding>;

    // Provided methods
    fn description(&self) -> &'static str { ... }
    fn tsc_criteria(&self) -> &'static [&'static str] { ... }
}
Expand description

A verifiable SDLC control that produces findings from evidence.

Required Methods§

Source

fn id(&self) -> ControlId

Returns the unique identifier for this control.

Source

fn evaluate(&self, evidence: &EvidenceBundle) -> Vec<ControlFinding>

Evaluates the evidence bundle and returns one finding per subject.

Provided Methods§

Source

fn description(&self) -> &'static str

Human-readable description for SARIF rule output.

Source

fn tsc_criteria(&self) -> &'static [&'static str]

SOC2 Trust Services Criteria this control maps to (e.g., &[“CC6.1”, “CC8.1”]). Returns empty slice for controls not mapped to SOC2.

Implementors§