pub struct AdsConfig {
pub enforce_status: Vec<String>,
pub required: Vec<String>,
pub severity: Option<Severity>,
}Expand description
ADS (Alerting and Detection Strategy) enforcement configuration.
Present (Some) only when an ads: block appears in the layered lint
config; the ADS presence checks are off otherwise. When enabled, the checks
fire on detection rules whose status is in enforce_status
and flag each missing required section.
Fields§
§enforce_status: Vec<String>Rule statuses that require ADS sections (lowercased).
required: Vec<String>The ADS section ids that are mandatory.
severity: Option<Severity>A single severity applied to every ADS finding, overriding the
per-section default. None keeps the catalogue defaults.
Implementations§
Trait Implementations§
impl Eq for AdsConfig
impl StructuralPartialEq for AdsConfig
Auto Trait Implementations§
impl Freeze for AdsConfig
impl RefUnwindSafe for AdsConfig
impl Send for AdsConfig
impl Sync for AdsConfig
impl Unpin for AdsConfig
impl UnsafeUnpin for AdsConfig
impl UnwindSafe for AdsConfig
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.