pub struct IgnoreRule {
pub category: FindingCategory,
pub path: Option<String>,
pub reason: Option<String>,
}Expand description
A single ignore rule. Matches findings by category and optionally by pipeline source file path.
Fields§
§category: FindingCategoryRequired: finding category to match (snake_case, e.g. “unpinned_action”).
path: Option<String>Optional: glob pattern for the pipeline source file path. If absent, the rule matches all files.
reason: Option<String>Optional: human-readable reason for suppression (documentation only).
Trait Implementations§
Source§impl Clone for IgnoreRule
impl Clone for IgnoreRule
Source§fn clone(&self) -> IgnoreRule
fn clone(&self) -> IgnoreRule
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 IgnoreRule
impl Debug for IgnoreRule
Source§impl<'de> Deserialize<'de> for IgnoreRule
impl<'de> Deserialize<'de> for IgnoreRule
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 IgnoreRule
impl RefUnwindSafe for IgnoreRule
impl Send for IgnoreRule
impl Sync for IgnoreRule
impl Unpin for IgnoreRule
impl UnsafeUnpin for IgnoreRule
impl UnwindSafe for IgnoreRule
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