pub struct PinnedRule {
pub id: String,
pub revision: u64,
pub rfc: String,
pub level: String,
pub effective_status: String,
pub statement: String,
pub domains: Vec<String>,
pub stages: Vec<String>,
pub when_paths: Vec<String>,
pub task_classes: Vec<String>,
pub checker: Option<String>,
pub waivable: bool,
}Expand description
One rule’s approval-pinned snapshot inside StandardsPin — the consent
surface (D-E): what the operator accepted, verbatim. Strings carry the
pack contract’s canonical spellings (must/should,
approved/enforced, stage names, the rendered checker binding) so an
old log folds even if the pack vocabulary later grows additively.
Fields§
§id: String§revision: u64§rfc: StringParent RFC id (lifecycle grouping; the identity findings join on).
level: String§effective_status: StringThe rule’s EFFECTIVE lifecycle at resolution time (approved or
enforced — the resolver never pins retired or draft rules).
statement: StringThe one-line normative statement — the canonical machine/human text.
domains: Vec<String>Browsing/reporting labels (D-D: never a selection input). Kept in the pin so review and reports render them without a corpus read.
stages: Vec<String>§when_paths: Vec<String>§task_classes: Vec<String>§checker: Option<String>The rendered checker binding (gate:<id>, agent-judgement,
manual-attestation); pinned so evaluation never re-reads it from a
moved source.
waivable: boolTrait Implementations§
Source§impl Clone for PinnedRule
impl Clone for PinnedRule
Source§fn clone(&self) -> PinnedRule
fn clone(&self) -> PinnedRule
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more