pub struct SeverityConfig {
pub overrides: HashMap<String, String>,
}Fields§
§overrides: HashMap<String, String>Implementations§
Source§impl SeverityConfig
impl SeverityConfig
Sourcepub fn resolve(&self, keyword: &str) -> Option<Severity>
pub fn resolve(&self, keyword: &str) -> Option<Severity>
Looks up an override severity for keyword (e.g. "crash",
"hang", "protocol_error", …). Returns None when no
override is configured or the configured value isn’t a recognised
severity name. Plans use this to override
FindingKind::default_severity() before persisting a finding.
Trait Implementations§
Source§impl Clone for SeverityConfig
impl Clone for SeverityConfig
Source§fn clone(&self) -> SeverityConfig
fn clone(&self) -> SeverityConfig
Returns a duplicate 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 SeverityConfig
impl Debug for SeverityConfig
Source§impl Default for SeverityConfig
impl Default for SeverityConfig
Source§fn default() -> SeverityConfig
fn default() -> SeverityConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SeverityConfig
impl<'de> Deserialize<'de> for SeverityConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SeverityConfig
impl RefUnwindSafe for SeverityConfig
impl Send for SeverityConfig
impl Sync for SeverityConfig
impl Unpin for SeverityConfig
impl UnsafeUnpin for SeverityConfig
impl UnwindSafe for SeverityConfig
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