pub struct SeveritySource<'a> { /* private fields */ }Expand description
The rules that give a finding its severity.
Implementations§
Source§impl<'a> SeveritySource<'a>
impl<'a> SeveritySource<'a>
Sourcepub fn from_config(config: &'a ResolvedConfig) -> Self
pub fn from_config(config: &'a ResolvedConfig) -> Self
The rules of config, with its overrides for file-scoped findings.
Sourcepub fn new(
base: &'a RulesConfig,
config: Option<&'a ResolvedConfig>,
promote_warns: bool,
) -> Self
pub fn new( base: &'a RulesConfig, config: Option<&'a ResolvedConfig>, promote_warns: bool, ) -> Self
Explicit base rules, with the overrides of config when it has any.
promote_warns raises a warn that an override resolves to error.
The caller promotes base itself.
Trait Implementations§
Source§impl<'a> Clone for SeveritySource<'a>
impl<'a> Clone for SeveritySource<'a>
impl<'a> Copy for SeveritySource<'a>
Auto Trait Implementations§
impl<'a> Freeze for SeveritySource<'a>
impl<'a> RefUnwindSafe for SeveritySource<'a>
impl<'a> Send for SeveritySource<'a>
impl<'a> Sync for SeveritySource<'a>
impl<'a> Unpin for SeveritySource<'a>
impl<'a> UnsafeUnpin for SeveritySource<'a>
impl<'a> UnwindSafe for SeveritySource<'a>
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more