pub struct RuleRefinement {
pub severity_bands: Vec<SeverityBand>,
pub severity_overrides: Vec<SeverityOverride>,
pub categories: Vec<CategoryLevel>,
}Expand description
What a rule instance asks of its outcomes beyond the capability’s verdicts. Empty for a rule that declares nothing.
Fields§
§severity_bands: Vec<SeverityBand>Severity bands over the relative deviation, ascending.
severity_overrides: Vec<SeverityOverride>Severities chosen by the objects a finding involves, first match first.
categories: Vec<CategoryLevel>Nested categories headed before findings, outermost first.
Implementations§
Source§impl RuleRefinement
impl RuleRefinement
Sourcepub fn needs_refiner(&self) -> bool
pub fn needs_refiner(&self) -> bool
Whether applying the rule’s declarations needs an OutcomeRefiner:
everything but severity bands reads the model.
Trait Implementations§
Source§impl Clone for RuleRefinement
impl Clone for RuleRefinement
Source§impl Debug for RuleRefinement
impl Debug for RuleRefinement
Source§impl Default for RuleRefinement
impl Default for RuleRefinement
Source§impl PartialEq for RuleRefinement
impl PartialEq for RuleRefinement
impl StructuralPartialEq for RuleRefinement
Auto Trait Implementations§
impl Freeze for RuleRefinement
impl RefUnwindSafe for RuleRefinement
impl Send for RuleRefinement
impl Sync for RuleRefinement
impl Unpin for RuleRefinement
impl UnsafeUnpin for RuleRefinement
impl UnwindSafe for RuleRefinement
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