pub struct Rule {
pub id: String,
pub question: String,
pub probe: Vec<String>,
pub why: Option<String>,
pub prompt: Option<String>,
pub tags: Vec<String>,
pub added: Option<String>,
pub timeout: Option<f64>,
pub pending: bool,
pub severity: Severity,
pub expect: Adapter,
pub network: bool,
}Expand description
One recorded rule.
Fields§
§id: StringUnique slug; the rule’s name everywhere.
question: StringWhat this rule answers — the report line.
probe: Vec<String>The probe argv (pre-def-expansion, as stored).
why: Option<String>Why the invariant exists; printed when it fails.
prompt: Option<String>The verbatim human request that led to this rule, retained so the
intent can be understood or revised later. Provenance only — never
used by verification; stripped wholesale by ct-rules --flatten.
Labels for --tag selection.
added: Option<String>Provenance date.
timeout: Option<f64>Per-rule bound in seconds; overrides the CLI --timeout.
pending: boolAn aspiration, not yet held: reported, never enforced.
severity: SeverityWhether a violation reddens the exit status.
expect: AdapterHow the probe’s outcome is read.
network: boolPermit network access where the bridge entry deems it meaningful.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnsafeUnpin for Rule
impl UnwindSafe for Rule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more