pub struct Suppression {
pub id: String,
pub repo: Option<RepoId>,
pub justification: Option<String>,
pub reason: String,
pub approved_by: Option<String>,
}Expand description
A human suppression applied before gating (§6): an ignore (fleet-wide, no
approver) or a vex_assertion (optionally repo-scoped, approved). Matching
occurrences are removed from the gated report and captured for -f vex.
Fields§
§id: String§repo: Option<RepoId>None = fleet-wide; else only this repo.
justification: Option<String>§reason: StringThe OpenVEX impact_statement when there is no justification.
approved_by: Option<String>None for an ignore; Some(approver) for a vex_assertion.
Implementations§
Source§impl Suppression
impl Suppression
pub fn from_ignore(ignore: &Ignore) -> Self
pub fn from_assertion(assertion: &VexAssertion) -> Self
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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