pub struct AcceptEntry {
pub line: usize,
pub text: String,
pub func: String,
pub effects: BTreeSet<&'static str>,
pub classes: Option<BTreeSet<String>>,
pub rule_key: String,
pub forbid: bool,
pub because: String,
}Expand description
⟨0.41⟩ ONE VALID accept LINE (SPEC §6.2 ⟨0.41⟩): accept <fn> [<Effect>…] for <rule tokens…> because <why…>.
Built only when every check passed — a line that is otherwise malformed is an PolicyError (non-fatal,
listed in the verdict’s ignored) and no entry, so the violation it meant to accept stays in violations.
Fields§
§line: usize1-based line of the accept line in the policy file.
text: StringThe source line verbatim.
func: StringONE token, compared by exact string equality with a verdict row’s fn.
effects: BTreeSet<&'static str>The §1 effect names listed (and Unknown, only with a class filter). Empty for a forbid entry.
classes: Option<BTreeSet<String>>The reason-class TOKENS an Unknown[…] filter listed. None when the entry does not list Unknown.
rule_key: Stringrule_key of the deny/pure/forbid line it names.
forbid: boolTrue when the named rule is a forbid (AS-EFF-009); false for deny/pure (AS-EFF-006).
because: StringThe operator’s justification: its tokens joined by single spaces.