pub enum SeveritySetting {
Off,
Note,
Warn,
Error,
}Expand description
Severity override for a check; Off disables it.
Variants§
Off
Remove the check from the run set.
Note
Force non-diagnostic findings to notes.
Warn
Force non-diagnostic findings to warnings.
Error
Force non-diagnostic findings to errors.
Implementations§
Source§impl SeveritySetting
impl SeveritySetting
Sourcepub fn as_severity(self) -> Option<Severity>
pub fn as_severity(self) -> Option<Severity>
Convert this setting into a finding severity.
Returns None for SeveritySetting::Off because disabling a
check is handled before execution.
Trait Implementations§
Source§impl Clone for SeveritySetting
impl Clone for SeveritySetting
Source§fn clone(&self) -> SeveritySetting
fn clone(&self) -> SeveritySetting
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 SeveritySetting
Source§impl Debug for SeveritySetting
impl Debug for SeveritySetting
Source§impl<'de> Deserialize<'de> for SeveritySetting
impl<'de> Deserialize<'de> for SeveritySetting
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
impl Eq for SeveritySetting
Source§impl PartialEq for SeveritySetting
impl PartialEq for SeveritySetting
impl StructuralPartialEq for SeveritySetting
Auto Trait Implementations§
impl Freeze for SeveritySetting
impl RefUnwindSafe for SeveritySetting
impl Send for SeveritySetting
impl Sync for SeveritySetting
impl Unpin for SeveritySetting
impl UnsafeUnpin for SeveritySetting
impl UnwindSafe for SeveritySetting
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