pub struct CompiledRule {
pub id: RuleId,
pub capability: String,
pub severity: Severity,
pub selector: Selector,
pub parameters: BTreeMap<String, ParameterValue>,
}Expand description
One validated portable rule bound to trusted executable capability code.
Fields§
§id: RuleIdPackage-local stable rule ID.
capability: StringRegistered capability ID.
severity: SeverityRule severity.
selector: SelectorSource-neutral applicability selector.
parameters: BTreeMap<String, ParameterValue>Strictly validated parameter bindings.
Trait Implementations§
Source§impl Clone for CompiledRule
impl Clone for CompiledRule
Source§fn clone(&self) -> CompiledRule
fn clone(&self) -> CompiledRule
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompiledRule
impl Debug for CompiledRule
Source§impl PartialEq for CompiledRule
impl PartialEq for CompiledRule
impl StructuralPartialEq for CompiledRule
Auto Trait Implementations§
impl Freeze for CompiledRule
impl RefUnwindSafe for CompiledRule
impl Send for CompiledRule
impl Sync for CompiledRule
impl Unpin for CompiledRule
impl UnwindSafe for CompiledRule
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