pub enum VulnSeverity {
Critical,
High,
Medium,
Low,
Unknown,
}Expand description
Severity bucket derived from an OSV advisory record.
See architecture.md §6 for the precedence rules used to derive this
from a raw record, and crate::osv::diagnostic_severity_for for the mapping to
[tower_lsp_server::ls_types::DiagnosticSeverity].
Variants§
Critical
database_specific.severity or ecosystem_specific.severity reported CRITICAL.
High
Reported HIGH.
Medium
Reported MODERATE or MEDIUM.
Low
Reported LOW.
Unknown
No severity field was present or recognized on the record.
Trait Implementations§
Source§impl Clone for VulnSeverity
impl Clone for VulnSeverity
Source§fn clone(&self) -> VulnSeverity
fn clone(&self) -> VulnSeverity
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 VulnSeverity
Source§impl Debug for VulnSeverity
impl Debug for VulnSeverity
impl Eq for VulnSeverity
Source§impl PartialEq for VulnSeverity
impl PartialEq for VulnSeverity
Source§fn eq(&self, other: &VulnSeverity) -> bool
fn eq(&self, other: &VulnSeverity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VulnSeverity
Auto Trait Implementations§
impl Freeze for VulnSeverity
impl RefUnwindSafe for VulnSeverity
impl Send for VulnSeverity
impl Sync for VulnSeverity
impl Unpin for VulnSeverity
impl UnsafeUnpin for VulnSeverity
impl UnwindSafe for VulnSeverity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.