pub enum WarningSeverity {
Info,
Low,
Medium,
High,
Critical,
}Expand description
Severity level for extension warnings.
Mirrors common security advisory severity levels, and orders by them:
Info < Low < Medium < High < Critical, so severity >= High selects the
warnings that need attention.
Variants§
Info
Informational — no security impact, but worth noting.
Low
Low severity — minimal security impact.
Medium
Medium severity — potential security concern.
High
High severity — significant security risk.
Critical
Critical severity — immediate action recommended.
Trait Implementations§
Source§impl Clone for WarningSeverity
impl Clone for WarningSeverity
Source§fn clone(&self) -> WarningSeverity
fn clone(&self) -> WarningSeverity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WarningSeverity
Source§impl Debug for WarningSeverity
impl Debug for WarningSeverity
Source§impl Display for WarningSeverity
impl Display for WarningSeverity
impl Eq for WarningSeverity
Source§impl Hash for WarningSeverity
impl Hash for WarningSeverity
Source§impl Ord for WarningSeverity
impl Ord for WarningSeverity
Source§fn cmp(&self, other: &WarningSeverity) -> Ordering
fn cmp(&self, other: &WarningSeverity) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WarningSeverity
impl PartialEq for WarningSeverity
Source§impl PartialOrd for WarningSeverity
impl PartialOrd for WarningSeverity
impl StructuralPartialEq for WarningSeverity
Auto Trait Implementations§
impl Freeze for WarningSeverity
impl RefUnwindSafe for WarningSeverity
impl Send for WarningSeverity
impl Sync for WarningSeverity
impl Unpin for WarningSeverity
impl UnsafeUnpin for WarningSeverity
impl UnwindSafe for WarningSeverity
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