pub enum Baseline {
Fingerprints(BTreeSet<String>),
Ids {
file_package: Option<String>,
scoped: BTreeMap<String, BTreeSet<String>>,
unscoped: BTreeSet<String>,
},
}Expand description
The findings a baseline file lists.
Variants§
Fingerprints(BTreeSet<String>)
As written before findings had names of their own: by fingerprint.
Ids
By the name of the finding (report::finding_id).
Implementations§
Source§impl Baseline
impl Baseline
Sourcepub fn validate_for_package(&self, package: &str, path: &Path) -> Result<()>
pub fn validate_for_package(&self, package: &str, path: &Path) -> Result<()>
Verifies that a single-package baseline file is not being applied to a different package.
Sourcepub fn knows_in_package(&self, package: &str, finding: &Finding) -> bool
pub fn knows_in_package(&self, package: &str, finding: &Finding) -> bool
Whether this baseline suppresses finding when analysing package.
pub fn knows(&self, finding: &Finding) -> bool
Trait Implementations§
impl StructuralPartialEq for Baseline
Auto Trait Implementations§
impl Forget for Baseline
impl Freeze for Baselinewhere
*const LeafNode<String, SetValZST> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, SetValZST)>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, BTreeSet<String>> is !null: Freeze,
PhantomData<Box<(String, BTreeSet<String>)>>: Freeze,
impl Move for Baseline
impl RefUnwindSafe for Baseline
impl Send for Baseline
impl Sync for Baseline
impl Unpin for Baseline
impl UnsafeUnpin for Baselinewhere
*const LeafNode<String, SetValZST> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, SetValZST)>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, BTreeSet<String>> is !null: UnsafeUnpin,
PhantomData<Box<(String, BTreeSet<String>)>>: UnsafeUnpin,
impl UnwindSafe for Baselinewhere
BTreeMap<String, SetValZST>: UnwindSafe,
RawVecInner: UnwindSafe,
BTreeMap<String, BTreeSet<String>>: UnwindSafe,
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