pub struct Requirements {
pub owner_required: bool,
pub reason_required: bool,
pub classification_required: bool,
pub evidence_required: bool,
pub expires_or_review_after_required: bool,
pub allow_bare_allow_attributes: bool,
pub lint_policy_id_required: bool,
pub stale_entries_fail: bool,
pub unsafe_evidence_required: bool,
pub unsafe_safety_comment_required: bool,
pub unsafe_verified_evidence_required: bool,
pub unsafe_verified_evidence_grandfather_entries_created_before: Option<String>,
}Expand description
Per-ledger requirements toggles. Defaults are intentionally strict on
ownership/accountability (owner/reason/classification/lifecycle
required) and on unsafe findings (unsafe_evidence_required: true) while
ordinary evidence is advisory by default (evidence_required: false).
This asymmetry is deliberate: an unsafe finding always needs explicit
evidence even in the default profile, whereas general evidence links are
encouraged but not hard-required out of the box. Promote general evidence
to hard-required by setting evidence_required = true in the policy.
Fields§
§owner_required: bool§reason_required: bool§classification_required: bool§evidence_required: bool§expires_or_review_after_required: bool§allow_bare_allow_attributes: bool§lint_policy_id_required: bool§stale_entries_fail: bool§unsafe_evidence_required: bool§unsafe_safety_comment_required: bool§unsafe_verified_evidence_required: boolRequire at least one verified local-file evidence reference for unsafe entries (#3237). Traceability-only evidence (test:, issue:, pr:, etc.) is accepted as supplementary but does not satisfy this mandate alone. Default: false (opt-in to tighten the governance boundary).
unsafe_verified_evidence_grandfather_entries_created_before: Option<String>Entries created strictly before this date (YYYY-MM-DD) are exempt
from unsafe_verified_evidence_required — the grandfathering window
for the rollout (#3237). Entries with no created date are treated
as grandfathered (they predate the mandate’s record-keeping). None
disables grandfathering (the mandate applies to every entry).
Trait Implementations§
Source§impl Clone for Requirements
impl Clone for Requirements
Source§fn clone(&self) -> Requirements
fn clone(&self) -> Requirements
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more