pub struct Suppression {
pub fingerprint: String,
pub reason: String,
pub expires: Option<String>,
pub created_at: Option<String>,
}Expand description
A suppression entry that silences a specific finding by fingerprint.
Fields§
§fingerprint: StringSHA-256 fingerprint of the finding to suppress.
reason: StringMandatory reason explaining why this finding is suppressed.
expires: Option<String>Optional ISO-8601 date (YYYY-MM-DD) after which the suppression expires.
created_at: Option<String>Optional ISO-8601 date when the suppression was created.
Implementations§
Source§impl Suppression
impl Suppression
Sourcepub fn is_expired(&self) -> bool
pub fn is_expired(&self) -> bool
Returns true if this suppression has passed its expiration date.
Trait Implementations§
Source§impl Clone for Suppression
impl Clone for Suppression
Source§fn clone(&self) -> Suppression
fn clone(&self) -> Suppression
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 Suppression
impl Debug for Suppression
Source§impl<'de> Deserialize<'de> for Suppression
impl<'de> Deserialize<'de> for Suppression
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 Suppression
impl RefUnwindSafe for Suppression
impl Send for Suppression
impl Sync for Suppression
impl Unpin for Suppression
impl UnsafeUnpin for Suppression
impl UnwindSafe for Suppression
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