pub enum Severity {
Critical,
High,
Medium,
Low,
}Expand description
单条命中的严重度。声明顺序从重到轻(与
RiskLevel 相反),因此故意不派生 Ord:
拿 max() 取“最严重“会静默取到最轻的那条,聚合权重写在 score 侧。
Variants§
Trait Implementations§
impl Copy for Severity
impl Eq for Severity
impl StructuralPartialEq for Severity
Auto Trait Implementations§
impl Freeze for Severity
impl RefUnwindSafe for Severity
impl Send for Severity
impl Sync for Severity
impl Unpin for Severity
impl UnsafeUnpin for Severity
impl UnwindSafe for Severity
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